[Qt-interest] About Plugin Architecture in QT
hakiim warrick
hakiim35 at hotmail.com
Tue May 12 09:49:43 CEST 2009
Hi again, we are giving a first attempt to add a plugin to the "plugandpaint" example of Qt. We are using Qt 4.5.1 version. We added our plugin under the "plugandpaintplugins" example, as a folder.
There is no problem when we dont use another library in the plugin, our plugin becomes a new menu in the plugandpaint's gui.
But when we want to use a library(OpenCV-Intel's Open Computer Vision Library) while writing our plugin, it just wont..
Only difference we apply is to add OpenCV include paths and lib paths to the .pro file of our plugin as follows:
INCLUDEPATH += ../.. \
"C:\Program Files\OpenCV\cv\include" \
"C:\Program Files\OpenCV\cxcore\include" \
"C:\Program Files\OpenCV\cvaux\include" \
"C:\Program Files\OpenCV\otherlibs\highgui"
win32:LIBS += -L"C:\Program Files\OpenCV\lib"
LIBS += -lcv \
-lcvaux \
-lhighgui \
-lcxcore
and adding the following method definitions to our "ourplugin.h"
public:
.....
QImage IplImageToQImage(const IplImage *iplImage);
IplImage* QImageToIplImage(const QImage * qImage);
.....
and implementing them in "ourplugin.cpp" by utilizing OpenCV functions. The plugin wont recognize opencv functions when we dont add the include and lib paths in the pro file. But we also add these paths into the plugandpaintplugins project using the project wizard.
Are we missing a point while adding the library to the project?
Best regards.
_________________________________________________________________
Sadece e-posta iletilerinden daha fazlası: Diğer Windows Live™ özelliklerine göz atın.
http://www.microsoft.com/turkiye/windows/windowslive/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090512/4578a9c5/attachment.html
More information about the Qt-interest-old
mailing list