I am trying to create a project using OpenCV with QT for the user interface but I am having some problems.
I am using QT creator 2.0.0 on Ubuntu 10.4 64 bit with OpenCV 2.1.0.
I have each component installed and working independantly, but I can't seem to get them to play nice together.
For instance: using CMake and the following CMakeLists.txt file:
Qt Code:
PROJECT( facedetect_proj ) FIND_PACKAGE( OpenCV REQUIRED ) ADD_EXECUTABLE( facedetect facedetect.cpp ) TARGET_LINK_LIBRARIES( facedetect ${OpenCV_LIBS} )To copy to clipboard, switch view to plain text mode
Creator creates a project that compiles and runs just fine, but does not create a .pro file.
When I create just a QT project, it compiles just fine and seems to find the OpenCV libraries just fine in the IDE but then does not build properly. I get "undefined reference" errors for every function call using OpenCV. I am pretty sure that I need to include more in the .pro file for this to work but I am not sure how to do it or what to include. Please help me! Thanks!
Bookmarks