Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27105

Link error of static version due to multiple zlib libraries in project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.0
    • 5.0.0 Beta 1
    • Build System
    • None
    • Windows, Visual Studio 2012.
    • base/ca35995c1b46f1ede83cbaf64c3351336de7c4f2,svg/910b9e64a95ed89ff4a6f18cecdeb38ba2a00a2c

    Description

      Build on windows has failed due to multiple zlib instances in project

      link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFEST DEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST MANIFESTFILE:debug\embeddedsvgviewer.exe.embed.manifest /OUT:debug\embed
      dedsvgviewer.exe @C:\Users\Anatolix\AppData\Local\Temp\nmE945.tmp
      QtCored.lib(zutil.obj) : error LNK2005: _z_errmsg already defined in QtSvgd.lib(zutil.obj)
      debug\embeddedsvgviewer.exe : fatal error LNK1169: one or more multiply defined symbols found
      NMAKE : fatal error U1077: 'C:\bin\devel\vs2012\VC\BIN\link.EXE' : return code ' 0x491'
      Stop.

      BTW: why do you have 4 zlib instances in Qt5?
      see:
      qt3d\3rdparty\assimp\contrib\zlib\zutil.c
      qtbase\src\3rdparty\freetype\src\gzip\zutil.c
      qtbase\src\3rdparty\zlib\zutil.c
      qtsvg\src\3rdparty\zlib\zutil.c

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            anatolix Anatoly Orlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes