Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Module "QtMobility.gallery" not found - qt-mobility-opensource-src-1.1.0 - a cleaner way?
Forum Update on Monday, May 27th 2025

Module "QtMobility.gallery" not found - qt-mobility-opensource-src-1.1.0 - a cleaner way?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simonbolek
    wrote on last edited by
    #1

    Windows XP
    qt-mobility-opensource-src-1.1.0

    While 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 1

    than 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\QtMobility

    and than copied .A and .DLL
    from gallery\release
    to QtMobility\gallery

    And after that declarative-music-browser started working.
    However QML editor still says: "package not found" for QtMobility.gallery 1.1

    So 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:)

    cheers
    simon:)

    http://arcom-ivi.de

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qAminzzz
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved