gpt4 book ai didi

android - 现有文件中不存在 NDK 构建报告文件

转载 作者:行者123 更新时间:2023-11-30 18:04:46 25 4
gpt4 key购买 nike

我正在尝试构建 mediastreamer2对于安卓。我在 Windows 7 上使用 cygwin。运行 ndk-build 时出现以下错误:

<小时/>
$ ../../android-ndk-r6b-windows/android-ndk-r6b/ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile arm : mediastreamer2 <= mscommon.c
cc1.exe: error: /cygdrive/c/Users/SN/workspace/hello-jni/jni/src/../build/android/libmediastreamer2_AndroidConfig.h: No such file or directory
In file included from C:/Users/SN/workspace/hello-jni/jni/src/mscommon.c:28:
C:/Users/SN/workspace/hello-jni/jni/src/../include/mediastreamer2/mscommon.h:22:
23: error: ortp/ortp.h: No such file or directory
In file included from C:/Users/SN/workspace/hello-jni/jni/src/../include/mediastreamer2/msfilter.h:24,
from C:/Users/SN/workspace/hello-jni/jni/src/mscommon.c:29:
C:/Users/SN/workspace/hello-jni/jni/src/../include/mediastreamer2/msqueue.h:22:28: error: ortp/str_utils.h: No such file or directory
In file included from C:/Users/SN/workspace/hello-jni/jni/src/../include/mediastreamer2/msfilter.h:24,
from C:/Users/SN/workspace/hello-jni/jni/src/mscommon.c:29:
<小时/>

但是,/cygdrive/c/Users/SN/workspace/hello-jni/jni/src/../build/android/libmediastreamer2_AndroidConfig.h是一个现有文件。有想法该怎么解决这个吗?

Android.mk 文件是 here ,并且在运行之前我已在底部添加了以下几行。

include $(CLEAR_VARS)
LOCAL_MODULE := mediastreamer2wrapper
LOCAL_STATIC_LIBRARIES := mediastreamer2
include $(BUILD_SHARED_LIBRARY)

最佳答案

我发现构建它的唯一方法是在 Linux 上进行。 Cygwin 不起作用。

关于android - 现有文件中不存在 NDK 构建报告文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7399055/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com