Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt6BundledZLIB not found
Forum Updated to NodeBB v4.3 + New Features

Qt6BundledZLIB not found

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 290 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.
  • Q Offline
    Q Offline
    qwendt
    wrote on last edited by
    #1

    I want to build a Qt WebAssembly with CLion which seems way harder then I thought. I do not understand why there are so many more problems then if i just run it via the terminal...

    I included the environment file in the Toolchain and set the C/C++ compilers there.

    export EMSDK=/home/emmynoether/emsdk
    export EM_CONFIG=/home/emmynoether/emsdk/.emscripten
    export QMAKESPEC=wasm-emscripten
    export QT_WEBASSEMBLY_ROOT_PATH=/home/emmynoether/Qt/6.8.3/wasm_singlethread
    export PATH="/home/emmynoether/emsdk/upstream/emscripten:/home/emmynoether/emsdk/node/22.16.0_64bit/bin:$PATH"
    

    I gave the CMake Options for Host and Target Qt:

    -DQt6_DIR=/home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6
    -DQT_HOST_PATH=/home/emmynoether/Qt/6.8.3/gcc_64
    

    Now i get the error

    /home/emmynoether/Downloads/clion-2025.1.3/bin/cmake/linux/x64/bin/cmake -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_C_COMPILER=/home/emmynoether/emsdk/upstream/emscripten/emcc -DCMAKE_CXX_COMPILER=/home/emmynoether/emsdk/upstream/emscripten/em++ -DQt6_DIR=/home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6 -DQT_HOST_PATH=/home/emmynoether/Qt/6.8.3/gcc_64 -G Ninja -S /home/emmynoether/Dokumente/Webseite/MaterialStack -B /home/emmynoether/Dokumente/Webseite/MaterialStack/cmake-build-default-qt-webassembly
    -- The CXX compiler identification is Clang 19.0.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - failed
    -- Check for working CXX compiler: /home/emmynoether/emsdk/upstream/emscripten/em++
    -- Check for working CXX compiler: /home/emmynoether/emsdk/upstream/emscripten/em++ - works
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- CMAKE_CXX_COMPILER = /home/emmynoether/emsdk/upstream/emscripten/em++
    -- ENV EMSDK = /home/emmynoether/emsdk
    -- ENV EM_CONFIG = /home/emmynoether/emsdk/.emscripten
    -- PATH = /home/emmynoether/emsdk/upstream/emscripten:/home/emmynoether/emsdk/node/22.16.0_64bit/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/emmynoether/.dotnet/tools:/home/emmynoether/Downloads/clion-2025.1.3/bin/ninja/linux/x64
    -- Qt6_DIR   = /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6
    -- HOME  = /home/emmynoether
    CMake Warning at /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/QtFindWrapHelper.cmake:69 (find_package):
      By not providing "FindQt6BundledZLIB.cmake" in CMAKE_MODULE_PATH this
      project has asked CMake to find a package configuration file provided by
      "Qt6BundledZLIB", but CMake did not find one.
    
      Could not find a package configuration file provided by "Qt6BundledZLIB"
      with any of the following names:
    
        Qt6BundledZLIBConfig.cmake
        qt6bundledzlib-config.cmake
    
      Add the installation prefix of "Qt6BundledZLIB" to CMAKE_PREFIX_PATH or set
      "Qt6BundledZLIB_DIR" to a directory containing one of the above files.  If
      "Qt6BundledZLIB" provides a separate development package or SDK, be sure it
      has been installed.
    Call Stack (most recent call first):
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/FindWrapZLIB.cmake:6 (qt_find_package_system_or_bundled)
      /home/emmynoether/Downloads/clion-2025.1.3/bin/cmake/linux/x64/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:36 (find_dependency)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:38 (_qt_internal_find_third_party_dependencies)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:45 (include)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/Qt6Config.cmake:196 (find_package)
      CMakeLists.txt:16 (find_package)
    
    
    CMake Error at /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/QtFindWrapHelper.cmake:120 (message):
      Can't find Qt6::BundledZLIB.
    Call Stack (most recent call first):
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/FindWrapZLIB.cmake:6 (qt_find_package_system_or_bundled)
      /home/emmynoether/Downloads/clion-2025.1.3/bin/cmake/linux/x64/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:36 (find_dependency)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:38 (_qt_internal_find_third_party_dependencies)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:45 (include)
      /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/Qt6Config.cmake:196 (find_package)
      CMakeLists.txt:16 (find_package)
    
    
    CMake Warning at /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6/Qt6Config.cmake:196 (find_package):
      Found package configuration file:
    
        /home/emmynoether/Qt/6.8.3/wasm_singlethread/lib/cmake/Qt6Core/Qt6CoreConfig.cmake
    
      but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be
      NOT FOUND.
    Call Stack (most recent call first):
      CMakeLists.txt:16 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    
    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Hi!
      The 6.8 build was probably configured without zlib support.
      If you need it, please build it from source and add -qt-zlib to the configure line.

      Software Engineer
      The Qt Company, Oslo

      Q 1 Reply Last reply
      0
      • Axel SpoerlA Axel Spoerl

        Hi!
        The 6.8 build was probably configured without zlib support.
        If you need it, please build it from source and add -qt-zlib to the configure line.

        Q Offline
        Q Offline
        qwendt
        wrote on last edited by qwendt
        #3

        @Axel-Spoerl

        Thank you, yes I needed to compile Qt by myself. This solved my Problem:

        source /home/emmynoether/emsdk/emsdk_env.sh
        mkdir -p $HOME/qt-build && cd $HOME/qt-build
        export QT_HOST_PATH=$HOME/Qt/6.8.3/gcc_64  
        
        git clone --depth 1 --branch v6.8.3 https://code.qt.io/qt/qt5.git qt6-src
        cd qt6-src
        
        # I catched all submodules
        git submodule sync              
        git submodule update --init --recursive
        
        ./configure \
        -xplatform wasm-emscripten \
        -prefix $HOME/Qt/6.8.3/wasm_singlethread \
        -opensource -confirm-license \
        -nomake tests -nomake examples \
        -skip qtwebengine \
        -qt-zlib \
        -release \
        -opengl es2     
        
        
        cmake --build . --parallel $(nproc)
        cmake --install .
        

        And in the CMake I added Qt6::BundledZLIB to target_link_libraries. At the end it worked to use CLion.

        1 Reply Last reply
        0
        • Q qwendt has marked this topic as solved on
        • Q qwendt 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