Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt source build failure due to zlib
Forum Updated to NodeBB v4.3 + New Features

Qt source build failure due to zlib

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 789 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shidharth
    wrote on last edited by Shidharth
    #1

    Hi All,

    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

    A 1 Reply Last reply
    0
    • S Shidharth

      Hi All,

      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

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #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.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      S 1 Reply Last reply
      3
      • A ambershark

        @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.

        S Offline
        S Offline
        Shidharth
        wrote on last edited by
        #3

        @ambershark Thank you so much..

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved