firehills / gst-element-examples

Simple examples of various GStreamer element types
4 stars 2 forks source link

Would have been much better if it did not require the compilation of gstreamer #1

Open ksachdeva opened 2 years ago

ksachdeva commented 2 years ago

At present facing this issue on ubuntu 18 when compiling gstreamer.

[7066/7070] Linking target subprojects/gst-python/plugin/libgstpython.so
FAILED: subprojects/gst-python/plugin/libgstpython.so
cc  -o subprojects/gst-python/plugin/libgstpython.so subprojects/gst-python/plugin/libgstpython.so.p/gstpythonplugin.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libgstpython.so '-Wl,-rpath,$ORIGIN/../../gstreamer/gst:$ORIGIN/../../gstreamer/libs/gst/base' -Wl,-rpath-link,/home/ml/Desktop/Dev/users/ksachdeva/projects/gst-element-examples/gstreamer/build/subprojects/gstreamer/gst -Wl,-rpath-link,/home/ml/Desktop/Dev/users/ksachdeva/projects/gst-element-examples/gstreamer/build/subprojects/gstreamer/libs/gst/base subprojects/gstreamer/gst/libgstreamer-1.0.so.0.2000.0 subprojects/gstreamer/libs/gst/base/libgstbase-1.0.so.0.2000.0 /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /home/ml/.pyenv/versions/3.8.13/lib/libpython3.8.a -Wl,--end-group
/usr/bin/ld: /home/ml/.pyenv/versions/3.8.13/lib/libpython3.8.a(_warnings.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
[7068/7070] Compiling C object subprojects/gst-editing-services/tests/check/ges_clip.p/ges_clip.c.o
ninja: build stopped: subcommand failed.
ksachdeva commented 2 years ago

Managed to compile gstreamer with

meson -Dpython=disabled build
firehills commented 2 years ago

Beat me to it, came back to post ... if you don't need the python plugin try

meson.py -Dgst-python:plugin=disabled --reconfigure <YourBuildDir>