OpenCV android Demo Score:21 Activity:9 Min SDK:8 Java File:99 Manifest File:10 Score:33 Activity:1 Min SDK:8 Java File:90 Manifest File:2 The error I get are the same though.ġ> c:/microsoft/androidndk64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin/ld.exe: error: C:\Program_Files\Release\install\圆4\mingw\lib\libopencv_: member at 1469670 is not an ELF objectġ> c:/microsoft/androidndk64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin/ld.exe: error: C:\Program_Files\Release\install\圆4\mingw\lib\libopencv_: member at 1482796 is not an ELF objectġ> c:/microsoft/androidndk64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin/ld.exe: error: C:\Program_Files\Release\install\圆4\mingw\lib\libopencv_: member at 1484610 is not an ELF objectġ> c:/microsoft/androidndk64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin/ld.exe: error: C:\Program_Files\Release\install\圆4\mingw\lib\libopencv_: member at 339412 is not an ELF objectġ> collect2.exe: error: ld returned 1 exit statusġ> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Application Type\Android\3.0\(119,5): error MSB6006: “arm-linux-androideabi-gcc.exe” exited with code 1.An android app for Face Recognition using OpenCV Score:59 Activity:4 Min SDK:10 Java File:4 Manifest File:1 Linked dll.a files from here C:\Program_Files\Release\install\圆4\mingw\libįrom what you said, this should work since I have stuck to the same compiler so far. Included opencv files from here C:\Program_Files\Release\install\include Compile OpenCV with gcc, Linked and included following generated files in Visual Studio (using gcc compiler). Thats what I have done in terms of compiling. I shouldve mentioned the compiler Visual Studio can be switched between clang and gcc. I am using Debug configuration and have tried with various Platforms (圆4, ARM, ARM64) where I get the same error but for Platform x86 the error i get is:ġ> undefined reference to ‘cv::fastFree(void*)’ġ> undefined reference to ‘cv::Mat::create(int, int const*, int)’ġ> undefined reference to ‘cv::Mat::deallocate()’ My code is able to recognize OpenCV variables however, I believe I am not just linking libraries right.ġ> C:\Microsoft\AndroidNDK64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin\ld: error: C:\Program_Files\Release\install\圆4\mingw\bin\libopencv_features2d3414.dll:1:3: invalid characterġ> C:\Microsoft\AndroidNDK64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin\ld: error: C:\Program_Files\Release\install\圆4\mingw\bin\libopencv_features2d3414.dll:1:3: syntax error, unexpected $endġ> C:\Microsoft\AndroidNDK64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin\ld: error: C:\Program_Files\Release\install\圆4\mingw\bin\libopencv_features2d3414.dll: not an object or archiveġ> undefined reference to ‘cv::Mat::Mat(int, int, int)’ġ> undefined reference to ‘cv::Mat::~Mat()’ġ> undefined reference to ‘cv::ORB::create(int, float, int, int, int, int, int, int, int)’ġ> undefined reference to ‘cv::Mat::Mat()’ġ> clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)ġ> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Application Type\Android\3.0\(119,5): error MSB6006: “clang.exe” exited with code 1.ġ>Done building target “Link” in project “TestSharedLibrary.vcxproj” – FAILED. I have compiled OpenCV binaries with GCC using this tutorial ( OpenCV C installation on Windows with MinGW | by RAJAT KANTI Bhattacharjee | csmadeeasy | Medium) and linked the directories and files under the project settings such as C/C > Additional Include Directories as well as under Linker > Input > Additional Directories with no luck. I have tried using both precompiled headers for WIndows as well as tried compiling myself from the source. I am trying to link opencv to my c project (shared library) in Visual Studio.
0 Comments
Leave a Reply. |