Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt source build failure due to zlib
Shidharth last edited by Shidharth
I have build qt 5.5 source in windows 8.1 with VS2010 x64 command prompt.
I tried to build with -system-zlib and -qt-zlib but not getting success with both ways.
I have faced below error, I have search over the forum and google but still I could not resolve this error. So, please help me to overcome this error.
Qt5Bootstrap.lib(qbytearray.obj) : error LNK2019: unresolved external symbol unc
ompress referenced in function "class QByteArray __cdecl qUncompress(unsigned ch
ar const *,int)" (?qUncompress@@YA?AVQByteArray@@PEBEH@Z)
Qt5Bootstrap.lib(qbytearray.obj) : error LNK2019: unresolved external symbol com
press2 referenced in function "class QByteArray __cdecl qCompress(unsigned char
const *,int,int)" (?qCompress@@YA?AVQByteArray@@PEBEHH@Z)
......\bin\moc.exe : fatal error LNK1120: 2 unresolved externals
jom: C:\Qt\SfQtWebKit_64\qtbase\src\tools\moc\Makefile.Release [......\bin\moc
.exe] Error 1120
jom: C:\Qt\SfQtWebKit_64\qtbase\src\tools\moc\Makefile [release] Error 2
jom: C:\Qt\SfQtWebKit_64\qtbase\src\Makefile [sub-moc-make_first] Error 2
@Shidharth You can't really use -system-zlib on windows since it doesn't usually have a system level zlib like osx and linux would.
If you have one installed you can try using that but I recommend just using -qt-zlib. That should work out of the box.
Shidharth last edited by
@ambershark Thank you so much..