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. Why can't new webassembly projects find qt variable types?
QtWS25 Last Chance

Why can't new webassembly projects find qt variable types?

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
3 Posts 3 Posters 257 Views
  • 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
    mirro
    wrote on last edited by
    #1

    alt text
    //
    alt text
    //
    alt text

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

      For one, you need to use the correct emscripten version for Qt version, as detailed in:
      https://doc.qt.io/qt-5/wasm.html#install-emscripten
      or
      https://doc.qt.io/qt-6/wasm.html#installing-emscripten

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

      1 Reply Last reply
      2
      • M mirro

        alt text
        //
        alt text
        //
        alt text

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #2

        @mirro
        The errors about types stem from (a) not being able to find requested bluetooth module and (b) somehow as a result of that it has not read the definitions for QObject, QString etc. So I would sort that out first. How did you include bluetooth module in your project, and is it available under WebAssembly?

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

          For one, you need to use the correct emscripten version for Qt version, as detailed in:
          https://doc.qt.io/qt-5/wasm.html#install-emscripten
          or
          https://doc.qt.io/qt-6/wasm.html#installing-emscripten

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

          1 Reply Last reply
          2
          • M mirro has marked this topic as solved on

          • Login

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