1

我正在尝试根据此文档在 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*
4

2 回答 2

0

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

于 2013-06-05T23:07:37.503 回答
0

你可以先试试:

  • $ cd bb10-pjsipdemo/pjbuildscripts/pjsip-checkout/trunk
  • $ ./配置
  • $ touch pjlib/include/pj/config_site.h
  • $ 制作 dep
  • $ 制作

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

然后运行 ​​bb10-pjsipdemo/pjbuildscripts/buildpjsip

于 2014-01-03T17:56:45.823 回答