[solved] Linking Nokia Qt with OpenVC
-
Hello. I been looking through the internet on how to link third party libraries (openCV) with NokiaQT. But I find very limited information.
"http://developer.qt.nokia.com/wiki/OpenCV_with_Qt":http://developer.qt.nokia.com/wiki/OpenCV_with_Qt
"http://www.qtcentre.org/threads/38861-OpenCV-integration-with-Qt-creator":http://www.qtcentre.org/threads/38861-OpenCV-integration-with-Qt-creatorThe official website("OpenCV":http://opencv.willowgarage.com/wiki/VisualC++_VS2010) describe on how to integrate OpenCV with IDE(Visual C).
Include Directories... add: 'C:\OpenCV2.1\include\opencv;'
Library Directories... add: 'C:\OpenCV2.1\lib;'
Source Directories... add: 'C:\OpenCV2.1\src\cv; C:\OpenCV2.1\src\cvaux; C:\OpenCV2.1\src\cxcore; C:\OpenCV2\src\highgui; C:\OpenCV2.1\src\ml;'
* For Debug Builds.. add: 'cv210d.lib; cxcore210d.lib; highgui210d.lib;' * For Release Builds.. add: 'cv210.lib; cxcore210.lib; highgui210.lib;'
So the question is how to integrate it on NokiaQT. Below is my pro.file
@#-------------------------------------------------Project created by QtCreator 2011-03-12T01:59:47
#-------------------------------------------------
QT += core gui
TARGET = cubaanImage
TEMPLATE = appSOURCES += main.cpp
mainwindow.cppHEADERS += mainwindow.h
FORMS += mainwindow.ui
CONFIG += mobility
MOBILITY =INCLUDEPATH += C:/OpenCV2.1/include/opencv
C:/OpenCV2.1/src/cv
C:/OpenCV2.1/src/cvaux
C:/OpenCV2.1/src/cxcore
C:/OpenCV2.1/src/highgui
C:/OpenCV2.1/src/ml \LIBS += -LC:/OpenCV2.1/lib
LIBS += -lcv210d -lcxcore210d -lhighgui210d
symbian {
TARGET.UID3 = 0xe62189e7
# TARGET.CAPABILITY +=
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}
@Can someone tell me did I link it correctly and also one of my path have the word "include" -> C:\OpenCV2.1\include\opencv;
it shows a yellow label on include in the NokiaQT. How to solve it thanks ^^ -
Hope someone can help.
-
I tried to integrate OpenCV with NokiaQT
When debug it , the NokiaQT did not show the emulator. At the bottom of myApplication Output Shows :
C:\NokiaQtSDK\PSM\cubaanImage-build-simulator\release\cubaanImage.exe exited with code -1072365566Compile Output :
The process "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" exited normally.Any ideas ? ^^
Edit: merged this question from a separate post into this thread; Andre
-
On my mac I have just this in my *.pro file
@INCLUDEPATH += /usr/local/include/opencv
LIBS += -lopencv_highgui@
Take a look "here":http://qt-apps.org/content/show.php/Qt+Opencv+webcam+viewer?content=89995 -
Scylla. I presume that you been using this for your project and it runs normally.Does it ?
-
What is a cross compiler ? Can you explain it to me ? I think my OpenCV does not have it
-
[quote author="tanclanship" date="1300090621"]What is a cross compiler ? Can you explain it to me ? [/quote]
A "cross compiler":http://en.wikipedia.org/wiki/Cross_compiler is compiler that runs on platform A to produce binaries for platform B.So, in order to produce software that runs on Symbian, you probably will be needing a cross compiler that runs on your desktop and that produces binaries for Symbian, as you don't want want to compile your software on the device itself, I'd say :)
-
Andre -> Thanks for the information. Do NokiaQT could perform cross compiler on other third party libraries too ?
-
[quote author="tanclanship" date="1300091670"]Andre -> Thanks for the information. Do NokiaQT could perform cross compiler on other third party libraries too ?
[/quote]
I would imagine that an installed cross compilation tool chain would work for third party libraries too, if these libraries can be compiled for the different platform. For instance, if your library makes use of x86 specific functionality, then you can not expect to be able to compile and/or run it successfully on an ARM based device. -
Andre -> I see. then the libraries do can be compile at different platforms . But problem again is that I do now know how to do it(refer first post). Thanks again
Me -> Will be waiting here patiently for someone to solve the OpenCV and NOkiaQT problem.Been killing me
-
[quote author="tanclanship" date="1300092807"]Andre -> I see. then the libraries do can be compile at different platforms . But problem again is that I do now know how to do it(refer first post). Thanks again[/quote]
I have no experience with this library, so I can't help you there.
[quote]
Me -> Will be waiting here patiently for someone to solve the OpenCV and NOkiaQT problem.Been killing me[/quote]
I doubt that is a very effective strategy. I'd keep trying to find a solution myself, with lots of googling, posting in relevant forums, looking for relevant mailing lists, trying for relevant IRC channels, and if all else fails, even trying to email the author of the OpenCV library and politely asking where you might find pointers to solve your problem. The internet is a big place, and DevNet is not the only place where you might unearth solutions to your problems. -
Below is my application project linked with OpenCV 2.2 (It works like a charm with 2 cameras attached)
...
OPENCV_DIR = ../../../../LIBS/OpenCV/OpenCV-2.2INCLUDEPATH +=
$$OPENCV_DIR/include
$$OPENCV_DIR/modules/core/include
$$OPENCV_DIR/modules/imgproc/include
$$OPENCV_DIR/modules/video/include
$$OPENCV_DIR/modules/features2d/include
$$OPENCV_DIR/modules/flann/include
$$OPENCV_DIR/modules/calib3d/include
$$OPENCV_DIR/modules/objdetect/include
$$OPENCV_DIR/modules/legacy/include
$$OPENCV_DIR/modules/highgui/include
$$OPENCV_DIR/modules/ml/include
$$OPENCV_DIR/modules/contrib/includeLIBS =
-L$$OPENCV_DIR/modules/core/lapack/$$CONFDIR
-L$$OPENCV_DIR/modules/core/$$CONFDIR
-L$$OPENCV_DIR/modules/highgui/$$CONFDIR
-lopencv_lapack
-lopencv_core
-lopencv_highguiwin32: LIBS += -lvfw32 -lole32
-
I have compiled all modules from OpenCV 2.2 in Windows 7 and Ubuntu 64 bits.
All the modules I've compiled with QtCreator. They are: lapack, core, contrib, calib3d, features2d, flann, gpu, haartraining, highgui, imgproc, legacy, ml, objdetect, traincascade, video.My application is linked with OpenCV with Qt project described above.
-
[quote author="cincirin" date="1300101520"]I apologize, I have not noticed that it is a mobile forum.
Yes, I have compiled for win7 and Ubuntu (32&64).
In the near future, I'll try to compile for mobile platform.
Sorry again.[/quote]-OK, so I have moved the thread to the General & Desktop forum.-
Moved back to Mobile & Embedded on request of TS. -
I have follow your instruction by downloading and install OpenCV2.2 in my default folder. C:/OpenCV2.2 . Below is my pro file. I have chance the OPENCV_DIR following my directory. but when I compile using NokiaQT I have error stating cannot find -lopencv_lapack. Please help thank you
@OPENCV_DIR = C:/OpenCV2.2
INCLUDEPATH +=
$$OPENCV_DIR/include
$$OPENCV_DIR/modules/core/include
$$OPENCV_DIR/modules/imgproc/include
$$OPENCV_DIR/modules/video/include
$$OPENCV_DIR/modules/features2d/include
$$OPENCV_DIR/modules/flann/include
$$OPENCV_DIR/modules/calib3d/include
$$OPENCV_DIR/modules/objdetect/include
$$OPENCV_DIR/modules/legacy/include
$$OPENCV_DIR/modules/highgui/include
$$OPENCV_DIR/modules/ml/include
$$OPENCV_DIR/modules/contrib/includeLIBS =
-L$$OPENCV_DIR/modules/core/lapack/$$CONFDIR
-L$$OPENCV_DIR/modules/core/$$CONFDIR
-L$$OPENCV_DIR/modules/highgui/$$CONFDIR
-lopencv_lapack
-lopencv_core
-lopencv_highguiwin32: LIBS += -lvfw32 -lole32@