PDA

View Full Version : Building an OpenCV application in QT Creator



wwwater
11th September 2011, 20:59
I built OpenCV with CMake under Visual studio 10, copied the binaries to a /bin folder in the opencv directory. I have a simple OpenCV program with no syntax errors, but I am getting several errors such as "undefined reference to cv::imread". Why is this?

My .pro file has the following appended at the end of it:

INCLUDEPATH += C:/opencv/build/include/

LIBS += -LC:/opencv/build/x64/vc10/lib \
-lopencv_core231 \
-lopencv_highgui231 \
-lopencv_imgproc231 \
-lopencv_features2d231 \
-lopencv_calib3d231

Thanks

high_flyer
12th September 2011, 11:34
Which compiler do you use with creator?
Are you sure the binaries you made with VisualStudio are 64 bit - and that your project is configured to be 64 bits in creator?