2013-05-29 32 views
2

我试图根据这份文件汇编PJSIP在Ubuntu:
http://supportforums.blackberry.com/t5/Native-Development/Porting-PJSIP-PJMEDIA-and-PJLIB-to-BlackBerry-10/ta-p/2085751
无法编译PJSIP在Ubuntu上为黑莓10

当我执行这个命令:./buildpjsip(这是对文件的数字8) ,它是显示这些错误:

cp: cannot create regular file /x86/lib': No such file or directory 
/home/ahsish/bb10-pjsipdemo-master/pjbuildscripts/pjsip-build /home/ahsish/bb10-pjsipdemo-master/pjbuildscripts 
/home/ahsish/bb10-pjsipdemo-master/pjbuildscripts/pjsip-build/trunk /home/ahsish/bb10-pjsipdemo-master/pjbuildscripts/pjsip-build /home/ahsish/bb10-pjsipdemo-master/pjbuildscripts 
Makefile:1: build.mak: No such file or directory 
Makefile:2: build/host-.mak: No such file or directory 
make: *** No rule to make target `build/host-.mak'. Stop. 
checking build system type... i686-pc-linux-gnu 
checking host system type... i486-pc-nto-qnx8.0.0 
checking target system type... i486-pc-nto-qnx8.0.0 
checking for i486-pc-nto-qnx8.0.0-gcc... no 
checking for gcc... gcc 
checking whether the C compiler works... no 
aconfigure: error: in `/home/ahsish/bb10-pjsipdemo-master/pjbuildscripts/pjsip-build/trunk': 
aconfigure: error: C compiler cannot create executables 
See `config.log' for more details 
Makefile:1: build.mak: No such file or directory 
Makefile:2: build/host-.mak: No such file or directory 
make: *** No rule to make target `build/host-.mak'. Stop. 
Makefile:1: build.mak: No such file or directory 
Makefile:2: build/host-.mak: No such file or directory 
make: *** No rule to make target `build/host-.mak'. Stop. 
/home/ahsish/bb10-pjsipdemo-master/pjbuildscripts/pjsip-build /home/ahsish/bb10-pjsipdemo-master/pjbuildscripts 
adding: libopencore-amrwb.a (deflated 67%) adding: libopencore-amrnb.a (deflated 70%) 
/home/ahsish/bb10-pjsipdemo-master/pjbuildscripts* 

回答

0

我也遇到过这个问题,并成功地解决了它。我认为问题的结果是,在执行文档中的步骤4之后:从安装Native SDK的根目录执行bbndk-env.bat或bbndk-env.sh。您不应该关闭命令提示符或打开新的终端。我的意思是你应该在同一个终端执行其余的步骤,然后你会成功建立图书馆。另外,你最好确保你的gcc是最新的版本。祝你好运。