opencv in Mac using qt creator

asked 2016-02-22 09:09:11 -0600

Hi

I am trying to install opencv in my mac system using qt creator. I have already tried every method to make it work. The opencv in properly installed and I can include the libraries in my program. But as soon as I add a very simple code to read an image these errors shown: :-1: error: symbol(s) not found for architecture x86_64 :-1: error: linker command failed with exit code 1 (use -v to see invocation)

I added the libraries and path to my .pro file and everything seems to work but I have no idea what is going on with this error. I have already search internet and ask professionals to help but it is not working yet.

My mac version is 10.11.3 (OS X El Capitan) and I download the opencv 3.0.0 using qt creator 3.5.1

Here are the lines which I added to my .pro file:

LIBS += -L/usr/local/lib/ -lopencv_core -lopencv_highgui -lopencv_imgproc INCLUDEPATH += /usr/local/include/

I really appreciate any help.

edit retag flag offensive close merge delete