Module "QtMobility.gallery" not found - qt-mobility-opensource-src-1.1.0 - a cleaner way?
-
Windows XP
qt-mobility-opensource-src-1.1.0While playing with declarative-music-browser I was missing the QtMobility.gallery
QML editor says "package not found".
After reading this
"QML Modules":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativemodules.html
I figure out that this module is not installed - I must have done sth wrong while installing qtmobility, enen though I followed the
"Mobility Installation Guide":http://doc.qt.nokia.com/qt-mobility-snapshot/installation.html
very strictly.
I set up the QML_IMPORT_PATH to
C:\temp\Qt\qt-mobility-opensource-src-1.1.0\qt-mobility-opensource-src-1.1.0\plugins\declarative\gallery
and set up the QML_IMPORT_TRACE to 1than it showed me this
@
QDeclarativeImportDatabase::addImportPath: "C:\temp\Qt\4.7.1\imports"
QDeclarativeImportDatabase::addImportPath: "c:\temp\Qt\qt-mobility-opensource-src-1.1.0\qt-mobility-opensource-src-1.1.0\plugins\declarative\gallery"
QDeclarativeImportDatabase::addImportPath: "C:/temp/Qt/qt-mobility-opensource-src-1.1.0/qt-mobility-opensource-src-1.1.0/examples/declarative-music-browser-build-desktop/release"
QDeclarativeImports(qrc:///musicbrowser.qml)::addImport: "." -1.-1 File as ""
QDeclarativeImports(qrc:///musicbrowser.qml)::addImport: "Qt" 4.7 Library as ""
QDeclarativeImports(qrc:///musicbrowser.qml)::addImport: "QtMobility.gallery" 1.1 Library as ""
QDeclarativeImports(qrc:///musicbrowser.qml::importExtension: loaded "C:/temp/Qt/4.7.1/imports/QtMobility/gallery/qmldir"
QDeclarativeImportDatabase::resolvePlugin: Could not resolve plugin "declarative_gallery" in "C:/temp/Qt/4.7.1/imports/QtMobility/gallery"
qrc:///musicbrowser.qml:42:1: module "QtMobility.gallery" plugin "declarative_gallery" not found
@...so I figured what directories it is looking for gallery qmldir .A and .DLL files; and copied the whole directory
c:\temp\Qt\qt-mobility-opensource-src-1.1.0\qt-mobility-opensource-src-1.1.0\plugins\declarative\gallery
into
C:\temp\Qt\4.7.1\imports\QtMobilityand than copied .A and .DLL
from gallery\release
to QtMobility\galleryAnd after that declarative-music-browser started working.
However QML editor still says: "package not found" for QtMobility.gallery 1.1So my questions would be:
Is there a cleaner way for the modules to be included?
What do I have to do for the QML editor not to moan anymore?thanks+cheerios
simon:) -
This post is deleted!