error : undefined reference to `qt_resourceFeatureZlib'
-
@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.
-
Hi,
Might be a silly question but did you install the corresponding development packages ?
-
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....
-
@sberkantgulen The question was: did you install development packages for GStreamer?
-
@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. -
@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?
-
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-devAnd 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-defaultBut i can't run program if i install from offline source. Really i can't understand the difference.