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. How to install QtNetworkAuth for WebAssemby
Forum Updated to NodeBB v4.3 + New Features

How to install QtNetworkAuth for WebAssemby

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
8 Posts 2 Posters 745 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.
  • K Offline
    K Offline
    Kiovtorov
    wrote on 13 Nov 2024, 17:58 last edited by
    #1

    Hi, I recenty found out I can publish my app on the web with webAssembly but I am facing some errors with CMake. When I try to CMake I get an error saying

    Expected Config file at
    "/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6NetworkAuth/Qt6NetworkAuthConfig.cmake"
    does NOT exist
    

    I did find a Qt6NetworkAuth in wasm_singlethread though.
    I tried to set the env on and got error

    CMake Error at CMakeLists.txt:22 (find_package):
    Found package configuration file:
    
    /Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6/Qt6Config.cmake
    
    but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
    FOUND. Reason given by package:
    
    Failed to find required Qt component "NetworkAuth".
    
    Expected Config file at
    "/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6NetworkAuth/Qt6NetworkAuthConfig.cmake"
    does NOT exist
    
    
    
    Configuring with --debug-find-pkg=Qt6NetworkAuth might reveal details why
    the package was not found.
    
    find_package search path values and other context for the last package that was not found:
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Nov 2024, 19:49 last edited by
      #2

      Hi,

      From old reflex, I would try to build the module by hand for WASM.

      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
      0
      • K Offline
        K Offline
        Kiovtorov
        wrote on 13 Nov 2024, 21:49 last edited by
        #3

        I could need some help trying to build the WASM module by hand
        here is the command I tried to go with but failed

        cmake -DQT_HOST_PATH="/Users/boyankiovtorov/Qt/6.8.0" \
              -DCMAKE_TOOLCHAIN_FILE="$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" \
              -DQt6_DIR="/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6" \
              -DQT_BUILD_EXAMPLES=OFF \
              -DQT_BUILD_TESTS=OFF \
              "/Users/boyankiovtorov/Qt/6.8.0/Src/qtnetworkauth"
        
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Nov 2024, 06:26 last edited by
          #4

          What was the failure ?

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

          K 1 Reply Last reply 14 Nov 2024, 06:49
          0
          • S SGaist
            14 Nov 2024, 06:26

            What was the failure ?

            K Offline
            K Offline
            Kiovtorov
            wrote on 14 Nov 2024, 06:49 last edited by
            #5

            @SGaist

            -- Could NOT find Qt6BuildInternals (missing: Qt6BuildInternals_DIR)
            CMake Error at CMakeLists.txt:16 (find_package):
              Found package configuration file:
            
                /Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6/Qt6Config.cmake
            
              but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
              FOUND.  Reason given by package:
            
              Failed to find required Qt component "BuildInternals".
            
              Expected Config file at
              "/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake"
              exists
            
            
            
              Configuring with --debug-find-pkg=Qt6BuildInternals might reveal details
              why the package was not found.
            
              Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
              of the path variables that find_package uses to try and find the package.
            
            
            
            -- Configuring incomplete, errors occurred!
            
            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 14 Nov 2024, 18:17 last edited by
              #6

              What if you use the qt-cmake wrapper of the wasm build.

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

              K 1 Reply Last reply 15 Nov 2024, 14:30
              0
              • S SGaist
                14 Nov 2024, 18:17

                What if you use the qt-cmake wrapper of the wasm build.

                K Offline
                K Offline
                Kiovtorov
                wrote on 15 Nov 2024, 14:30 last edited by
                #7

                @SGaist i get the same error

                boyankiovtorov@Boyans-MacBook-Air build % /Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/bin/qt-cmake \
                  -DQT_HOST_PATH="/Users/boyankiovtorov/Qt/6.8.0" \
                  -DCMAKE_TOOLCHAIN_FILE="$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" \
                  -DQt6_DIR="/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6" \
                  -DQT_BUILD_EXAMPLES=OFF \
                  -DQT_BUILD_TESTS=OFF \
                  "/Users/boyankiovtorov/Qt/6.8.0/Src/qtnetworkauth"
                -- Could NOT find Qt6BuildInternals (missing: Qt6BuildInternals_DIR)
                CMake Error at CMakeLists.txt:16 (find_package):
                  Found package configuration file:
                
                    /Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6/Qt6Config.cmake
                
                  but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
                  FOUND.  Reason given by package:
                
                  Failed to find required Qt component "BuildInternals".
                
                  Expected Config file at
                  "/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake"
                  exists
                
                
                
                  Configuring with --debug-find-pkg=Qt6BuildInternals might reveal details
                  why the package was not found.
                
                  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
                  of the path variables that find_package uses to try and find the package.
                
                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  Kiovtorov
                  wrote on 15 Nov 2024, 14:34 last edited by
                  #8

                  I also tried with -DQT_DEBUG_FIND_PACKAGE=ON and the output is

                  CMake Error at CMakeLists.txt:16 (find_package):
                    Found package configuration file:
                  
                      /Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6/Qt6Config.cmake
                  
                    but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
                    FOUND.  Reason given by package:
                  
                    Failed to find required Qt component "BuildInternals".
                  
                    Expected Config file at
                    "/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake"
                    exists
                  
                  
                  
                    Configuring with --debug-find-pkg=Qt6BuildInternals might reveal details
                    why the package was not found.
                  
                     find_package search path values and other context for the last package that was not found:
                      CMAKE_MODULE_PATH: /Users/boyankiovtorov/emsdk/upstream/emscripten/cmake/Modules;/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6;/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;/Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6/3rdparty/kwin
                      CMAKE_PREFIX_PATH: 
                      $ENV{CMAKE_PREFIX_PATH}: 
                      CMAKE_FIND_ROOT_PATH: /Users/boyankiovtorov/emsdk/upstream/emscripten/cache/sysroot;/Users/boyankiovtorov/emsdk/upstream/emscripten/cache/sysroot;/Users/boyankiovtorov/emsdk/upstream/emscripten/cache/sysroot;/Users/boyankiovtorov/emsdk/upstream/emscripten/cache/sysroot;/Users/boyankiovtorov/emsdk/upstream/emscripten/cache/sysroot
                      _qt_additional_packages_prefix_paths: 
                      _qt_additional_host_packages_prefix_paths: 
                      _qt_cmake_dir: /Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake
                      QT_HOST_PATH: /Users/boyankiovtorov/Qt/6.8.0
                      Qt6HostInfo_DIR: /Users/boyankiovtorov/Qt/6.8.0/macos/lib/cmake/Qt6HostInfo
                      Qt6_DIR: /Users/boyankiovtorov/Qt/6.8.0/wasm_singlethread/lib/cmake/Qt6
                      CMAKE_TOOLCHAIN_FILE: /Users/boyankiovtorov/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
                      CMAKE_FIND_ROOT_PATH_MODE_PACKAGE: ONLY
                      CMAKE_SYSROOT: 
                      $ENV{PATH}: /Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/opt/libiodbc/bin:/Users/boyankiovtorov/emsdk:/Users/boyankiovtorov/emsdk/upstream/emscripten:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/Users/boyankiovtorov/Library/Application Support/JetBrains/Toolbox/scripts:/usr/local/mysql/bin
                  
                  
                  1 Reply Last reply
                  0
                  • K Kiovtorov referenced this topic on 23 Nov 2024, 19:27

                  1/8

                  13 Nov 2024, 17:58

                  • Login

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