2017-03-05 109 views
1

我想從源代碼構建kurento媒體服務器:https://github.com/Kurento/kurento-media-server構建kurento媒體服務器錯誤

最後我得到這個錯誤信息:

[email protected]:~/kurento-media-server$ make kurento-media-server 
[ 26%] Built target websocketTransport 
[ 33%] Built target transport 
Linking CXX executable kurento-media-server 
/usr/bin/ld: CMakeFiles/kurento-media-server.dir/loadConfig.cpp.o: undefined reference to symbol '_ZNK5boost10filesystem4path3endEv' 
//usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.55.0: error adding symbols: DSO missing from command line 
collect2: error: ld returned 1 exit status 
make[3]: *** [server/kurento-media-server] Error 1 
make[2]: *** [server/CMakeFiles/kurento-media-server.dir/all] Error 2 
make[1]: *** [server/CMakeFiles/kurento-media-server.dir/rule] Error 2 
make: *** [kurento-media-server] Error 2 

它告訴我要補充 - lboost_system,我認爲它應該在gcc或g ++之後添加,但由cmake生成的Makefiles很複雜,我無法找到添加它的位置。

回答

0

爲了構建工作,你應該遵循以下步驟:

一)克隆項目:git clone https://github.com/Kurento/kurento-media-server.git

B)去kurento-media-server/debian/control並檢查Build-Depends

你需要

C)最重要的依賴關係是:

1. sudo apt-get install cmake 
2. sudo apt-get install debhelper 
3. sudo apt-get install binutils 
4. sudo apt-get install kms-core-6.0-dev 
5. sudo apt-get install kms-elements-6.0-dev 
6. sudo apt-get install libboost-all-dev 
7. sudo apt-get install libssl-dev 
8. sudo apt-get install pkg-config 
9. sudo apt-get install libevent-dev 

d)最後建立:

1. cmake . 
    2. make -j4 
    3. sudo make install 

應該只是罰款:)

相關問題