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. Build QT6.3 wasm from source, configure error.
Forum Updated to NodeBB v4.3 + New Features

Build QT6.3 wasm from source, configure error.

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
5 Posts 2 Posters 1.1k 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.
  • W Offline
    W Offline
    wenqing zhong
    wrote on last edited by
    #1

    windows, QT6.3

    first I set environment:
    set CMAKE_PREFIX_PATH=e:/qt/6.3.0/mingw_64/lib/cmake
    set CMAKE_TOOLCHAIN_FILE=E:\emsdk\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake

    emsdk version is 3.1.6, according to QT document.

    I want to build wasm with threads and asyncify feature, use the below command

    configure -no-warnings-are-errors -qt-host-path e:/qt/6.3.0/wasm_32 -xplatform wasm-emscripten -nomake examples -feature-thread -device-option QT_EMSCRIPTEN_ASYNCIFY=1 -prefix e:/Qt/6.3.0/wasm_async

    I get error as below:

    Configuring 'qtdeclarative'
    QtQml: WARNING: e:/Qt/6.3.0/Src/qtdeclarative/src/qml/qtqml_tracepoints_p.h does not have the "We mean it." warning
    QtQuick: WARNING: e:/Qt/6.3.0/Src/qtdeclarative/src/quick/qtquick_tracepoints_p.h does not have the "We mean it." warning
    CMake Error at qtbase/cmake/QtToolHelpers.cmake:170 (message):
    The tool "Qt6::qmlls" was not found in the Qt6QmlTools package. Package
    found: 1
    Call Stack (most recent call first):
    qtdeclarative/tools/qmlls/CMakeLists.txt:6 (qt_internal_add_tool)

    How to fix this problem?

    sitesvS 1 Reply Last reply
    0
    • W wenqing zhong

      windows, QT6.3

      first I set environment:
      set CMAKE_PREFIX_PATH=e:/qt/6.3.0/mingw_64/lib/cmake
      set CMAKE_TOOLCHAIN_FILE=E:\emsdk\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake

      emsdk version is 3.1.6, according to QT document.

      I want to build wasm with threads and asyncify feature, use the below command

      configure -no-warnings-are-errors -qt-host-path e:/qt/6.3.0/wasm_32 -xplatform wasm-emscripten -nomake examples -feature-thread -device-option QT_EMSCRIPTEN_ASYNCIFY=1 -prefix e:/Qt/6.3.0/wasm_async

      I get error as below:

      Configuring 'qtdeclarative'
      QtQml: WARNING: e:/Qt/6.3.0/Src/qtdeclarative/src/qml/qtqml_tracepoints_p.h does not have the "We mean it." warning
      QtQuick: WARNING: e:/Qt/6.3.0/Src/qtdeclarative/src/quick/qtquick_tracepoints_p.h does not have the "We mean it." warning
      CMake Error at qtbase/cmake/QtToolHelpers.cmake:170 (message):
      The tool "Qt6::qmlls" was not found in the Qt6QmlTools package. Package
      found: 1
      Call Stack (most recent call first):
      qtdeclarative/tools/qmlls/CMakeLists.txt:6 (qt_internal_add_tool)

      How to fix this problem?

      sitesvS Offline
      sitesvS Offline
      sitesv
      wrote on last edited by sitesv
      #2

      @wenqing-zhong qt host path should be to already installed qt version: mingw or msvc for windows. Qt documentation is not clear in this scope.

      W 1 Reply Last reply
      0
      • sitesvS sitesv

        @wenqing-zhong qt host path should be to already installed qt version: mingw or msvc for windows. Qt documentation is not clear in this scope.

        W Offline
        W Offline
        wenqing zhong
        wrote on last edited by
        #3

        @sitesv I try mingw_64, but the result is the same. Did you passed with msvc?

        1 Reply Last reply
        0
        • sitesvS Offline
          sitesvS Offline
          sitesv
          wrote on last edited by
          #4

          @wenqing-zhong, I use mingw_64. (-qt-host-path c:\Qt\6.3.0\mingw_64)
          check separators in your paths. check the permissions.
          My script without -xplatform, -nomake examples

          W 1 Reply Last reply
          0
          • sitesvS sitesv

            @wenqing-zhong, I use mingw_64. (-qt-host-path c:\Qt\6.3.0\mingw_64)
            check separators in your paths. check the permissions.
            My script without -xplatform, -nomake examples

            W Offline
            W Offline
            wenqing zhong
            wrote on last edited by
            #5

            @sitesv I try many config parametors combination, but get the same error. And I even try linux version, it also get the same error. Maybe because I am using the open source version. it's a bug, I think.

            Finaly, I found that qmlls is no use for me. So I check the file in src\qtdeclarative\tools\CMakeList.txt, and comment out the line aboue qmlls. and the I configure ok, and make sucess.

            1 Reply Last reply
            1

            • Login

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