Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building PJSIP: giving error for Make command on ubuntu

Tags:

ubuntu

pjsip

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?

like image 546
user3553913 Avatar asked Sep 03 '25 04:09

user3553913


2 Answers

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!

like image 131
Nandhakumar Kittusamy Avatar answered Sep 05 '25 23:09

Nandhakumar Kittusamy


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

like image 32
Vadim Prozorov Avatar answered Sep 05 '25 23:09

Vadim Prozorov