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. error : undefined reference to `qt_resourceFeatureZlib'
Forum Update on Monday, May 27th 2025

error : undefined reference to `qt_resourceFeatureZlib'

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
27 Posts 3 Posters 5.4k Views
  • 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
    sberkantgulen
    wrote on last edited by
    #17

    Yes, i mean;

    Maybe problem can be about file association . I wanted to point this out .
    It's like it can't see the libraries and therefore cannot mount sub-directories.
    AM i wrong?

    jsulmJ 1 Reply Last reply
    0
    • S sberkantgulen

      Yes, i mean;

      Maybe problem can be about file association . I wanted to point this out .
      It's like it can't see the libraries and therefore cannot mount sub-directories.
      AM i wrong?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #18

      @sberkantgulen Not sure what you mean. QtCreator has nothing to do with building of your app (you can build in a terminal without QtCreator). Also, nothing is mounted. The problem is that linker can't find the libraries. That means those libraries are not located in the folders you pass to the linker (like here: -L/home/kkvyz1/Desktop/dQGCS/dev/build-YKI-Desktop_Qt_5_14_2_GCC_64bit-Debug/PL/../DL). So, I suggest you really take a look at the link I gave you and define the dependencies between your subfolders properly.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sberkantgulen
        wrote on last edited by sberkantgulen
        #19

        I mean, my problem can be like this topic:
        https://forum.qt.io/topic/107933/undefined-reference-to-qt_resourcefeaturezlib

        And i don't know how can i change libraries.

        jsulmJ 1 Reply Last reply
        0
        • S sberkantgulen

          I mean, my problem can be like this topic:
          https://forum.qt.io/topic/107933/undefined-reference-to-qt_resourcefeaturezlib

          And i don't know how can i change libraries.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #20

          @sberkantgulen The problem from your last compile log has nothing to do with resourcefeaturezlib...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • S Offline
            S Offline
            sberkantgulen
            wrote on last edited by
            #21

            @jsulm said in error : undefined reference to `qt_resourceFeatureZlib':

            The problem from your last compile log has nothing to do with resourcefeaturezlib...

            You are right. I built my project step by step. And i added every code block line by line.

            Problem is about gstreamer.

            PKGCONFIG += gstreamer-1.0 gstreamer-video-1.0 #Qt5GStreamer-1.0 #Qt5GStreamerQuick-1.0
            

            When i add this line there is no error in my project.
            But i uncomment 2 packages which are #Qt5GStreamer-1.0 #Qt5GStreamerQuick-1.0 , and they cause an error.

            PKGCONFIG += gstreamer-1.0 gstreamer-video-1.0 Qt5GStreamer-1.0 Qt5GStreamerQuick-1.0
            

            Probably qt can't find the path for gstreamer.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #22

              Hi,

              Might be a silly question but did you install the corresponding development packages ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sberkantgulen
                wrote on last edited by
                #23

                Of course,

                Maybe i coludn't explain properly.

                When i install qt from terminal (Default Qt 5.9 for Ubuntu 18.04) and install packages, everything is ok.
                When i install qt from offline source (Qt 5.12 or Qt 5.14) and install same package like above, qt can't see same libraries.
                When i install qt from terminal (Default Qt 5.12 for Ubuntu 20.04) and install packages, everything is ok again.

                So, i think the problem is about path or something else about location on system.
                Maybe additional settings are required for offline installation but i couldn't find anything.

                ...

                jsulmJ 1 Reply Last reply
                0
                • S sberkantgulen

                  Of course,

                  Maybe i coludn't explain properly.

                  When i install qt from terminal (Default Qt 5.9 for Ubuntu 18.04) and install packages, everything is ok.
                  When i install qt from offline source (Qt 5.12 or Qt 5.14) and install same package like above, qt can't see same libraries.
                  When i install qt from terminal (Default Qt 5.12 for Ubuntu 20.04) and install packages, everything is ok again.

                  So, i think the problem is about path or something else about location on system.
                  Maybe additional settings are required for offline installation but i couldn't find anything.

                  ...

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #24

                  @sberkantgulen The question was: did you install development packages for GStreamer?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sberkantgulen
                    wrote on last edited by sberkantgulen
                    #25

                    @sberkantgulen said in error : undefined reference to `qt_resourceFeatureZlib':

                    packages

                    Yes, In all 3 cases I installed all required packages the same way. Gstreamer and everything else.

                    When i install qt from terminal (Default Qt 5.9 for Ubuntu 18.04) and install packages, everything is ok.
                    When i install qt from offline source (Qt 5.12 or Qt 5.14) and install same package like above, qt can't see same libraries. (Error - My problem is this topic)
                    When i install qt from terminal (Default Qt 5.12 for Ubuntu 20.04) and install packages, everything is ok again.

                    jsulmJ 1 Reply Last reply
                    0
                    • S sberkantgulen

                      @sberkantgulen said in error : undefined reference to `qt_resourceFeatureZlib':

                      packages

                      Yes, In all 3 cases I installed all required packages the same way. Gstreamer and everything else.

                      When i install qt from terminal (Default Qt 5.9 for Ubuntu 18.04) and install packages, everything is ok.
                      When i install qt from offline source (Qt 5.12 or Qt 5.14) and install same package like above, qt can't see same libraries. (Error - My problem is this topic)
                      When i install qt from terminal (Default Qt 5.12 for Ubuntu 20.04) and install packages, everything is ok again.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #26

                      @sberkantgulen said in error : undefined reference to `qt_resourceFeatureZlib':

                      Gstreamer and everything else

                      To make sure the is no misunderstanding: @SGaist was asking about GStreamer development packages (those have -dev postfic). Did you install those? Can you show which exact GStreamer packages are installed?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sberkantgulen
                        wrote on last edited by sberkantgulen
                        #27

                        My packages for gstreamer:

                        sudo apt-get install --reinstall libxcb-xinerama0
                        sudo apt-get install -y libqt5gstreamerquick-1.0-0
                        sudo apt-get install -y libcairo2-dev
                        sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
                        sudo apt-get install libgstreamer-plugins-base1.0-d
                        sudo apt-get install libqt5gstreamer-dev
                        sudo apt-get install libgstreamer1.0-dev
                        sudo apt-get install libgstreamer-plugins-base1.0-d
                        sudo apt-get install libgstreamermm-1.0-dev
                        sudo apt-get install qtdeclarative5-dev

                        And i could see packages in both path which are;

                        "/usr/lib/x86_64-linux-gnu/" and "/usr/lib/x86_64-linux-gnu/pkgconfig/"

                        After these installations i can run my program if i install from terminal with commands:

                        sudo apt install build-essential
                        sudo apt install qtcreator
                        sudo apt install qt5-default

                        But i can't run program if i install from offline source. Really i can't understand the difference.

                        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