Unsolved USE_ZLIB=1: No such file or directory
-
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.
-
@black_gay Can you show your pro file?
-
-
@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