Mac下编译OpenCV for android
2018-01-20 13:48
1071 查看
1.自行下载OpenCV源码
2.编译安装
# mkdir build_for_android
# cd build_for_android
# cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/android/android.toolchain.cmake \
-DANDROID_NDK=/path/android-ndk-r10e \
-DCMAKE_BUILD_TYPE=Release \
-DANDROID_ABI=arm64-v8a \
-DANDROID_NATIVE_API_LEVEL=21 ..
//注意这个-DCMAKE_INSTALL_PREFIX=./不用指定的话,会默认安装在: build_for_android/install目录.
库的位置:build_for_android/install/sdk/native/libs/arm64-v8a
# make -j8
# make install
3.测试
参考测试demo
2.编译安装
# mkdir build_for_android
# cd build_for_android
# cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/android/android.toolchain.cmake \
-DANDROID_NDK=/path/android-ndk-r10e \
-DCMAKE_BUILD_TYPE=Release \
-DANDROID_ABI=arm64-v8a \
-DANDROID_NATIVE_API_LEVEL=21 ..
//注意这个-DCMAKE_INSTALL_PREFIX=./不用指定的话,会默认安装在: build_for_android/install目录.
库的位置:build_for_android/install/sdk/native/libs/arm64-v8a
# make -j8
# make install
3.测试
参考测试demo
相关文章推荐
- 在Mac上安装编译OpenCV (for Cpp / Java / Android / Python)
- 编译并使用带有OpenCL模块的OpenCV for android SDK
- 编译OpenCV for Android
- Qt for Android on Mac:源码编译及环境配置
- 编译opencv for android
- Win7编译OpenCV3.2.0 for Android
- macosx 交叉编译 valgrind For Android
- Mac下编译OpenH264 for android
- [转]ubuntu下编译opencv for android及sample demo
- mac下配置Qt for Android编译环境
- ubuntu16.04编译opencv for Android
- 编译得到OpenCv+Contrib SDK for android
- linux下编译opencv3.3.0 for android
- Mac环境下opencv for android笔记
- opencv for android 编译
- 编译带有OpenCL的OpenCVForAndroid
- Mac OS 下编译OpenCV for iOS ,android ,mac os
- opencv for android 编译
- opencv for android 编译
- 编译并使用带有OpenCL模块的OpenCV for android SDK