>

2015년 7월 22일 수요일

OpenCV 3.0.0 in Yosemitte 10.10.x

Source: 
http://www.learnopencv.com/install-opencv-3-on-yosemite-osx-10-10-x/

git clone https://github.com/Itseez/opencv_contrib.git
cd opencv_contrib
git checkout tags/3.0.0


* with CUDA 7.0 (otherwise errors or setting changes)

cmake -D WITH_CUDA=OFF -D CMAKE_INSTALL_PREFIX=/full/path/to/opencv/build -D CMAKE_BUILD_TYPE=RELEASE   ..

---
cp lib/pkgconfig/opencv.pc /usr/local/lib/pkgconfig/opencv3.pc

---
cd /full/path/to/opencv/samples/cpp
 
# If you built it with no CUDA support or with CUDA 7 or above
g++ -ggdb `pkg-config --cflags --libs opencv3` facedetect.cpp -o /tmp/test && /tmp/test
 
---
export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/cuda/lib/:$DYLD_FALLBACK_LIBRARY_PATH
cd /full/path/to/opencv/samples/gpu
 
# If you built it with CUDA 7 or above
g++ -ggdb `pkg-config --cflags --libs opencv3` hog.cpp -o /tmp/hog && /tmp/hog
 

댓글 없음:

댓글 쓰기