Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. (Solved) Installing QtMobiliy.Location - plugin cannot be loaded for module (..) Cannot load library (..) The specified procedure could not be found
QtWS25 Last Chance

(Solved) Installing QtMobiliy.Location - plugin cannot be loaded for module (..) Cannot load library (..) The specified procedure could not be found

Scheduled Pinned Locked Moved Installation and Deployment
13 Posts 2 Posters 8.6k 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.
  • A Offline
    A Offline
    amccarthy
    wrote on last edited by
    #4

    @
    CONFIG += mobility
    MOBILITY = location
    @

    are only required if you are using Qt Location from C++. Try setting the environment variable QML_IMPORT_TRACE to 1 and look at the debug output when running your application.

    The second method I mentioned was to call QDeclarativeEngine::addImportPath(), but this doesn't seem necessary as the Qt Location import looks to be installed in the correct location.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Metallicum
      wrote on last edited by
      #5

      Thanks again for your answer.

      The result shows:
      QDeclarativeImportDatabase::addImportPath: "C:\Qt\4.8.2\imports"
      QDeclarativeImportDatabase::addImportPath: "C:/Python27"

      The problem at that point: I have Qt 4.8.4 installed at C:\Qt\4.8.4....
      Where are the paths configured/set/read?

      After renaming the folder, the module is found but:
      QDeclarativeImportDatabase::importPlugin: "QtMobility.location" from "C:/Qt/4.8.2/imports/QtMobility/location/declarative_location.dll"
      D:\Daten\Eclipse\Testing\frontend\frontend.qml:23:1: plugin cannot be loaded for module "QtMobility.location": The plugin 'C:/Qt/4.8.2/imports/QtMobility/location/declarative_location.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows mingw release full-config"

      I am now trying it with the msvc release :)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amccarthy
        wrote on last edited by
        #6

        You have two problems here. The first as you discovered is that the Qt version you have installed is not where it expects to be. Renaming the directory solved that. I don't know what could have caused this. The Qt libraries are patched at installation time with the install prefix.

        The second problem is that you are mixing msvc and mingw builds. I believe those compilers are not binary compatible. You need to build your application, Qt Location and Qt with the same compiler.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Metallicum
          wrote on last edited by
          #7

          Compiling via msvc worked (as i found out: mscv was used for PySide, so I have to use it too)

          But now I get the following error:
          QDeclarativeImportDatabase::importPlugin: "QtMobility.location" from "C:/Qt/4.8.4/imports/QtMobility/location/declarative_location.dll"
          D:\Daten\Eclipse\Testing\frontend\frontend.qml:23:1: plugin cannot be loaded for module "QtMobility.location": Cannot load library C:/Qt/4.8.4/imports/QtMobility/location/declarative_location.dll: The specified procedure was not found.

          Analysing the above dll with Dependency Walker shows me that some dlls (e.g. ieshims.dll) are not found.

          Do you have any idea against that?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Metallicum
            wrote on last edited by
            #8

            I don't get it...
            All dlls (except ieshims.dll, which seems not important at that point) are referenced and found correctly, but the above error still appears...

            1 Reply Last reply
            0
            • A Offline
              A Offline
              amccarthy
              wrote on last edited by
              #9

              I don't recognize the ieshims.dll, is this a direct dependency of declarative_location.dll?

              You could try setting the environment variable QT_DEBUG_PLUGINS=1 but I suspect that will not shed any more light on the mater.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Metallicum
                wrote on last edited by
                #10

                The ieshims.dll is no direct dependency, it is "at the bottom" of the dependency tree and concerning to Google search results it is normal that dependency walker highlights it.

                Dependency Walker prints:
                Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

                Unfortunately adding QT_DEBUG_PLUGINS just prints the error twice:
                QDeclarativeImportDatabase::importPlugin: "QtMobility.location" from "C:/Qt/4.8.4/imports/QtMobility/location/declarative_location.dll"
                QLibraryPrivate::loadPlugin failed on "C:/Qt/4.8.4/imports/QtMobility/location/declarative_location.dll" : "Cannot load library C:/Qt/4.8.4/imports/QtMobility/location/declarative_location.dll: Die angegebene Prozedur wurde nicht gefunden."
                D:\Daten\Eclipse\Testing\frontend\frontend.qml:23:1: plugin cannot be loaded for module "QtMobility.location": Cannot load library C:/Qt/4.8.4/imports/QtMobility/location/declarative_location.dll: Die angegebene Prozedur wurde nicht gefunden.

                ("Die angegebene Prozedur wurde nicht gefunden." is German meaning The specified Procedure could not be found.)

                I also tried the compiled QTMobility.location dlls used by the developer of the program, with the same results.

                Furthermore I installed all the things on another laptop and in a VM - same problem. So could there be something I make always wrong? Should I try Visual Studio 2008 instead of Visual Studio 2010?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  amccarthy
                  wrote on last edited by
                  #11

                  I can only think of two things left to try.

                  install ieshims.dll on your system. If that is not possible, find out what library is pulling in ieshims.dll as a dependency, determine why it is needed and if it can be rebuilt without it as a dependency.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Metallicum
                    wrote on last edited by
                    #12

                    Thank you for your quick response.
                    I added a path to the ieshims.dll (part of Internet Explorer) to the import path, now shlwapi.dll throws a warning. But I find even more results on Google, that this is no problem at all...

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Metallicum
                      wrote on last edited by
                      #13

                      News:
                      Switched to QT 4.7.4 and VS 2008, after someone from the QT Mobility Team told me that Qt Mobility was never tested with 4.8.4.
                      Result: Import works :)

                      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