I installd Qt 4.6.2 and OpenCV2.0 on my windows machine
Qt is installed at C:\Qt\2010.02.1\Qt and openCV is installed at c:\OpenCV2.0
I downloaded the QtOpenCV example which
Opens a webcam, and displays the image in the widget.
from http://opendesktop.org/content/show....SSID=kfmhtqozm
I copied opencv folder where it contains cv.h,higui.h in Qt include folder also I changed .pro file as
INCLUDEPATH += "C:\OpenCV2.0\src\cv"
INCLUDEPATH += "C:\OpenCV2.0\src\cxcore"
INCLUDEPATH += "C:\OpenCV2.0\src\cvaux"
INCLUDEPATH += "C:\OpenCV2.0\src\highgui"
LIBS += -L "C:\OpenCV2.0\lib"
LIBS += -lcv -lhighgui
INCLUDEPATH += "C:\OpenCV2.0\src\cv"
INCLUDEPATH += "C:\OpenCV2.0\src\cxcore"
INCLUDEPATH += "C:\OpenCV2.0\src\cvaux"
INCLUDEPATH += "C:\OpenCV2.0\src\highgui"
LIBS += -L "C:\OpenCV2.0\lib"
LIBS += -lcv -lhighgui
To copy to clipboard, switch view to plain text mode
when I compile example it gives me error
c:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lcv
collect2: ld returned 1 exit status
c:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lcv
collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode
why this error occures?
Bookmarks