From d6799b069aefc619a7eeb432877955db57deada0 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 1 Mar 2022 19:50:12 +0530 Subject: [PATCH] webrtc: Update Makefile for building webrtc-sendrecv This now needs the RTP library. Part-of: --- subprojects/gst-examples/webrtc/sendrecv/gst/Makefile | 4 ++-- .../gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-examples/webrtc/sendrecv/gst/Makefile b/subprojects/gst-examples/webrtc/sendrecv/gst/Makefile index 07a9ae3612..6e302e64f3 100644 --- a/subprojects/gst-examples/webrtc/sendrecv/gst/Makefile +++ b/subprojects/gst-examples/webrtc/sendrecv/gst/Makefile @@ -1,6 +1,6 @@ CC := gcc -LIBS := $(shell pkg-config --libs --cflags glib-2.0 gstreamer-1.0 gstreamer-sdp-1.0 gstreamer-webrtc-1.0 json-glib-1.0 libsoup-2.4) +LIBS := $(shell pkg-config --libs --cflags glib-2.0 gstreamer-1.0 gstreamer-rtp-1.0 gstreamer-sdp-1.0 gstreamer-webrtc-1.0 json-glib-1.0 libsoup-2.4) CFLAGS := -O0 -ggdb -Wall -fno-omit-frame-pointer \ - $(shell pkg-config --cflags glib-2.0 gstreamer-1.0 gstreamer-sdp-1.0 gstreamer-webrtc-1.0 json-glib-1.0 libsoup-2.4) + $(shell pkg-config --cflags glib-2.0 gstreamer-1.0 gstreamer-rtp-1.0 gstreamer-sdp-1.0 gstreamer-webrtc-1.0 json-glib-1.0 libsoup-2.4) webrtc-sendrecv: webrtc-sendrecv.c "$(CC)" $(CFLAGS) $^ $(LIBS) -o $@ diff --git a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.c b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.c index 0ab61c7a86..6ba6909982 100644 --- a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.c +++ b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.c @@ -2,7 +2,7 @@ * Demo gstreamer app for negotiating and streaming a sendrecv webrtc stream * with a browser JS app. * - * gcc webrtc-sendrecv.c $(pkg-config --cflags --libs gstreamer-webrtc-1.0 gstreamer-sdp-1.0 libsoup-2.4 json-glib-1.0) -o webrtc-sendrecv + * Build by running: `make webrtc-sendrecv`, or build the gstreamer monorepo. * * Author: Nirbheek Chauhan */