I am coding a computer vision program, which is using OpenCV 2.4, by Xcode 4.4. I want to compile and make it in the Terminal by g++ or make command. But the system shows a lot of errors that the compiler cannot find the “opencv2/opencv.hpp” file and Vec3d, etc..!
My question is how to configure the system the I can make and build the code in Terminal? Thanks.
First, you need to have command line tools (I guess you already have it)
Then, you need to install OpenCV. I suggest to use Homebrew
brew install opencvIt will install library in /usr/local, which is in g++’s standard lookup path, thus should be ok.
If you still need help, post the log file.