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. configuring QT with webassembly issue: failed on Qt6ProtobufTools, WrapProtoc not found
Forum Updated to NodeBB v4.3 + New Features

configuring QT with webassembly issue: failed on Qt6ProtobufTools, WrapProtoc not found

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
4 Posts 4 Posters 1.7k Views 1 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.
  • C Offline
    C Offline
    cebuger
    wrote on last edited by
    #1

    I was trying to build QT 6.5.2 to generate WebAssembly library framework. I followed instructions in https://doc.qt.io/qt-6/wasm.html as well as this post https://forum.qt.io/topic/137522/build-qt-6-3-0-to-generate-webassembly-library-framework

    I downloaded emsdk set it up and run it like this

    ./emsdk install 3.1.25
    ./emsdk activate 3.1.25
    

    i went to my QT source

    cd C:\Qt\6.5.2\Src
    

    and ran

    ./configure.bat -qt-host-path C:\Qt\6.5.2\mingw_64 -no-warnings-are-errors -feature-opengles3  -device-option QT_EMSCRIPTEN_ASYNCIFY=1 -platform wasm-emscripten -prefix $PWD/qtbase
    

    but i enouncter an issue that is blocking me

    -- Configuring submodule 'qtwebengine'
    [QtWebEngine] -- Support check for QtWebEngine failed: Build can be done only on Linux, Windows or macOS.
    [QtWebEngine] -- Support check for QtPdf failed: Build can be done only on Linux, Windows, macO, iOS and Android(on non-Windows hosts only).
    -- Configuring submodule 'qtdoc'
    -- Configuring submodule 'qtgrpc'
    CMake Warning at qtgrpc/src/tools/host/CMakeLists.txt:20 (find_package):
      Found package configuration file:
    
        C:/Qt/6.5.2/mingw_64/lib/cmake/Qt6ProtobufTools/Qt6ProtobufToolsConfig.cmake
    
      but it set Qt6ProtobufTools_FOUND to FALSE so package "Qt6ProtobufTools" is
      considered to be NOT FOUND.  Reason given by package:
    
      Qt6ProtobufTools could not be found because dependency WrapProtoc could not
      be found.
    
    
    
    CMake Warning at qtgrpc/src/tools/host/CMakeLists.txt:28 (find_package):
      Found package configuration file:
    
        C:/Qt/6.5.2/mingw_64/lib/cmake/Qt6GrpcTools/Qt6GrpcToolsConfig.cmake
    
      but it set Qt6GrpcTools_FOUND to FALSE so package "Qt6GrpcTools" is
      considered to be NOT FOUND.  Reason given by package:
    
      Qt6GrpcTools could not be found because dependency WrapProtoc could not be
      found.
    
    
    
    CMake Error at qtbase/cmake/QtPublicTargetHelpers.cmake:257 (get_property):
      get_property could not find TARGET Qt6::qtprotobufgen.  Perhaps it has not
      yet been created.
    Call Stack (most recent call first):
      C:/Qt/6.5.2/mingw_64/lib/cmake/Qt6ProtobufTools/Qt6ProtobufToolsConfig.cmake:56 (__qt_internal_promote_target_to_global)
      qtbase/cmake/QtToolHelpers.cmake:642 (find_package)
      qtbase/cmake/QtToolHelpers.cmake:72 (qt_internal_find_tool)
      qtgrpc/src/tools/qtprotobufgen/CMakeLists.txt:5 (qt_internal_add_tool)
    
    
    CMake Warning at qtbase/cmake/QtToolHelpers.cmake:642 (find_package):
      Found package configuration file:
    
        C:/Qt/6.5.2/mingw_64/lib/cmake/Qt6ProtobufTools/Qt6ProtobufToolsConfig.cmake
    
      but it set Qt6ProtobufTools_FOUND to FALSE so package "Qt6ProtobufTools" is
      considered to be NOT FOUND.  Reason given by package:
    
      Qt6ProtobufTools could not be found because dependency WrapProtoc could not
      be found.
    
    Call Stack (most recent call first):
      qtbase/cmake/QtToolHelpers.cmake:72 (qt_internal_find_tool)
      qtgrpc/src/tools/qtprotobufgen/CMakeLists.txt:5 (qt_internal_add_tool)
    
    
    CMake Error at qtbase/cmake/QtToolHelpers.cmake:684 (message):
      Failed to find the host tool "Qt6::qtprotobufgen".  It is part of the
      Qt6ProtobufTools package, but the package could not be found.  Make sure
      you have built and installed the host Protobuf module, which will ensure
      the creation of the Qt6ProtobufTools package.
    Call Stack (most recent call first):
      qtbase/cmake/QtToolHelpers.cmake:72 (qt_internal_find_tool)
      qtgrpc/src/tools/qtprotobufgen/CMakeLists.txt:5 (qt_internal_add_tool)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Qt/6.5.2/Src/CMakeFiles/CMakeOutput.log".
    See also "C:/Qt/6.5.2/Src/CMakeFiles/CMakeError.log".
    CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:998 (message):
      CMake exited with code 1.
    

    What am I missing here?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      QUABS
      wrote on last edited by QUABS
      #2

      I have this error when cross-compile Qt 6.6.1 for raspberry pi
      have you installed the protobuf-compiler
      you can use

      $ protoc --version
      

      to check it
      The error is solved after I installed the protobuf-compiler

      $ sudo apt install -y protobuf-compiler
      
      1 Reply Last reply
      1
      • semlanikS Offline
        semlanikS Offline
        semlanik
        wrote on last edited by
        #3

        -skip qtgrpc also can help in this case, if you don't need it in your Qt build.

        S 1 Reply Last reply
        0
        • semlanikS semlanik

          -skip qtgrpc also can help in this case, if you don't need it in your Qt build.

          S Offline
          S Offline
          srce
          wrote on last edited by
          #4

          @semlanik said in configuring QT with webassembly issue: failed on Qt6ProtobufTools, WrapProtoc not found:

          -skip qtgrpc also can help in this case, if you don't need it in your Qt build.

          Yep - or uninstall Qt Protobuf component using the maintaince tool.

          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