Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Moc link error against zlib: Windows 7 32-bit, Opensource Qt5+ shared, VS2010
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Moc link error against zlib: Windows 7 32-bit, Opensource Qt5+ shared, VS2010

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 1.6k 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.
  • K Offline
    K Offline
    kerry
    wrote on 15 Dec 2013, 19:11 last edited by
    #1

    Hello! I've been burning a few hours a day on this for a while, have been building and using Qt for years, but I've been unable to bring up any Qt5.0-5.2 version due to this same link error. I've only found one post with exact same error message and similar config (http://qt-project.org/forums/viewthread/28091), but I'm already doing what he was told to do.

    Prebuilt OpenSSL & ICU in VS2010, have installed Postgres 2010 binaries.

    configure -opensource -debug-and-release -mp -openssl -opengl desktop -nomake tests -confirm-license -icu -qt-sql-psql -qt-sql-odbc -qt-sql-sqlite -qt-zlib -platform win32-msvc2010 -I D:\Dev\VScapePlatform\Public\Third-Party\OpenSSL\1.0.1e_x86\include -L D:\Dev\VScapePlatform\Public\Third-Party\OpenSSL\1.0.1e_x86\build\bin -I D:\Dev\VScapePlatform\Public\Third-Party\ICU\51.2\icu\include -L D:\Dev\VScapePlatform\Public\Third-Party\ICU\51.2\icu\bin -L D:\pgsql\bin -I D:\pgsql\include

    The link error:

    main.cpp
    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\Kerry\AppData\Local\Temp\nmF07C.tmp
    Qt5Bootstrap.lib(qbytearray.obj) : error LNK2019: unresolved external symbol _un
    compress referenced in function "class QByteArray __cdecl qUncompress(unsigned c
    har const *,int)" (?qUncompress@@YA?AVQByteArray@@PBEH@Z)
    Qt5Bootstrap.lib(qbytearray.obj) : error LNK2019: unresolved external symbol _co
    mpress2 referenced in function "class QByteArray __cdecl qCompress(unsigned char
    const *,int,int)" (?qCompress@@YA?AVQByteArray@@PBEHH@Z)
    ......\bin\moc.exe : fatal error LNK1120: 2 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\link.EXE"' : return code '0x460'
    Stop.

    Other than specifying '-qt-zlib', how do I help my system find zlib? I see qt zlib in 3rdparty, and files compile against its headers, but I don't see where zlib itself is compiled or specified as a link dependency (though I haven't spent time learning much about qt build environment, its always just worked for me and my team...) Could also be cdecl vs. stdcall issue, but I haven't touched anything in qt tree before build.

    Driving me nuts, greatly appreciate any pointers...

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kerry
      wrote on 25 Dec 2013, 16:15 last edited by
      #2

      Have code compiling now, by changing:

      • I had missed the decision to drop ICU, now removed from build
      • Build Postgres driver AFTER main build, NOT WITH main build.
      1 Reply Last reply
      0

      • Login

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