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
  • $ ./configure
  • $ touch pjlib/include/pj/config_site.h
  • $ make dep
  • $メイク

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

そして、bb10-pjsipdemo/pjbuildscripts/buildpjsip を実行します。

于 2014-01-03T17:56:45.823 に答える