Hello everyone 😄
-----------------
I want to build openCV for Android on Linux like in [this tutorial](https://amin-ahmadi.com/2019/02/03/how-to-build-opencv-4-x-for-native-android-development/)
Here is what I did :
----------------------
- downloaded the source files (not the opencv4android sdk)
- unzipped them
- built them in cmake with the generator UNIX MakeFiles and cross-compiler with Android toolchain. And to make it faster I deactivated BUILD_ANDROID_PROJECTS and BUILD_ANDROID_SAMPLES
- added the paths to Android SDK and NDK as well Android API level 27
- then built them again with the command "make" then "make install"
Note : I'm using Qt Creator and have included openCV in the .pro file like this
INCLUDEPATH += $openCVDirectory/sdk/native/jni/include/
LIBS += -L$openCVDirectory/sdk/native/libs/armeabi-v7a/lopencv_core
LIBS += -L$openCVDirectory/sdk/native/libs/armeabi-v7a/lopencv_highgui
LIBS += -L$openCVDirectory/sdk/native/libs/armeabi-v7a/lopencv_imgproc
So now I come to my questions :
----------------------------------------
- is it a problem if I don't have the folder 3rdparty ? 🤔
- did I include the libraries correctly in Qt ? 😳
- I always get the error message (undefined reference to) when I use anything from openCV ? I think it's a linking problem. How can I fix it ? 😢
I'll be glad if someone can help me or give me helpful links 😍
----------------------------------------
↧