gpt4 book ai didi

Android "No such file or directory"错误?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:40:44 25 4
gpt4 key购买 nike

在我安装 ADT 并添加 CDT 和 NDK 并添加 OpenCV 库之后出现这个错误

**** Build of configuration Default for project OpenCV Tutorial 2 - Mixed Processing     ****

C:\android-ndk-r9\ndk-build.cmd
jni/Android.mk:5: ../../sdk/native/jni/OpenCV.mk: No such file or directory
make: *** No rule to make target `../../sdk/native/jni/OpenCV.mk'. Stop.

**** Build Finished ****

这是Android.mk代码

    LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

include ../../sdk/native/jni/OpenCV.mk

LOCAL_MODULE := mixed_sample
LOCAL_SRC_FILES := jni_part.cpp
LOCAL_LDLIBS += -llog -ldl

include $(BUILD_SHARED_LIBRARY)

最佳答案

更改 Android.mk,使 include 引用 OpenCV.mk 的绝对路径。例如:

WIN: include d:\dev\OpenCV-2.4.6-android-sdk\sdk\native\jni\OpenCV.mk
Linux: include ~/mydevdir/OpenCV-2.4.6-android-sdk/sdk/native/jni/OpenCV.mk

关于Android "No such file or directory"错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18096261/

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