nihui / opencv-mobile

The minimal opencv for Android, iOS, ARM Linux, Windows, Linux, MacOS, WebAssembly
Apache License 2.0
2.47k stars 345 forks source link

iOS and and Android #56

Open niqt opened 1 year ago

niqt commented 1 year ago

Is it possible to have the instructions to build for ios and android in the README? Thanks

niqt commented 1 year ago

I tried in this way for ios `mkdir build-arm64 cd build-arm64

cmake -DCMAKE_TOOLCHAIN_FILE=../../toolchains/ios.toolchain.cmake -DPLATFORM="OS" -DARCHS="arm64" \ -DDEPLOYMENT_TARGET=$IOS_DEPLOYMENT_TARGET -DENABLE_BITCODE=$ENABLE_BITCODE -DENABLE_ARC=$ENABLE_ARC -DENABLE_VISIBILITY=$ENABLE_VISIBILITY \ -DCMAKE_C_FLAGS="-frtti -fno-exceptions" -DCMAKE_CXX_FLAGS="-frtti -fno-exceptions" \ -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release cat ../../opencv4_cmake_options.txt -DBUILD_opencv_world=ON -DOPENCV_DISABLE_FILESYSTEM_SUPPORT=ON ..`