Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 304

build OpenCV 3.1 for android with openCL support

$
0
0
Hi All! I tried OpenCL on my OpenCV project and the result is a huge improvement in terms of performance so I would like to try OpenCL on android. I use this [article](http://docs.opencv.org/3.1.0/d7/dbd/tutorial_android_ocl_intro.html) to guide me. Here is my cmake command: cmake -GNinja -DCMAKE_MAKE_PROGRAM="/usr/bin/ninja" -DCMAKE_TOOLCHAIN_FILE="../opencv-3.1.0/platforms/android/android.toolchain.cmake" -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DWITH_OPENCL=YES -DANDROID_ABI="armeabi-v7a" ../opencv-3.1.0 and I use this command ninja install/strip I have no errors neither on compilation nor installation. And an `install` folder has been created. I think all is perfectly fine except that I can't find the `libopencv_java3.so` file !!!!! so: 1. Do you know how I can generate libopencv_java3.so ? 2. Do you know how I can target several abis ? I tried `-DANDROID_ABI="armeabi-v7a" -DANDROID_ABI="x86"` and `-DANDROID_ABI="armeabi-v7a x86"` but it is not correct. Thank you !

Viewing all articles
Browse latest Browse all 304

Trending Articles