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. <QtZlib/zlib.h> not found
Qt 6.11 is out! See what's new in the release blog

<QtZlib/zlib.h> not found

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 1.5k Views
  • 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.
  • F Offline
    F Offline
    FerryPerson
    wrote on last edited by
    #1

    I'm trying to create a dev environment on my Ubuntu 22.04.3 LTS, WSL setup.
    I've Installed QT (5.15.3) using apt-get (qt5base-dev, qtlocation5-dev, libqt5location5, qtlocation5-dev, qtpositioning5-dev, libqt5sql5-mysql, qtwebengine5-dev)

    I'm trying to build using meson, this project involves porting a library to Linux from windows.

    One of the header files contains the include "#include <QtZlib/zlib.h>" which cannot be found.
    It is my understanding this include should be shipped with my qt install? as a part of ...Qtcore?
    Cannot find the file in my install (admittedly, not entirely sure where to look)

    Christian EhrlicherC 1 Reply Last reply
    0
    • F FerryPerson

      I'm trying to create a dev environment on my Ubuntu 22.04.3 LTS, WSL setup.
      I've Installed QT (5.15.3) using apt-get (qt5base-dev, qtlocation5-dev, libqt5location5, qtlocation5-dev, qtpositioning5-dev, libqt5sql5-mysql, qtwebengine5-dev)

      I'm trying to build using meson, this project involves porting a library to Linux from windows.

      One of the header files contains the include "#include <QtZlib/zlib.h>" which cannot be found.
      It is my understanding this include should be shipped with my qt install? as a part of ...Qtcore?
      Cannot find the file in my install (admittedly, not entirely sure where to look)

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      QtZlib is a private module so if you want to use it you have to install qt5base-private-dev (or similar).

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      F 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        QtZlib is a private module so if you want to use it you have to install qt5base-private-dev (or similar).

        F Offline
        F Offline
        FerryPerson
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        thank you,
        I've found the package 'qtbase5-private-dev' and installed it,
        also turned on the meson option 'private_headers:true' for the qt dependency, as that should give access to private headers. (oddly enough, never had to do that before to get it to work on windows...)

        However my error persists.

        If i search my /usr/ folder for 'zlib' it also does not find any files that are part of the QT install.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          FerryPerson
          wrote on last edited by
          #4

          for the time being i am instead including a non-qt zlib, and hoping that it will work for these purposes (gzip functionality)

          Will close once i have tested it and verified functionality.

          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