Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. QtLocation and QtPositioning not installed
Forum Updated to NodeBB v4.3 + New Features

QtLocation and QtPositioning not installed

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
12 Posts 7 Posters 2.5k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    michjans
    wrote on last edited by
    #3

    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

    1 Reply Last reply
    0
    • lorn.potterL Offline
      lorn.potterL Offline
      lorn.potter
      wrote on last edited by
      #4

      QtLocation and QtPositioning are not supported modules in Qt WebAssembly.

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      MesrineM 1 Reply Last reply
      2
      • lorn.potterL lorn.potter

        QtLocation and QtPositioning are not supported modules in Qt WebAssembly.

        MesrineM Offline
        MesrineM Offline
        Mesrine
        wrote on last edited by
        #5

        @lorn-potter
        Any news if at least QtLocation will be supported in the near future for Qt for webassembly?

        1 Reply Last reply
        1
        • P Offline
          P Offline
          ProQtGuy
          wrote on last edited by
          #6

          Any news if at least QtLocation will be supported in the near future for Qt for webassembly?

          1 Reply Last reply
          0
          • M michjans

            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

            Ronel_qtmasterR Offline
            Ronel_qtmasterR Offline
            Ronel_qtmaster
            wrote on last edited by
            #7

            @michjans QtLocation is actually not supported for webassembly.If you want to test the map on a browser you can try with WEBGL plugin

            MesrineM 1 Reply Last reply
            0
            • Ronel_qtmasterR Ronel_qtmaster

              @michjans QtLocation is actually not supported for webassembly.If you want to test the map on a browser you can try with WEBGL plugin

              MesrineM Offline
              MesrineM Offline
              Mesrine
              wrote on last edited by
              #8

              @Ronel_qtmaster

              Could you explain a bit more about how to use a map in qt web assembly.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                discipline
                wrote on last edited by
                #9

                @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)
                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  discipline
                  wrote on last edited by
                  #10

                  however it is not supported in Qt6

                  source

                  1 Reply Last reply
                  0
                  • MesrineM Offline
                    MesrineM Offline
                    Mesrine
                    wrote on last edited by
                    #11

                    @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

                    1 Reply Last reply
                    1
                    • D Offline
                      D Offline
                      discipline
                      wrote on last edited by
                      #12

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

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved