Skip to content

Instantly share code, notes, and snippets.

View smichalowski's full-sized avatar

Sebastian Michalowski smichalowski

  • Victoria, Seychelles
View GitHub Profile
@smichalowski
smichalowski / gist:65674ba799d38c0b29da107cbd801879
Created November 1, 2016 20:20
opencv3 + macOS Sierra + python2.7 + macports
download opencv source code, cd into source dir.
```
mkdir build
cd build
cmake .. -DBUILD_opencv_videoio=OFF -DPYTHON_LIBRARY=/opt/local/lib/libpython2.7.dylib -DPYTHON2_PACKAGES_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages -DPYTHON2_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DCMAKE_INSTALL_PREFIX=/opt/local
make -j10
sudo make install
```