Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-4142

Mobility QML modules don't load on MinGW

    XMLWordPrintable

Details

    Description

      Original report:

      I am not able to run/debug qmlcontacts example app from qtmobility with latest 4.7.2 SDK using Qt Simulator for mingW.

      Is there anything extra needed to be done for running the same in Qt Simulator

      This is the runtime failiure I get when I try to execute the application:

      Starting C:\Qt\QML Projects\qmlcontacts-build-simulator\debug\qmlcontacts.exe...
      qrc:/contacts.qml:42:1: plugin cannot be loaded for module "QtMobility.contacts": Cannot load library C:/QtSDK/Simulator/Qt/mingw/imports/QtMobility/contacts/declarative_contactsd.dll: The specified module could not be found.
      C:\Qt\QML Projects\qmlcontacts-build-simulator\debug\qmlcontacts.exe exited with code 0

      Following is the snippet of statement which is causing failiure:

      import QtMobility.contacts 1.1

      Follow up by Michael Goddard, probably related to QTMOBILITY-1404


      In the 1404 bug the workaround was to add the required mobility libraries (e.g. libQtContacts) to the individual application (which shouldn't be required). It almost sounds like the declarative plugins either don't correctly have the runtime dependency on the mobility libraries, or that dependency can't be resolved (wrong location, wrong names, missing dependencies of other types). I wonder if one of the sysinternals tools would help (procmon?)

      I don't think this problem was present in earlier SDKs, so I do wonder what changed (toolchain? Mkspec? Linkflags etc?)

      Attachments

        Issue Links

          Activity

            People

              con Eike Ziller
              ckamm Christian Kamm
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: