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 ?
-
Hi
As error says , visual studio cannot find the file zlib.hSo you can either use mingw compiler instead as i think it has that file.
or
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
https://stackoverflow.com/questions/49634228/how-to-compile-zlib-into-a-dll-on-visual-studio-2017meh:: Too slow :)
-
@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.