Created
August 1, 2019 12:54
-
-
Save jcmendez/da254b4f3a6f1256e860535845818f2b to your computer and use it in GitHub Desktop.
Install opencv on mac os, with fish shell, virtualfish (vf)
This file contains hidden or 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
cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local/ \ | |
-D OPENCV_EXTRA_MODULES_PATH=~/Development/opencv_contrib-4.1.1/modules \ | |
-D PYTHON3_LIBRARY=(python -c 'import subprocess ; import sys ; s = subprocess.check_output("python-config --configdir", shell=True).decode("utf-8").strip() ; (M, m) = sys.version_info[:2] ; print("{}/libpython{}.{}.dylib".format(s, M, m))') \ | |
-D PYTHON3_INCLUDE_DIR=(python -c 'import distutils.sysconfig as s; print(s.get_python_inc())') \ | |
-D PYTHON3_EXECUTABLE=(which python) \ | |
-D BUILD_opencv_python2=OFF \ | |
-D BUILD_opencv_python3=ON \ | |
-D INSTALL_PYTHON_EXAMPLES=ON \ | |
-D INSTALL_C_EXAMPLES=OFF \ | |
-D OPENCV_ENABLE_NONFREE=ON \ | |
-D BUILD_EXAMPLES=ON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment