Skip to content

Instantly share code, notes, and snippets.

@moorage
Last active March 8, 2019 17:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moorage/bdb5b59c9069b8014c36 to your computer and use it in GitHub Desktop.
Save moorage/bdb5b59c9069b8014c36 to your computer and use it in GitHub Desktop.
How I built xphoto module into opencv-3.0.0

How I built xphoto module into opencv-3.0.0

Prereqs

Commands

cd ~/opensource
git clone https://github.com/Itseez/opencv.git
git clone https://github.com/Itseez/opencv_contrib.git
cd opencv
mkdir build
cd build
/Applications/CMake.app/Contents/bin/cmake -G "Unix Makefiles" -D CMAKE_INSTALL_PREFIX=~/Library/Developer/opencv/  -D CMAKE_OSX_ARCHITECTURES=x86_64 -D OPENCV_EXTRA_MODULES_PATH=~/opensource/opencv_contrib/modules ..
make
sudo make install
ln -s ~/Library/Developer/opencv/include /usr/local/include/opencv-3.0.0

Then in XCode, you set your user search path to: /usr/local/include/opencv-3.0.0/**

@heaversm
Copy link

heaversm commented Mar 8, 2019

Where is the search path in XCode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment