pkg-config problem in static build
Describe your issue
When trying to build the simple hello world example with static libraries, the following error is reported:
$ gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-full-1.0`
gcc: fatal error: cannot execute ‘/usr/lib/gcc/x86_64-linux-gnu/11/cc1’: execv: Argument list too long
compilation terminated.
After extracting the output of pkg-config --cflags --libs gstreamer-full-1.0
command. Its output was too long, such that even the editor was not able to open it.
Setup
- **Operating System: Linux Mint 21
- **Device: Computer
- **GStreamer Version: 1.18
Steps to reproduce the bug
- open terminal
- configure with
meson
:
$ meson build-gst-full \
-Ddefault_library=static \
-Dintrospection=disabled \
--buildtype=release \
--strip \
--wrap-mode=forcefallback
- build with
ninja
:
$ ninja -C build-gst-full
How reproducible is the bug?
When I tried the build the hello world example in Fedora docker image registry.freedesktop.org/gstreamer/gst-plugins-bad/amd64/fedora:2021-03-30.0-master
). It was working normally
I have attached the output of pkg-config
for your reference.
ins