Errors on build moc.exe: _compress2 and _uncompress



  • I have Qt 5.0.2. When building the error throws out:

    @
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
    /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
    n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture
    ='
    '" /MANIFEST /MANIFESTFILE:......\bin\moc.exe.embed.manifest /OUT:......
    bin\moc.exe @C:\Users\REKLAT~1\AppData\Local\Temp\nm5320.tmp
    Qt5Bootstrap.lib(qbytearray.obj) : error LNK2019: ссылка на неразрешенный внешни
    й символ _compress2 в функции "class QByteArray __cdecl qCompress(unsigned char
    const *,int,int)" (?qCompress@@YA?AVQByteArray@@PBEHH@Z)
    Qt5Bootstrap.lib(qbytearray.obj) : error LNK2019: ссылка на неразрешенный внешни
    й символ _uncompress в функции "class QByteArray __cdecl qUncompress(unsigned ch
    ar const *,int)" (?qUncompress@@YA?AVQByteArray@@PBEH@Z)
    ......\bin\moc.exe : fatal error LNK1120: неразрешенных внешних элементов: 2
    NMAKE : fatal error U1077: "C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN
    \link.EXE" : возвращенный код "0x460"

    // undefined reference ... in function ...
    @

    My config:

    -confirm-license -opensource -shared -release -nomake tools -nomake examples -nomake tests -plugin-sql-mysql -I D:\Develop\Libraries\mysql\include -L D:\Develop\Libraries\mysql\lib -qt-sql-sqlite -qt-sql-sqlite2 -plugin-sql-psql -I D:\Develop\Libraries\pgsql\include -L D:\Develop\Libraries\pgsql\lib -platform win32-msvc2012 -skip webkit -no-opengl -openssl -mp -no-plugin-manifests -fontconfig -no-qml-debug -no-avx -no-avx2 -no-sse4.1 -no-sse4.2 -no-iconv -no-icu



  • Hi,
    try with "-qt-zlib" option on configure


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.