Last active
August 9, 2017 13:15
-
-
Save amane-katagiri/359e2c2bd4c391ccc98c4ac908e54768 to your computer and use it in GitHub Desktop.
Cmake flags for opencv and python3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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