makefile - Qt How to make and install plugins? -
i use qt quick components desktop mentioned here: http://labs.qt.nokia.com/2011/03/10/qml-components-for-desktop/
the author gives following installation-instructions:
since of developed plugin qt itself, need started qt 4.7.2 sdk. check out http://qt.gitorious.org/qt-components/desktop , equivalent of
qmake && make installon system.
i cloned repository, executed qmake, mingw32-make , mingw32-make install on in command-line. new folder created includes files libstyleplugin.a , styleplugin.dll.
i don't know them. sample-qml-files (using components try install here) show nothing in qml-viewer, means aren't isntalled correctly.
so supposed do? (btw. i'm on windows).
hedge, i've done on linux believe able same on windows. built plugin good. cause seems "make install" doesn't work (lets not blame trolls - experimental project), need manually. need following:
- create "imports" directory inside directory whether installed qt.
- create "qt/labs" directory inside "imports" directory overall looks this: your_qt_dir/imports/qt/labs.
- copy "components" directory director built components "your_qt_dir/imports/qt/labs" looks this: your_qt_dir/imports/qt/labs/components.
- go "examples" directory in directory built components. find browser.qml, gallery.qml , panel.qml files there. open gallery.qml in text editor , replace following 2 lines on top:
import "../components"
import "../components/plugin"
with
import qt.labs.components 1.0
save changes , run gallery.qml in qmlviewer. should able run it.
also leave import statements gallery.qml rely on relative directory built components , won't work anywhere else.
hope helps
Comments
Post a Comment