为JDK编译pjsip

时间:2014-04-13 16:44:21

标签: java swig mingw32 pjsip

我正在尝试为桌面Java应用程序编译pjsip 2.2.1

ENV:

Win7x64
MinGW32
JDK7
swig 3.0.0 (pre-built)

我到目前为止

$ ./configure
$ make dep && make clean && make
$ cd pjsip-apps/src/swig/java/
$ make

但在做完之后我得到了以下错误

mkdir -p output/org/pjsip/pjsua2
swig  -java  -package org.pjsip.pjsua2 \
                -outdir output/org/pjsip/pjsua2 \
                -o output/pjsua2_wrap.cpp ../pjsua2.i
..\pjsua2.i(82) : Error: Unable to find 'pjsua2\types.hpp'
..\pjsua2.i(88) : Error: Unable to find 'pjsua2\persistent.hpp'
..\pjsua2.i(90) : Error: Unable to find 'pjsua2\siptypes.hpp'
..\pjsua2.i(101) : Error: Unable to find 'pjsua2\media.hpp'
..\pjsua2.i(102) : Error: Unable to find 'pjsua2\endpoint.hpp'
..\pjsua2.i(103) : Error: Unable to find 'pjsua2\presence.hpp'
..\pjsua2.i(104) : Error: Unable to find 'pjsua2\account.hpp'
..\pjsua2.i(105) : Error: Unable to find 'pjsua2\call.hpp'
..\pjsua2.i(111) : Error: Unable to find 'pjsua2\json.hpp'
make: *** [output/pjsua2_wrap.cpp] Error 1

不幸的是,pjsp doc不包含任何关于此的信息。请任何人帮忙..

更新

解决。 Java构建依赖于Python,因此必须安装它。

$ ./configure
$ make dep && make clean && make
$ cd pjsip-apps/src/swig
$ make

0 个答案:

没有答案