Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.14.0
-
None
Description
I successfully compiled Qt 5.14.0 statically from sources with the following configure command:
configure -verbose -developer-build -opensource -confirm-license -release -static -static-runtime -no-reduce-relocations -gui -widgets -skip qtdocgallery -skip qtwayland -skip qtwebengine -no-compile-examples -make libs -make tools -nomake tests -nomake examples
I also successfully build and link my application to static Qt. In my cmakelist file I used what is described in documentation:
find_package(Qt5 5.14 COMPONENTS Core Quick Positioning Location QmlImportScanner REQUIRED)
target_link_libraries(myApp PRIVATE Qt5::Core Qt5::Quick Qt5::Positioning Qt5::Location)
qt5_import_qml_plugins(myApp)
My QML file looks like this:
import QtQuick 2.14
import QtLocation 5.14
import QtPositioning 5.14
Map {
id: map
anchors.fill: parent
plugin: Plugin
{ id: mapPlugin name: "osm" }center: QtPositioning.coordinate(0.0, 0.0)
}
When I run my application, I got the following error:
1, "The geoservices provider is not supported."
When building and linking with dynamic Qt 5.14.0, everything works fine.