Skip to content

Instantly share code, notes, and snippets.

@amane-katagiri
Last active Aug 9, 2017
Embed
What would you like to do?
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