[Ubuntu:18.04 Docker]: webrtc-unidirectional-h264.c:207:8: error: unknown type name 'GstWebRTCPriorityType'Hell
Hello,
I am using main
branch of the GStreamer monorepo and the webrtc/sendonly example in subprojects/gst-examples
within Ubuntu 18.04 Docker.
Before compiling the webrtc/sendonly example, I installed below GStreamer Plugins -
sudo apt-get install -y gstreamer1.0-tools gstreamer1.0-nice gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good libgstreamer1.0-dev git libglib2.0-dev libgstreamer-plugins-bad1.0-dev libsoup2.4-dev libjson-glib-dev
But I am getting below error while compiling with Ubuntu 18.04 Docker -
"gcc" -O0 -ggdb -Wall -fno-omit-frame-pointer webrtc-unidirectional-h264.c -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -lgstwebrtc-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgstsdp-1.0 -lsoup-2.4 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -o webrtc-unidirectional-h264 webrtc-unidirectional-h264.c:207:8: error: unknown type name 'GstWebRTCPriorityType' static GstWebRTCPriorityType ^~~~~~~~~~~~~~~~~~~~~ webrtc-unidirectional-h264.c: In function '_priority_from_string': webrtc-unidirectional-h264.c:211:40: error: 'GST_TYPE_WEBRTC_PRIORITY_TYPE' undeclared (first use in this function); did you mean 'GST_TYPE_WEBRTC_STATS_TYPE'? (GEnumClass *) g_type_class_ref (GST_TYPE_WEBRTC_PRIORITY_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GST_TYPE_WEBRTC_STATS_TYPE webrtc-unidirectional-h264.c:211:40: note: each undeclared identifier is reported only once for each function it appears in webrtc-unidirectional-h264.c: In function 'create_receiver_entry': webrtc-unidirectional-h264.c:272:5: error: unknown type name 'GstWebRTCPriorityType'; did you mean 'GstWebRTCStatsType'? GstWebRTCPriorityType priority; ^~~~~~~~~~~~~~~~~~~~~ GstWebRTCStatsType webrtc-unidirectional-h264.c:279:7: warning: implicit declaration of function 'gst_webrtc_rtp_sender_set_priority'; did you mean 'gst_webrtc_rtp_sender_set_transport'? [-Wimplicit-function-declaration] gst_webrtc_rtp_sender_set_priority (sender, priority); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gst_webrtc_rtp_sender_set_transport webrtc-unidirectional-h264.c:287:5: error: unknown type name 'GstWebRTCPriorityType'; did you mean 'GstWebRTCStatsType'? GstWebRTCPriorityType priority; ^~~~~~~~~~~~~~~~~~~~~ GstWebRTCStatsType Makefile:8: recipe for target 'webrtc-unidirectional-h264' failed make: *** [webrtc-unidirectional-h264] Error 1
I am trying the use case on Qualcomm SoC with arm64 architecture. The SW running on Qualcomm SoC is latest Ubuntu Version, which which we get the libsoup error mentioned in #1750 (closed) . Due to which, I have created Ubuntu 18.04 based Docker on device and building the example.
Could you please guide me, how I can fix the error..? Is it due to Docker environment.
Thanks and Regards!