构建kurento-media-server错误

时间:2017-03-05 06:56:15

标签: kurento

我想从源代码构建kurento-media-server:https://github.com/Kurento/kurento-media-server

最后我收到此错误消息:

ubuntu@VM-117-216-ubuntu:~/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生成的Makefile很复杂,我找不到添加它的位置。

1 个答案:

答案 0 :(得分:0)

为了使构建工作,您应该按照以下步骤操作:

a)克隆项目:<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/> <div class="row" id="content_row"> <div class="col-xs-4" id="content_col"><h3>Test</h3> <p class="p-text">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. </p> <img src="https://cdn.pixabay.com/photo/2017/11/05/21/45/balloon-2921973_960_720.jpg" class="tile-img"> </div> <div class="col-xs-4" id="content_col"><h3>Test2</h3> <p class="p-text">At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> <img src="https://cdn.pixabay.com/photo/2017/11/05/21/45/balloon-2921973_960_720.jpg" class="tile-img"> </div> <div class="col-xs-4" id="content_col"><h3>Test3</h3> <p class="p-text">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> <img src="https://cdn.pixabay.com/photo/2017/11/05/21/45/balloon-2921973_960_720.jpg" class="tile-img"> </div> </div>

b)转到git clone https://github.com/Kurento/kurento-media-server.git并查看kurento-media-server/debian/control

c)您需要的最重要的依赖项是:

Build-Depends

d)最后建立:

 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

应该可以正常工作:)