0

I wanted to try PJSIP on an Android AVD. I performed the following steps :

Now, the next step says : Building and running apjsua sample application

We have apjsua sample application located under pjsip-apps/src/apjsua. It is not built by default, and you need SWIG to build it.

Follow these steps to build apjsua:

Make sure SWIG is in the build environment PATH. Alternatively, update SWIG path in $PJDIR/pjsip-apps/src/apjsua/jni/Android.mk file. Run ndk-build from directory $PJDIR/pjsip-apps/src/apjsua, note that the Android NDK root should be in the PATH, e.g:

Create Android project from apjsua. In Eclipse: From menu: File --> New --> Project Select Android Project from Existing Code, press Next In Root Directory, put the location of apjsua source code (i.e. $PJDIR/pjsip-apps/src/apjsua) and press Finish You may need to select different Android SDK than what is configured in apjsua. You can do this from the project's Properties. You can modify apjsua/res/raw/config.txt for apjsua's config file. Run it.

My question is : How to use swig? I am very confused.

4

1 回答 1

1

不用担心痛饮。您应该编译它,并将其添加到环境路径中。ndk-build 将调用 swig 应用程序。您可以通过输入终端 PATH=$PATH:/path/to/swig 将其添加到 PATH 中,其中 /path/to/swig 是您计算机上 swig 应用程序的位置。

于 2012-12-30T13:54:02.473 回答