无法在Ubuntu for Blackberry 10上编译PJSIP

时间:2013-05-29 07:25:15

标签: blackberry-10 pjsip

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

当我执行此命令时:./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*

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

你可以先试试:

  • $ cd bb10-pjsipdemo / pjbuildscripts / pjsip-checkout / trunk
  • $ ./configure
  • $ touch pjlib / include / pj / config_site.h
  • $ make dep
  • $ make

参考:http://www.pjsip.org/pjlib/docs/html/pjlib_build_sys_pg.htm

然后运行bb10-pjsipdemo / pjbuildscripts / buildpjsip

相关问题