QtLocation and QtPositioning not installed
-
Thanks,
I downloaded the qt source code and tried to build the qtlocation module manually using wasm_32. First I did:qmake qtlocation.pro Running configuration tests... Done running configuration tests. Configure summary: Qt Positioning: Gypsy GPS Daemon ....................... no WinRT Geolocation API .................. no Qt Location: Qt.labs.location experimental QML plugin . yes Geoservice plugins: OpenStreetMap ........................ no HERE ................................. yes Esri ................................. yes Mapbox ............................... yes MapboxGL ............................. yes Itemsoverlay ......................... yes Qt is now configured for building. Just run 'make'. Once everything is built, you must run 'make install'. Qt will be installed into '/BUILDS/workspace/Qt-5-14/5.14.1/wasm_32'. Prior to reconfiguration, make sure you remove any leftovers from the previous build.
But when running make I get the error:
make Some of the required modules (!wasm) are not available. Skipped.
Does this mean that it is also not possible to manually build the qtlocation module for wasm_32?
Can I force it to build?Best regards,
Michiel -
QtLocation and QtPositioning are not supported modules in Qt WebAssembly.
-
@lorn-potter
Any news if at least QtLocation will be supported in the near future for Qt for webassembly? -
Could you explain a bit more about how to use a map in qt web assembly.
-
@Mesrine he meant using the QPA WebGL Plugin: https://github.com/qt/qtwebglplugin ; however it is not supported in Qt6. If you are willing to give that a try, let's share some notes.
I'm a new comer to this space and am trying to get a Map to display on the browser. So far I looked at the possible high levels avenues to be explored, note that these come from a naive and uneducated point of view:
- Update QtPositioning and QtLocation for web assembly (unsure about the effort required)
- Create a QtWebMaps modules with only the slippy map of QtLocation (unsure if this can be done license-wise)
- Update the qtwebglplugin to Qt6 (unsure about the effort required or technical possibilities)
-
however it is not supported in Qt6
-
@Mesrine thanks for sharing! Awesome work there!
At this time I am more inclined to a single C++ codebase for a proof of concept which would target Web, Desktop and Mobile. However if it comes to it, I could end up with a separate solution for WASM inspired by what you have there.