QtLocation .dll version issue in Qt6
-
Hi, I get the following error after porting to Qt6 a project that has a QML module:
the plugin D:/Qt/6.5.1/mingw_64/qml/QtLocation/declarative_locationplugin.dll uses incompatible Qt library. (6.5.0) [release].I checked and the declarative_locationplugin.dll properties show it's correctly for 6.5.1.0, in any case I re-built in 6.5.1 the QtLocation project from the src files and generated a new declarative_locationplugin.dll but the error is still the same.
I don't understand where it takes version 6.5.0 from to then show that error.
Any idea?
Thanks. -
@knotAdev Hi knotAdev, just solved it.
The problem is the modules must be built with the same version on which Qt Creator itslef is based.
In my case the latest Qt Creator version was: "Based on Qt 6.4.3 (MSVC 2019, x86_64)". You can find it in the Help menu (About Qt Creator).
So, there were 2 choices; build the module from the 6.4.3. kit or make a personal build of Qt Creator with the version I'm using for my project, that is 6.5.2 MinGW64. The last one was the only solution possible for me because QtLocation module was not even available in the 6.4.3 package.
Now, with Creator based on 6.5.2 MingGW64 as like as my projects, those errors disappeared but I must check if everything works as expected.Hope this helps also for your issue.
-
-
@Actarus Glad you figured it out! I can see the same thing -that I'm using Qt Creator 11.0.2 based on Qt 6.4.3. I'm totally new to this building from source. Any quick tips or resources you can point me to that will help me get mine up to 6.5.2 like yours? Cheers!
-
@knotAdev Sure, here you can find the directions:
https://wiki.qt.io/Building_Qt_Creator_from_Githttps://github.com/qt-creator/qt-creator/blob/master/README.md#compiling-qt-creator
-
@Actarus said in QtLocation .dll version issue in Qt6:
@knotAdev Sure, here you can find the directions:
https://wiki.qt.io/Building_Qt_Creator_from_Githttps://github.com/qt-creator/qt-creator/blob/master/README.md#compiling-qt-creator
I realized the Creator version cloned directly from git is the latest 12 beta version and it's continuously crashing to me.
So I downloaded the sources of the 11.0.2 from here: https://www.qt.io/offline-installers and built it. The result is stable, no crashes so far.