Skip to content

Instantly share code, notes, and snippets.

@amane-katagiri
Last active August 9, 2017 13:15
Show Gist options
  • Save amane-katagiri/359e2c2bd4c391ccc98c4ac908e54768 to your computer and use it in GitHub Desktop.
Save amane-katagiri/359e2c2bd4c391ccc98c4ac908e54768 to your computer and use it in GitHub Desktop.
Cmake flags for opencv and python3
mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=YES -DWITH_EIGEN=YES -DBUILD_NEW_PYTHON_SUPPORT=ON -DBUILD_opencv_python3=ON \
-DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
-DCMAKE_INSTALL_PREFIX=~/usr/software/opencv_build \
-DPYTHON_EXECUTABLE=~/.pyenv/versions/mlc/bin/python3 \
-DPYTHON_LIBRARY=~/.pyenv/versions/3.5-dev/lib/libpython3.so ..
make -j8
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment