我正在尝试为android构建cSipSimple源代码。我想,我遵循了cSipSimple how to build wiki page中描述的步骤。但不幸的是,我面临制造错误。这是命令日志信息。
Now at patch 001toolchain_static_lib.diff
cd build/armeabi; \
if [ "build/armeabi/config.mk" = "build/armeabi/config.mk" ]; then TGT=armv5te-android-gcc; fi; \
if [ "build/armeabi-v7a/config.mk" = "build/armeabi/config.mk" ]; then TGT=armv7-android-gcc; fi; \
if [ "build/x86/config.mk" = "build/armeabi/config.mk" ]; then TGT=x86-android-gcc; fi; \
if [ "build/mips/config.mk" = "build/armeabi/config.mk" ]; then TGT=mips32-android-gcc; fi; \
BUILD_PFX=jni/libvpx/build/armeabi/ ../../sources/configure --target=$TGT --disable-examples --sdk-path=
Not a directory:
Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.err) to determine what
configure was trying to do when it died.
make[1]: *** [build/armeabi/config.mk] Error 1
make[1]: Leaving directory `/home/alexchengalan/android/files/CSipSimple-trunk/CSipSimple/jni/libvpx'
make: *** [jni/libvpx/sources] Error 2
我认为错误指出--disable-examples --sdk-path=
Not a directory:
上面的错误。但我不知道这意味着什么。
我还在.bashrc文件中添加了以下行
export ANDROID_NDK=/home/alexchengalan/android/files/android-ndk-r10d/
export ANDROID_SDK=/home/alexchengalan/android/files/android-sdk-linux/
export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK
如果有人能帮助我摆脱这个问题,那就太好了。
答案 0 :(得分:0)
最后我发现我的问题在哪里。我需要将以下行添加到.bashrc
文件中。
export ANDROID_HOME=/..your sdk path.../android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools