QtLocation and QtPositioning not installed
-
wrote on 14 Feb 2020, 07:40 last edited by
Hello,
We have a QML application making use of the modules QtLocation and QtPositioning (for showing a Map with MapItems). The application runs fine on linux gcc_64, but when building and deploying it using wasm_32 (webassembly), we get the errors:
module "QtLocation" is not installed
module "QtPositioning" is not installedIt seems that these modules are not yet available for webassembly.
Can anyone confirm this?Best regards,
Michiel -
Hi and welcome to devnet,
You have the list of the currently supported module in this wiki page.
A quick look shows that currently neither QtLocation nor QtPosition are available.
-
wrote on 14 Feb 2020, 10:28 last edited by
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 -
wrote on 14 Feb 2020, 19:27 last edited by
QtLocation and QtPositioning are not supported modules in Qt WebAssembly.
-
QtLocation and QtPositioning are not supported modules in Qt WebAssembly.
wrote on 4 Sept 2023, 13:51 last edited by@lorn-potter
Any news if at least QtLocation will be supported in the near future for Qt for webassembly? -
wrote on 20 Jan 2024, 09:11 last edited by
Any news if at least QtLocation will be supported in the near future for Qt for webassembly?
-
Hello,
We have a QML application making use of the modules QtLocation and QtPositioning (for showing a Map with MapItems). The application runs fine on linux gcc_64, but when building and deploying it using wasm_32 (webassembly), we get the errors:
module "QtLocation" is not installed
module "QtPositioning" is not installedIt seems that these modules are not yet available for webassembly.
Can anyone confirm this?Best regards,
Michielwrote on 20 Jan 2024, 10:06 last edited by@michjans QtLocation is actually not supported for webassembly.If you want to test the map on a browser you can try with WEBGL plugin
-
@michjans QtLocation is actually not supported for webassembly.If you want to test the map on a browser you can try with WEBGL plugin
wrote on 26 Jan 2024, 06:38 last edited byCould you explain a bit more about how to use a map in qt web assembly.
-
wrote on 28 Aug 2024, 17:10 last edited by
@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)
-
wrote on 28 Aug 2024, 18:27 last edited by
however it is not supported in Qt6
-
wrote on 30 Aug 2024, 05:37 last edited by
@discipline here I used
Leaflet
javascript to add a map, and the map communicates with the Qt app through normal wasm function bindings.
The repo is here -
wrote on 1 Sept 2024, 07:39 last edited by
@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.