Building PJSIP: giving error for Make command on ubuntu

不羁岁月 提交于 2020-01-02 07:17:12

问题


I want to use the pjsip library in ubuntu 13.10 and tried the steps given in getting started page of pjsip.org

I tried to build the pjsip lib by using the following sequence of commands and also I edited the config_site.h to have the #define PJMEDIA_HAS_VIDEO line in it. Also I installed video4linux2 and ffmpeg before running these commands

cd pjproject
./configure
make dep
make

After I ran the last command I got following error:

make[2]: Entering directory `/home/vk/pjproject/pjsip/build'
make[2]: `../lib/libpjsua-x86_64-unknown-linux-gnu.a' is up to date.
make[2]: Leaving directory `/home/vk/pjproject/pjsip/build'
make -f /home/vk/pjproject/build/rules.mak APP=PJSUA2_LIB app=pjsua2-lib ../lib/libpjsua2-x86_64-unknown-linux-gnu.a
make[2]: Entering directory `/home/vk/pjproject/pjsip/build'
.pjsua2-lib-x86_64-unknown-linux-gnu.depend:1: *** missing separator.  Stop.
make[2]: Leaving directory `/home/vk/pjproject/pjsip/build'
make[1]: *** [libpjsua2-x86_64-unknown-linux-gnu.a] Error 2
make[1]: Leaving directory `/home/vk/pjproject/pjsip/build'
make: *** [all] Error 1

So could anyone please help me in resolving this error?


回答1:


Just run following commands on your PJSIP directory path using Terminal/Command line Interface.

make distclean

make clean

make realclean

Important one to run at last,

find . -name "*.depend" -exec rm {} \;

After that you want to configure and build your PJSIP Project using,

./configure-iphone OR ./configure-android

make dep && make clean && make

I thought, this will help you to solve this problem!




回答2:


Try to install gcc-c++, it fixed trouble for me in the same case




回答3:


Just copy .pjsua2-test-x86_64-unknown-linux-gnu.depend to .pjsua2-lib-x86_64-unknown-linux-gnu.depend and replace all occurences of -test- with -lib- in that file. Run make again.



来源:https://stackoverflow.com/questions/23182887/building-pjsip-giving-error-for-make-command-on-ubuntu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!