我已经从Github下载了Android的linphone。我还遵循了自述文件中的所有说明。问题是,当我运行ndk-build命令时,它会产生下面的错误。
Android NDK: ERROR:jni/..//submodules/externals/build/ffmpeg/Android.mk:avutil-linphone: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/..//submodules/externals/build/ffmpeg/arm/libavutil/libavutil-linphone-arm.so exists or that its path is correct
/cygdrive/c/development/android-ndk-r9b/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.what this error mean ? & how can i resolve this?我已经花了很多时间来搜索这个错误,但没有成功...我的操作系统是Windows7&我使用cygwin作为命令。
我在SO上找到了同样的问题
Android NDK error when using FFmpeg in Android?
上面写着Basically problem was with ffmpeg lib.I was not able to compile ffmpeg lib on Windows 7. I switched to Ubuntu & tried AppUnite & after spending so many hours it was working.
is it not possible to build linphone on windows ??? 发布于 2013-11-21 16:01:02
虽然我不熟悉linphone库,但从一般的观点来看,您可以将libavutil-linphone-arm.so放在‘workspace/ you put /lib’目录下,
然后修改位于‘workspace/ your Android.mk /jni’下的Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := avutil-linphone-arm
LOCAL_SRC_FILES := ../lib/libavutil-linphone-arm.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := yourownmodule
LOCAL_SRC_FILES := yourownmodule.cpp
LOCAL_LDLIBS := -llog -landroid
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := avutil-linphone-arm
include $(BUILD_SHARED_LIBRARY)有关共享库的ABI选择,可以参考android-ndk/docs下的PREBUILTS.html
https://stackoverflow.com/questions/20113700
复制相似问题