Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
C1083: Cannot open include file: 'zlib.h': No such file or directory
Hello, I have a problem: when I compile the program I was given, there is an error:
10:20:45: The "C:\bin\Qt\Tools\QtCreator\bin\jom.exe" process ended with code 2.
Error during compilation/deployment of the EconnectorMaster project (kit: Desktop)
When executing step "Make"
Is there anyone who could help me ?
Your program requires external library, ZLib. You need to have it compiled to run this program and you also need its header files to compile.
As error says , visual studio cannot find the file zlib.h
So you can either use mingw compiler instead as i think it has that file.
Read the documentationson GitHub or where the project lives and see
what is suggested for the external dependencies.
OR try to install zlib for windows and grab the file
meh:: Too slow :)
So my advice would be to try just that.
@artwaw Thank you for your answer, When I go to the header file, Zlib is already included.
I don't know what to do
JonB last edited by
Yes, but the error message says that file
zlib.hcannot be found, at least in the path it indicates. So where is this file, and is its path found from your
Anadeha last edited by Anadeha
@Anadeha Hi again.
It is "included" in your sources but when the compiler tries to locate the file, it fails. Hence the error.
In your .pro file there is "INCLUDEPATH" variable - this is where the compiler searches for files.
Your project path folder is always included.
If you just downloaded the quazip it does not, very likely, include the zlib as it is a separate library. You need to download its sources, at the very least, then modify all the paths in your pro file to include those zlib sources. So, INCLUDEPATH at least.
@artwaw Yes I'm going for it, thank you :)