编译opencv for android
2017-04-25 16:10
323 查看
build opencv for android
1)add script ‘android_hard.sh’ to ‘opencv-3.1.0/platforms/scripts/’#!/bin/sh cd `dirname $0`/.. mkdir -p build_android_arm cd build_android_arm cmake -DANDROID_ABI="armeabi-v7a-hard with NEON" \ -DANDROID_NATIVE_API_LEVEL=android-19 \ -DBUILD_ANDROID_EXAMPLES=OFF \ -DBUILD_DOCS=OFF \ -DBUILD_EXAMPLES=OFF \ -DWITH_CUDA=OFF \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ -DCMAKE_TOOLCHAIN_FILE=../android/android.toolchain.cmake $@ ../..
2)run ‘./android_hard.sh’
# if libopencv_java3.so were not to be built # run the following commends at first # then re-run 'android_hard.sh' sudo apt-get install libeigen3-dev sudo apt-get install ant
3)cd build_android_arm
4)make -j4
5)make install
相关文章推荐
- 在Mac上安装编译OpenCV (for Cpp / Java / Android / Python)
- 编译得到OpenCv+Contrib SDK for android
- 编译并使用带有OpenCL模块的OpenCV for android SDK
- 编译带有OpenCL的OpenCVForAndroid
- [转]ubuntu下编译opencv for android及sample demo
- 编译OpenCV for Android
- opencv for android 编译
- 编译并使用带有OpenCL模块的OpenCV for android SDK
- Mac下编译OpenCV for android
- linux下编译opencv3.3.0 for android
- ubuntu16.04编译opencv for Android
- Win7编译OpenCV3.2.0 for Android
- Mac OS 下编译OpenCV for iOS ,android ,mac os
- opencv for android 编译
- opencv for android 编译
- 编译OpenCV for arm-linux 转
- 下载CyanogenMod 7.2 for Motorola Defy (Android 2.3.7 AOSP)的CM源码并编译
- 下载CyanogenMod 7.2 for Motorola Defy (Android 2.3.7 AOSP)的CM源码并编译
- Android 4.0 x86 Linux3.0.8内核编译简介/Compile kernel for Android-x86
- android 编译错误001_cm9 for onda elite vi10