(Solved) Installing QtMobiliy.Location - plugin cannot be loaded for module (..) Cannot load library (..) The specified procedure could not be found
-
@
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.
-
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 :)
-
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.
-
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?
-
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... -
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?
-
-
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... -
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 :)