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. Cannot find ZLIB library after qmake2cmake conversion
Forum Updated to NodeBB v4.3 + New Features

Cannot find ZLIB library after qmake2cmake conversion

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 134 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.
  • H Offline
    H Offline
    HarryGoddardTech
    wrote on 30 Jan 2025, 21:36 last edited by
    #1

    I am working on a large C++ codebase that uses VS2022 and Qt 6.8.1. I am not using Qt Creator but working from the command line as I'm developing CI/CD processes. The system platform is Windows.

    I can build the project from the existing .pro files using Qmake. After a successful conversion from Qmake to CMake, my build is failing looking for "Qt6BundledZLIBConfig.cmake". My assumption is the CMake conversion has created a new requirement (zlib) that wasn't previously there.

    I have a zlib.lib and zlib.h files installed but the CMake build system seems insistent on re-building these and complains about the missing .cmake file. I have tried setting the ZLIB_LIBRARY and ZLIB_INCLUDE_DIR to point to the existing zlib files in my cmake call to no avail. I have also set my QT6_DIR to the Qt6 installation path (which was installed using aqt install-qt).

    1 Reply Last reply
    0

    1/1

    30 Jan 2025, 21:36

    • Login

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