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. LibQt5Network fails to build on z_inflate references
Forum Updated to NodeBB v4.3 + New Features

LibQt5Network fails to build on z_inflate references

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 4.2k 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.
  • J Offline
    J Offline
    jg.ari
    wrote on last edited by
    #1

    Following the instructions for "building Qt Android on Windows":http://qt-project.org/wiki/building_qt-android_on_windows but I must have missed something. I got to the build steps and when I run mingw32-make the build dies with undefined references to various symbols starting with z_inflate. I'm a Qt noob so while I can track down the needed source code I'm not sure what to do with it once I have it. This is part of zlib, yes?

    Relevant compiler output is:

    @mingw32-make.exe[4]: Entering directory 'c:/Qt/Android/qt5/qtbase/src/network'
    g++ -Wl,-s -shared -Wl,--out-implib,C:\Qt\Android\qt5\qtbase\lib\libQt5Network.a -o ....\lib\Qt5Network.dll object_script.Qt5Network.Release -lws2_32 -ldnsapi -ladvapi32 -LC:/Qt/Android/qt5/qtbase/lib -lQt5Core .obj\release_shared\Qt5Network_resource_res.o
    Creating library file: C:\Qt\Android\qt5\qtbase\lib\libQt5Network.a
    ./.obj\release_shared\qhttpnetworkreply.o:qhttpnetworkreply.cpp:(.text+0x190e): undefined reference to z_inflateEnd' ./.obj\release_shared\qhttpnetworkreply.o:qhttpnetworkreply.cpp:(.text+0x245f): undefined reference to z_inflateEnd'
    ./.obj\release_shared\qhttpnetworkreply.o:qhttpnetworkreply.cpp:(.text+0x3071): undefined reference to z_inflate' ./.obj\release_shared\qhttpnetworkreply.o:qhttpnetworkreply.cpp:(.text+0x32ba): undefined reference to z_inflateEnd'
    ./.obj\release_shared\qhttpnetworkreply.o:qhttpnetworkreply.cpp:(.text+0x3302): undefined reference to z_inflateInit2_' ./.obj\release_shared\qhttpnetworkreply.o:qhttpnetworkreply.cpp:(.text+0x483b): undefined reference to z_inflateInit2_'
    collect2: ld returned 1 exit status
    Makefile.Release:236: recipe for target '....\lib\Qt5Network.dll' failed
    mingw32-make.exe[4]: *** [....\lib\Qt5Network.dll] Error 1
    mingw32-make.exe[4]: Leaving directory 'c:/Qt/Android/qt5/qtbase/src/network'
    Makefile:34: recipe for target 'release' failed
    mingw32-make.exe[3]: *** [release] Error 2
    mingw32-make.exe[3]: Leaving directory 'c:/Qt/Android/qt5/qtbase/src/network'
    Makefile:182: recipe for target 'sub-network-make_first' failed
    mingw32-make.exe[2]: *** [sub-network-make_first] Error 2
    mingw32-make.exe[2]: Leaving directory 'c:/Qt/Android/qt5/qtbase/src'
    Makefile:40: recipe for target 'sub-src-make_first' failed
    mingw32-make.exe[1]: *** [sub-src-make_first] Error 2
    mingw32-make.exe[1]: Leaving directory 'c:/Qt/Android/qt5/qtbase'
    Makefile:57: recipe for target 'module-qtbase-make_first' failed
    mingw32-make.exe: *** [module-qtbase-make_first] Error 2@

    Thanks!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AlexL
      wrote on last edited by
      #2

      any update on this? Same issue here. I'm trying to compile Qt 5.1 beta 1

      //edit: this only happens when I try to cross compile with xplatform android

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Metadope
        wrote on last edited by
        #3

        I think you answered your own question in your first post:

        I had the same link error while building on MinGW. I got past it by building and installing zlib. HTH.

        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