Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtLocation and QtPositioning not installed



  • 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 installed

    It seems that these modules are not yet available for webassembly.
    Can anyone confirm this?

    Best regards,
    Michiel


  • Lifetime Qt Champion

    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.



  • 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.


Log in to reply