Win7编译OpenCV3.2.0 for Android


1, 编译环境:

Win7 64 位

CMake 3.8.0-rc3

android-ndk-r9c

OpenCV3.2.0


2. 编译命令:

SET PATH=D:\Program\cmake-3.8.0-rc3-win64-x64\bin
SET ANDROID_NDK=D:\Program\android-ndk-r9c

cd opencv-3.2.0
mkdir build-out
cd build-out

mkdir install

cmake.exe -G"MinGW Makefiles"  cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=./install -DBUILD_SHARED_LIBS=ON -DWITH_OPENCL=ON -DCMAKE_TOOLCHAIN_FILE=..\platforms\android\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=23 -DANDROID_ABI=armeabi-v7a -DCMAKE_MAKE_PROGRAM="%ANDROID_NDK%\prebuilt\windows\bin\make.exe" ..

cmake.exe --build .


你可能感兴趣的:(OpenCV)