【问题标题】:linphone on windows building errorlinphone 上的 windows 构建错误
【发布时间】:2013-12-05 11:51:18
【问题描述】:

我已经从 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 ??? 

【问题讨论】:

    标签: android build android-ndk ffmpeg linphone


    【解决方案1】:

    虽然我对linphone库不熟悉,一般来说,你可以把libavutil-linphone-arm.so放在'workspace/yourandroidprojectroot/lib'目录下,

    然后修改'workspace/yourandroidprojectroot/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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-15
      • 1970-01-01
      • 1970-01-01
      • 2018-04-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多