我从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?
我已花了很多时间来搜索此错误,但没有成功......
我的操作系统是7号窗口和我使用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 ???
答案 0 :(得分:0)
Altought我不熟悉linphone库,从通用视图来看,你可以把libavutil-linphone-arm.so放在'workspace / yourandroidprojectroot / lib'目录下,
然后修改你的Android.mk,它位于'workspace / yourandroidprojectroot / jni'之下,如:
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