Symbol(s) not found for architecture x86_64 with QT and OpenCV



  • I am working on a desktop application with the QT and Opencv on my mac. I have installed both qmaker on version 5.3.2(currently used) and 4.6.8 , opencv 2.4.9 , I use the GCC compiler, my QT creator version is 5.3.2.

    Previously I have a QT project previously run on a ubuntu, now it migrates to the mac, the only change is just on the .pro, in which the INCLUDEPATH and LIB path must change to the include and lib path of opencv in the mac.

    Here is my configuration.

    INCLUDEPATH += /usr/local/Cellar/opencv/2.4.9/include

    LIBS += -L/usr/local/Cellar/opencv/2.4.9/lib
    -lopencv_core
    -lopencv_highgui
    -lopencv_imgproc
    -lopencv_video
    -lopencv_objdetect
    -lopencv_ml
    -lopencv_features2d

    /usr/local/Cellar/opencv/2.4.9/include and /usr/local/Cellar/opencv/2.4.9/lib are the exact location for the opencv. There should be no reason to have this error, since the opencv libraries are all there and should be linked in the right format.

    right now I could not figure out how and why


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What symbols are not found ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.