Created
December 5, 2010 18:16
-
-
Save jgoulah/729312 to your computer and use it in GitHub Desktop.
how to install opencv with python bindings on osx
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
| $ cd /System/Library/Frameworks | |
| $ mv Python.framework Python.framework.system | |
| $ sudo ln -s /opt/local/Library/Frameworks/Python.framework . | |
| $ ls -ald Python.framework* | |
| lrwxr-xr-x 1 root wheel 46 Dec 5 12:49 Python.framework -> /opt/local/Library/Frameworks/Python.framework | |
| drwxr-xr-x 7 root wheel 238 Dec 1 11:24 Python.framework.system | |
| $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/local -D PYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Headers -D BUILD_PYTHON_SUPPORT=ON -D BUILD_SWIG_PYTHON_SUPPORT=OFF -D CMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -D CMAKE_C_COMPILER=/usr/bin/gcc-4.2 .. | |
| # it will link correctly to /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python | |
| # so then you can move the .system dir back |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment