'opencv2/opencv.hpp' file not found

asked 2014-02-26 14:59:22 -0600

shaimita gravatar image

Set up an OpenCV project in Xcode Hi I have build OpenCv in my Mac OS X 10.9 following this website http://benderseye.com/opencv-build-on-mac-osx-10-9-mavericks/

And then I have followed this:

"Start XCode Create new "Command Line Tool" project with type C++ screenshot

Add OpenCV to your project

Right click your project on the sidebar, select "Add files to..." screenshot When the file chooser dialog opens up, press cmd + shift + G and enter "/usr/local/lib" screenshot Select the required OpenCV files (named in the format libopencv_*.dylib), or select all. Press Add or Return screenshot You will see that all selected files are now in the sidebar. You can youp them together by creating a new _Group_ and dragging the files in there. screenshot Configure your project Click on the project (in the side bar), and you should see the Project settings come up in the middle of the editor Click the All view (top left corner) In the search bar type "Header Search Paths", double click the value, remove the existing entries and add /usr/local/lib and /usr/local/include screenshot Now search for "Library Search Paths" and replace the values with /usr/local/lib Search for "C++ Standard Library" and select "libstdc++ (GNU C++ Standard Library)" screenshot Try the configuration Run one of the sample OpenCV projects"

But it doesn't work, it says that 'opencv2/opencv.hpp' file not found i don't what i am doing wrong...if someone can help me!!( i am not a expert in programming) :D

edit retag flag offensive close merge delete

Comments