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

undefined reference to `z_inflate*' in Qt3D (qgltf)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.6.0 Beta
    • Qt3D
    • None
    • Archlinux, zlib 1.2.8

    Description

      When trying to build the latest 5.6.0 Beta snapshot, I get this:

      g++ -Wl,--gc-sections -Wl,-O1 -o ../../bin/qgltf .obj/qgltf.o .obj/3DSConverter.o .obj/3DSLoader.o .obj/ACLoader.o .obj/ASELoader.o .obj/ASEParser.o .obj/Assimp.o .obj/AssimpCExport.o .obj/AssimpPCH.o .obj/B3DImporter.o .obj/BaseImporter.o .obj/Bitmap.o .obj/Blender
      BMesh.o .obj/BaseProcess.o .obj/BlenderDNA.o .obj/BlenderLoader.o .obj/BlenderModifier.o .obj/BlenderScene.o .obj/BlenderTessellator.o .obj/BVHLoader.o .obj/CalcTangentsProcess.o .obj/COBLoader.o .obj/ColladaExporter.o .obj/ColladaLoader.o .obj/ColladaParser.o .obj/
      ComputeUVMappingProcess.o .obj/ConvertToLHProcess.o .obj/CSMLoader.o .obj/DeboneProcess.o .obj/DefaultIOStream.o .obj/DefaultIOSystem.o .obj/DefaultLogger.o .obj/DXFLoader.o .obj/Exporter.o .obj/FindDegenerates.o .obj/FindInstancesProcess.o .obj/FindInvalidDataProce
      ss.o .obj/FixNormalsStep.o .obj/GenFaceNormalsProcess.o .obj/GenVertexNormalsProcess.o .obj/HMPLoader.o .obj/IFCCurve.o .obj/IFCGeometry.o .obj/IFCLoader.o .obj/IFCMaterial.o .obj/IFCProfile.o .obj/IFCReaderGen1.o .obj/IFCReaderGen2.o .obj/IFCUtil.o .obj/Importer.o 
      .obj/ImporterRegistry.o .obj/ImproveCacheLocality.o .obj/IRRLoader.o .obj/IRRMeshLoader.o .obj/IRRShared.o .obj/JoinVerticesProcess.o .obj/LimitBoneWeightsProcess.o .obj/LWOAnimation.o .obj/LWOBLoader.o .obj/LWOLoader.o .obj/LWOMaterial.o .obj/LWSLoader.o .obj/MakeV
      erboseFormat.o .obj/MaterialSystem.o .obj/MD2Loader.o .obj/MD3Loader.o .obj/MD5Loader.o .obj/MD5Parser.o .obj/MDCLoader.o .obj/MDLLoader.o .obj/MDLMaterialLoader.o .obj/MS3DLoader.o .obj/NDOLoader.o .obj/NFFLoader.o .obj/ObjExporter.o .obj/ObjFileImporter.o .obj/Obj
      FileMtlImporter.o .obj/ObjFileParser.o .obj/OFFLoader.o .obj/OgreImporter.o .obj/OgreMaterial.o .obj/OptimizeGraph.o .obj/OptimizeMeshes.o .obj/PlyExporter.o .obj/PlyLoader.o .obj/PlyParser.o .obj/PostStepRegistry.o .obj/PretransformVertices.o .obj/ProcessHelper.o .
      obj/Q3BSPFileImporter.o .obj/Q3BSPFileParser.o .obj/Q3BSPZipArchive.o .obj/Q3DLoader.o .obj/RawLoader.o .obj/RemoveComments.o .obj/RemoveRedundantMaterials.o .obj/RemoveVCProcess.o .obj/SceneCombiner.o .obj/ScenePreprocessor.o .obj/SGSpatialSort.o .obj/SkeletonMeshB
      uilder.o .obj/SMDLoader.o .obj/SortByPTypeProcess.o .obj/SpatialSort.o .obj/SplitByBoneCountProcess.o .obj/SplitLargeMeshes.o .obj/StandardShapes.o .obj/STEPFileReader.o .obj/STLExporter.o .obj/STLLoader.o .obj/Subdivision.o .obj/TargetAnimation.o .obj/TerragenLoade
      r.o .obj/TextureTransform.o .obj/TriangulateProcess.o .obj/UnrealLoader.o .obj/ValidateDataStructure.o .obj/VertexTriangleAdjacency.o .obj/XFileImporter.o .obj/XFileParser.o .obj/XGLLoader.o .obj/clipper.o .obj/ConvertUTF.o .obj/irrXML.o .obj/ioapi.o .obj/unzip.o .o
      bj/shapes.o .obj/advancing_front.o .obj/cdt.o .obj/sweep.o .obj/sweep_context.o .obj/FBXAnimation.o .obj/FBXBinaryTokenizer.o .obj/FBXDeformer.o .obj/FBXDocument.o .obj/FBXDocumentUtil.o .obj/FBXImporter.o .obj/FBXMaterial.o .obj/FBXMeshGeometry.o .obj/FBXModel.o .o
      bj/FBXNodeAttribute.o .obj/FBXParser.o .obj/FBXProperties.o .obj/FBXTokenizer.o .obj/FBXUtil.o .obj/IFCBoolean.o .obj/IFCOpenings.o .obj/FBXConverter.o .obj/STEPFileEncoding.o .obj/OgreBinarySerializer.o .obj/OgreStructs.o .obj/OgreXmlSerializer.o   -L/home/florian/
      tmp/qt-debug-pkgbuild/qt5/qt-everywhere-opensource-src-5.6.0-beta/qtbase/lib -lQt5Bootstrap -lz -lpthread 
      [...]
      .obj/BlenderLoader.o: In function `Assimp::BlenderImporter::InternReadFile(std::string const&, aiScene*, Assimp::IOSystem*)':
      BlenderLoader.cpp:(.text+0x869e): undefined reference to `z_inflateInit2_'
      BlenderLoader.cpp:(.text+0x86ee): undefined reference to `z_inflate'
      BlenderLoader.cpp:(.text+0x873d): undefined reference to `z_inflateEnd'
      .obj/XFileParser.o: In function `Assimp::XFileParser::XFileParser(std::vector<char, std::allocator<char> > const&)':
      XFileParser.cpp:(.text+0xaff1): undefined reference to `z_inflateInit2_'
      XFileParser.cpp:(.text+0xb0e9): undefined reference to `z_inflate'
      XFileParser.cpp:(.text+0xb0fa): undefined reference to `z_inflateReset'
      XFileParser.cpp:(.text+0xb111): undefined reference to `z_inflateSetDictionary'
      XFileParser.cpp:(.text+0xb141): undefined reference to `z_inflateEnd'
      .obj/XGLLoader.o: In function `Assimp::XGLImporter::InternReadFile(std::string const&, aiScene*, Assimp::IOSystem*)':
      XGLLoader.cpp:(.text+0x94d1): undefined reference to `z_inflateInit2_'
      XGLLoader.cpp:(.text+0x9531): undefined reference to `z_inflate'
      XGLLoader.cpp:(.text+0x9586): undefined reference to `z_inflateEnd'
      .obj/FBXParser.o: In function `Assimp::FBX::(anonymous namespace)::ReadBinaryDataArray(char, unsigned int, char const*&, char const*, std::vector<char, std::allocator<char> >&, Assimp::FBX::Element const&) [clone .constprop.230]':
      FBXParser.cpp:(.text+0x27c5): undefined reference to `z_inflateInit_'
      FBXParser.cpp:(.text+0x27f7): undefined reference to `z_inflate'
      FBXParser.cpp:(.text+0x2808): undefined reference to `z_inflateEnd'
      collect2: error: ld returned 1 exit status
      Makefile:789: recipe for target '../../bin/qgltf' failed
      make[3]: *** [../../bin/qgltf] Error 1
      make[3]: Leaving directory '/home/florian/tmp/qt-debug-pkgbuild/qt5/qt-everywhere-opensource-src-5.6.0-beta/qt3d/tools/qgltf'
      Makefile:42: recipe for target 'sub-qgltf-make_first' failed
      make[2]: *** [sub-qgltf-make_first] Error 2
      make[2]: Leaving directory '/home/florian/tmp/qt-debug-pkgbuild/qt5/qt-everywhere-opensource-src-5.6.0-beta/qt3d/tools'
      Makefile:70: recipe for target 'sub-tools-make_first' failed
      make[1]: *** [sub-tools-make_first] Error 2
      make[1]: Leaving directory '/home/florian/tmp/qt-debug-pkgbuild/qt5/qt-everywhere-opensource-src-5.6.0-beta/qt3d'
      Makefile:613: recipe for target 'module-qt3d-make_first' failed
      make: *** [module-qt3d-make_first] Error 2
      

      Configure summary:

      Build type:    linux-g++ (x86_64, CPU features: mmx sse sse2)
      Platform notes:
      
                  - Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
              
      Build options:
        Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend avx avx2 c++11 c++14 c++1z clock-gettime clock-monotonic compile_examples concurrent cups dbus dbus-linked egl egl_x11 eglfs eglfs_gbm enable_new_dtags evdev eventfd fontconfig fu
      ll-config gbm getaddrinfo getifaddrs glib gstreamer-1.0 gtk2 gtkstyle harfbuzz iconv icu inotify ipv6ifname kms large-config largefile libinput libproxy libudev linuxfb medium-config minimal-config mremap mtdev nis opengl openssl png posix_fallocate precompile_heade
      r pulseaudio qpa qpa reduce_exports reduce_relocations release rpath shared small-config sse2 sse3 sse4_1 sse4_2 ssse3 system-freetype system-jpeg system-png system-zlib threadsafe-cloexec use_gold_linker xcb xcb-glx xcb-plugin xcb-sm xcb-xlib xinput2 xkbcommon-evde
      v xlib xrender 
        Build parts ............ libs tools examples
        Mode ................... release
        Using sanitizer(s)...... none
        Using C++ standard ..... c++1z
        Using gold linker....... yes
        Using new DTAGS ........ yes
        Using PCH .............. yes
        Using LTCG ............. no
        Target compiler supports:
          SSE2/SSE3/SSSE3 ...... yes/yes/yes
          SSE4.1/SSE4.2 ........ yes/yes
          AVX/AVX2 ............. yes/yes
      
      Qt modules and options:
        Qt D-Bus ............... yes (linked to dbus-1)
        Qt Concurrent .......... yes
        Qt GUI ................. yes
        Qt Widgets ............. yes
        Large File ............. yes
        QML debugging .......... yes
        Use system proxies ..... no
      
      Support enabled for:
        Accessibility .......... yes
        ALSA ................... yes
        CUPS ................... yes
        Evdev .................. yes
        FontConfig ............. yes
        FreeType ............... yes (system library)
        Glib ................... yes
        GStreamer .............. yes (1.0)
        GTK theme .............. yes
        HarfBuzz ............... yes (bundled copy)
        Iconv .................. yes
        ICU .................... yes
        Image formats: 
          GIF .................. yes (plugin, using bundled copy)
          JPEG ................. yes (plugin, using system library)
          PNG .................. yes (in QtGui, using system library)
        libinput................ yes
        Logging backends: 
          journald ............... no
          syslog   ............... no
        mtdev .................. yes (system library)
        Networking: 
          getaddrinfo .......... yes
          getifaddrs ........... yes
          IPv6 ifname .......... yes
          libproxy.............. yes
          OpenSSL .............. yes (loading libraries at run-time)
        NIS .................... yes
        OpenGL / OpenVG: 
          EGL .................. yes
          OpenGL ............... desktop
          OpenVG ............... no
        PCRE ................... system
        pkg-config ............. yes 
        PulseAudio ............. yes
        QPA backends: 
          DirectFB ............. no
          EGLFS ................ yes
            EGLFS i.MX6 ........ no
            EGLFS i.MX6 Wayland. no
            EGLFS EGLDevice .... no
            EGLFS GBM .......... yes
            EGLFS Mali ......... no
            EGLFS Raspberry Pi . no
            EGLFS X11 .......... yes
          LinuxFB .............. yes
          Mir client............ no
          XCB .................. yes (system library)
            EGL on X ........... yes
            GLX ................ yes
            MIT-SHM ............ yes
            Xcb-Xlib ........... yes
            Xcursor ............ yes (loaded at runtime)
            Xfixes ............. yes (loaded at runtime)
            Xi ................. no
            Xi2 ................ yes
            Xinerama ........... yes (loaded at runtime)
            Xrandr ............. yes (loaded at runtime)
            Xrender ............ yes
            XKB ................ yes
            XShape ............. yes
            XSync .............. yes
            XVideo ............. yes
        Session management ..... yes
        SQL drivers: 
          DB2 .................. no
          InterBase ............ yes (plugin)
          MySQL ................ yes (plugin)
          OCI .................. no
          ODBC ................. yes (plugin)
          PostgreSQL ........... yes (plugin)
          SQLite 2 ............. no
          SQLite ............... yes (plugin, using bundled copy)
          TDS .................. no
        tslib .................. no
        udev ................... yes
        xkbcommon-x11........... yes (system library)
        xkbcommon-evdev......... yes
        zlib ................... yes (system library)
      

      Attachments

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

        Activity

          People

            janichol Andy Nichols
            the compiler Florian Bruhin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes