Solved Why qt config can't detect gstreamer sources?
-
Hi. I'm trying to build qt from and cross-compile it (qt-everywhere-src-5.11.2) for arm (from Linux Mint 18.3 x64) with gstreamer support. I have already installed packages libgstreamer1.0-dev, libgstreamer0.10, etc:
But configuration process was failed:$./configure -v -opensource -confirm-license -device imx6 -device-option CROSS_COMPILE=arm-linux-gnueabihf- -make libs -nomake examples -nomake tests -no-pch -no-xcb -no-egl -no-opengl -skip wayland -skip qtwebview -skip qtwebengine -skip qtwebchannel -no-qml-debug -gstreamer -prefix ../$QtDir
output:
... Qt Multimedia: ALSA ................................... no GStreamer 1.0 .......................... no GStreamer 0.10 ......................... no Video for Linux ........................ yes OpenAL ................................. no PulseAudio ............................. no Resource Policy (libresourceqt5) ....... no Windows Audio Services ................. no DirectShow ............................. no Windows Media Foundation ............... no Note: Also available for Linux: linux-clang linux-icc ERROR: Feature 'gstreamer' was enabled, but the pre-condition 'features.gstreamer_1_0 || features.gstreamer_0_10' failed.
I found some post/questions with similar problems, but I didn't find any solution :(
What I'm doing wrong?
Thanks! -
Run configure with verbose flag to see the issue in more detail.
-
@sierdzio here is full output log of configuration process (-v defined): https://pastebin.com/dfAXezi9
-
Looks like it is trying to get GStreamer through pkconfig. Perhaps it would work if you specified libs and includes for GStreamer manually, I don't know.
-
@sierdzio thanks for hit, I'll do more experiments
-
Hi,
Might be a silly question but do you have pkg-config installed ?
-
@SGaist sure:
$ pkg-config --libs gstreamer-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0
-
Wait... You are cross-compiling... Do you have gstreamer for your target's architecture ?
-
@SGaist Yes. Sorry, my bad. Now I build a full environment for the cross-compilation with needed libs. Thanks for help!