Here goes the steps: Installation steps
Finally compiling program with opencv:
Setup the PKG_CONFIG_PATH variable
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr
You can check that the PKG_CONFIG_PATH is correct by doing either:
pkg-config --cflags opencv
pkg-config --libs opencv
Compile and link the sample code on OS/X:
You can compile and run the sample code from the directory it's installed in "testcode.cpp":
g++ -bind_at_load `pkg-config --cflags opencv`testcode.cpp -o testcode `pkg-config --libs opencv`
./testcode
The image will show up in a window.
Tutorials on OpenCV can be found here.
Reference
Alternately, it can be installed using macport. Here are the instructions. Reference.
Subscribe to:
Post Comments (Atom)
Down with the Dictatorship!
"Let them hate me, so that they fear me" - Caligula 41AD
-
To install pngwrite we need to install to helper library before we install pngwriter. 1. libpng 2. freetype2 We can use fink or macport to i...
-
Health benefit and values
-
It started on a rainy day. So1ace was one of the best friends I had ever in my life. He arrived in my life on 29th January 2013. I spent 3 ...
No comments:
Post a Comment