Hello,
I’m installing gst-python on DeepStream SDK- Docker container to integrate the python bindings for the C sample apps. The image I’m using is '5.0-dp-20.04-samples’
I’m compiling gst-plugin version 1.14.2 following the guide here –
I’m facing this error while make .
:~/gst-python# make
make all-recursive
make[1]: Entering directory ‘/root/gst-python’
Making all in common
make[2]: Entering directory ‘/root/gst-python/common’
Making all in m4
make[3]: Entering directory ‘/root/gst-python/common/m4’
make[3]: Nothing to be done for ‘all’.
make[3]: Leaving directory ‘/root/gst-python/common/m4’
make[3]: Entering directory ‘/root/gst-python/common’
make[3]: Nothing to be done for ‘all-am’.
make[3]: Leaving directory ‘/root/gst-python/common’
make[2]: Leaving directory ‘/root/gst-python/common’
Making all in gi
make[2]: Entering directory ‘/root/gst-python/gi’
Making all in overrides
make[3]: Entering directory ‘/root/gst-python/gi/overrides’
- CC _gi_gst_la-gstmodule.lo*
gstmodule.c:31:10: fatal error: gst/gst.h: No such file or directory - #include <gst/gst.h>*
-
^~~~~~~~~~~*
compilation terminated.
Makefile:504: recipe for target ‘_gi_gst_la-gstmodule.lo’ failed
make[3]: *** [_gi_gst_la-gstmodule.lo] Error 1
make[3]: Leaving directory ‘/root/gst-python/gi/overrides’
Makefile:401: recipe for target ‘all-recursive’ failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory ‘/root/gst-python/gi’
Makefile:481: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/root/gst-python’
Makefile:412: recipe for target ‘all’ failed
make: *** [all] Error 2
These are the precise compilation steps –
apt-get install python-gi-dev
export GST_LIBS=“-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0”
export GST_CFLAGS=“-pthread -I/usr/lib/x86_64-linux-gnu/gstreamer1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include”
git clone GitHub - GStreamer/gst-python: GStreamer Python binding overrides (complementing the bindings provided by python-gi). This module has been merged into the main GStreamer repo for further development.
cd gst-python
git checkout 1a8f48a
./autogen.sh PYTHON=python3
./configure PYTHON=python3
make
make install
Is this a known issue? Looks like it doesn’t pick the existing gstreamer installation in the container.