2013-05-29 31 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是最新的版本。祝你好運。