How to install QtNetworkAuth for WebAssemby
Unsolved
Qt for WebAssembly
-
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 errorCMake 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:
-
Hi,
From old reflex, I would try to build the module by hand for WASM.
-
I could need some help trying to build the WASM module by hand
here is the command I tried to go with but failedcmake -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"
-
What was the failure ?
-
-- 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!
-
What if you use the qt-cmake wrapper of the wasm build.
-
@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.
-
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
-