Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. USE_ZLIB=1: No such file or directory

USE_ZLIB=1: No such file or directory

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 615 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.
  • B Offline
    B Offline
    black_gay
    wrote on last edited by
    #1

    I want to compile a simple hello world from Qt console application project, but i get this error:

    :-1: error: error: USE_ZLIB=1: No such file or directory.

    My system is Linux Mint 19.1 Cinammon.

    I've installed lib64z1 and lib64z1-dev. I used Qt creator's External Library linker manager to link the library directory /usr/lib64. It continously does not work.

    jsulmJ 1 Reply Last reply
    0
    • B black_gay

      I want to compile a simple hello world from Qt console application project, but i get this error:

      :-1: error: error: USE_ZLIB=1: No such file or directory.

      My system is Linux Mint 19.1 Cinammon.

      I've installed lib64z1 and lib64z1-dev. I used Qt creator's External Library linker manager to link the library directory /usr/lib64. It continously does not work.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @black_gay Can you show your pro file?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • B Offline
        B Offline
        black_gay
        wrote on last edited by black_gay
        #3

        @jsulm https://pastebin.com/zKW6Xf4F

        jsulmJ 1 Reply Last reply
        0
        • B black_gay

          @jsulm https://pastebin.com/zKW6Xf4F

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by jsulm
          #4

          @black_gay I would first remove all these relative paths as they require your source code to be in a certain level in the file system. For libraries in standard lib directories there is no need to specify the directory (-L), same for include/depend dirs:

          QT -= gui
           
          CONFIG += c++14 console
          CONFIG -= app_bundle
          DEFINES += QT_DEPRECATED_WARNINGS
          SOURCES += \
                  main.cpp
           
          qnx: target.path = /tmp/$${TARGET}/bin
          else: unix:!android: target.path = /opt/$${TARGET}/bin
          !isEmpty(target.path): INSTALLS += target
           
          unix:!macx: LIBS += -lz
           
          unix:!macx: PRE_TARGETDEPS += $$PWD/../../../../usr/lib64/libz.a # I doubt you need this line at all
          

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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