hi,
i want to use openCV in my project and previously i have work on it , but unfortunately i forgot what to write in .pro file in addition to use open Cv with my Qt project??
I know only about INCLUDEPATH,but what to write in LIBS:??
Printable View
hi,
i want to use openCV in my project and previously i have work on it , but unfortunately i forgot what to write in .pro file in addition to use open Cv with my Qt project??
I know only about INCLUDEPATH,but what to write in LIBS:??
if you are using linux
Code:
LIBS +=/usr/lib64/libcv.so.2.1 \ /usr/lib64/libcvaux.so.2.1 \ /usr/lib64/libcxcore.so.2.1 \ /usr/lib64/libhighgui.so.2.1 \ /usr/lib64/libml.so.2.1
(this is an example.)
similarly you can use the lib file for windows application.
hey thanks...
but m using openCv 2.2
below is my profile.
Code:
#------------------------------------------------- # # Project created by QtCreator 2011-06-06T19:49:01 # #------------------------------------------------- QT += core gui TARGET = Facedetection TEMPLATE = app SOURCES += main.cpp\ facerecognizer.cpp HEADERS += facerecognizer.h FORMS += facerecognizer.ui CONFIG += mobility MOBILITY = INCLUDEPATH+=C:\OpenCV2.2\include\opencv \ C:\OpenCV2.2\include\opencv2 LIBS+=C:/OpenCV2.2/lib/*.lib symbian { TARGET.UID3 = 0xeebafacd # TARGET.CAPABILITY += TARGET.EPOCSTACKSIZE = 0x14000 TARGET.EPOCHEAPSIZE = 0x020000 0x800000 }
Can you pleas tell me were am i wrong??
I am facing error of "No Such File or Directory"
use slashes no backslash, don't use wild cards in file names
copy the opencv and opencv2 folder to qt include path.
use the header file as : #include <opencv/highgui.h>
for this you should not add includes in .pro file.