Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #4

Open
lijain opened this issue May 9, 2021 · 0 comments
Open

build error #4

lijain opened this issue May 9, 2021 · 0 comments

Comments

@lijain
Copy link

lijain commented May 9, 2021

Gradel is OK when I compile the app, but the whole project will compile with an error.Baidu has been less than the problem, so send a post to ask you.Trouble you.
error description -----:
Build command failed.
Error while executing process D:\AndroidStudiosdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C D:\project_android\ncnn-android-nanodet-master\app.cxx\cmake\debug\armeabi-v7a nanodetncnn}
ninja: Entering directory `D:\project_android\ncnn-android-nanodet-master\app.cxx\cmake\debug\armeabi-v7a'
[1/4] Building CXX object CMakeFiles/nanodetncnn.dir/ndkcamera.cpp.o
FAILED: CMakeFiles/nanodetncnn.dir/ndkcamera.cpp.o
D:\AndroidStudiondk\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=D:/AndroidStudiondk/android-ndk-r16b-windows-x86_64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=D:/AndroidStudiondk/android-ndk-r16b-windows-x86_64/android-ndk-r16b/sysroot -Dnanodetncnn_EXPORTS -isystem D:/project_android/ncnn-android-nanodet-master/app/src/main/jni/ncnn-20201218-android-vulkan/armeabi-v7a/include/ncnn -isystem D:/AndroidStudiondk/android-ndk-r16b-windows-x86_64/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/AndroidStudiondk/android-ndk-r16b-windows-x86_64/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem D:/AndroidStudiondk/android-ndk-r16b-windows-x86_64/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem D:/AndroidStudiondk/android-ndk-r16b-windows-x86_64/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=24 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -fopenmp=libomp -O0 -fno-limit-debug-info -fPIC -fno-rtti -fno-exceptions -MD -MT CMakeFiles/nanodetncnn.dir/ndkcamera.cpp.o -MF CMakeFiles\nanodetncnn.dir\ndkcamera.cpp.o.d -o CMakeFiles/nanodetncnn.dir/ndkcamera.cpp.o -c D:/project_android/ncnn-android-nanodet-master/app/src/main/jni/ndkcamera.cpp
In file included from D:/project_android/ncnn-android-nanodet-master/app/src/main/jni/ndkcamera.cpp:15:
D:/project_android/ncnn-android-nanodet-master/app/src/main/jni/ndkcamera.h:26:10: fatal error: 'opencv2/core/core.hpp' file not found
#include <opencv2/core/core.hpp>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

private opinions:
Although looks like OpenCV problem, but I have changed the version to try several times also can't.NDK I have also changed it.So I want you to see what the problem is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant