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.8k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 14 Feb 2020, 07:45 last edited by
    #2

    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.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • M Offline
      M Offline
      michjans
      wrote on 14 Feb 2020, 10:28 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
      • L Offline
        L Offline
        lorn.potter
        wrote on 14 Feb 2020, 19:27 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

        M 1 Reply Last reply 4 Sept 2023, 13:51
        2
        • L lorn.potter
          14 Feb 2020, 19:27

          QtLocation and QtPositioning are not supported modules in Qt WebAssembly.

          M Offline
          M Offline
          Mesrine
          wrote on 4 Sept 2023, 13:51 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 20 Jan 2024, 09:11 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
              14 Feb 2020, 07:40

              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

              R Offline
              R Offline
              Ronel_qtmaster
              wrote on 20 Jan 2024, 10:06 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

              M 1 Reply Last reply 26 Jan 2024, 06:38
              0
              • R Ronel_qtmaster
                20 Jan 2024, 10:06

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

                M Offline
                M Offline
                Mesrine
                wrote on 26 Jan 2024, 06:38 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 28 Aug 2024, 17:10 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 28 Aug 2024, 18:27 last edited by
                    #10

                    however it is not supported in Qt6

                    source

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Mesrine
                      wrote on 30 Aug 2024, 05:37 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 1 Sept 2024, 07:39 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