1 | initial version |
With this line :
cmake -G "Unix Makefiles" -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DWITH_NEON=ON -DWITH_EIGEN=ON -DWITH_OPENCL=ON -DBUILD_opencv_gpu=OFF -DCMAKE_TOOLCHAIN_FILE=/home/Documents/opencv-3.4.4/platforms/android/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home//Android/Sdk/ndk-bundle/prebuilt/linux-x86_64/bin/make -DANDROID_AdBI="armeabi-v7a with NEON" -DOPENCV_EXTRA_MODULES_PATH=/home/Documents/opencv_contrib-3.4.4/modules/ -DBUILD_opencv_features2d=ON -DBUILD_opencv_ximgproc=ON -DBUILD_opencv_java=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCXXFLAGS="-Wall -fpu=neon -O3" -DBUILD_JAVA=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DEIGEN_INCLUDE_PATH=/home/Android/Dependencies/Android/Eigen_3.3.4/include/eigen3/ -DANDROID_NATIVE_API_LEVEL=24 -DCMAKE_ANDROID_API_MIN=24 ..
You'll build the library successfully, but when you'll link it you'll probably meet a few undefined symbols like me.. Thanks if someones have an idea.
2 | No.2 Revision |
This answer is about Opencv 3.4.4
With this line :
cmake -G "Unix Makefiles" -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DWITH_NEON=ON -DWITH_EIGEN=ON -DWITH_OPENCL=ON -DBUILD_opencv_gpu=OFF -DCMAKE_TOOLCHAIN_FILE=/home/Documents/opencv-3.4.4/platforms/android/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home//Android/Sdk/ndk-bundle/prebuilt/linux-x86_64/bin/make -DANDROID_AdBI="armeabi-v7a with NEON" -DOPENCV_EXTRA_MODULES_PATH=/home/Documents/opencv_contrib-3.4.4/modules/ -DBUILD_opencv_features2d=ON -DBUILD_opencv_ximgproc=ON -DBUILD_opencv_java=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCXXFLAGS="-Wall -fpu=neon -O3" -DBUILD_JAVA=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DEIGEN_INCLUDE_PATH=/home/Android/Dependencies/Android/Eigen_3.3.4/include/eigen3/ -DANDROID_NATIVE_API_LEVEL=24 -DCMAKE_ANDROID_API_MIN=24 ..
You'll build the library successfully, but when you'll link it you'll probably meet a few undefined symbols like me.. Thanks if someones have an idea.
3 | No.3 Revision |
This answer is talks about Opencv 3.4.4
With this line :
cmake -G "Unix Makefiles" -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DWITH_NEON=ON -DWITH_EIGEN=ON -DWITH_OPENCL=ON -DBUILD_opencv_gpu=OFF -DCMAKE_TOOLCHAIN_FILE=/home/Documents/opencv-3.4.4/platforms/android/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home//Android/Sdk/ndk-bundle/prebuilt/linux-x86_64/bin/make -DANDROID_AdBI="armeabi-v7a with NEON" -DOPENCV_EXTRA_MODULES_PATH=/home/Documents/opencv_contrib-3.4.4/modules/ -DBUILD_opencv_features2d=ON -DBUILD_opencv_ximgproc=ON -DBUILD_opencv_java=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCXXFLAGS="-Wall -fpu=neon -O3" -DBUILD_JAVA=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DEIGEN_INCLUDE_PATH=/home/Android/Dependencies/Android/Eigen_3.3.4/include/eigen3/ -DANDROID_NATIVE_API_LEVEL=24 -DCMAKE_ANDROID_API_MIN=24 ..
You'll build the library successfully, but when you'll link it you'll probably meet a few undefined symbols like me.. Thanks if someones have an idea.