Can't compile code using gst-rtsp server

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Jul 12 02:05:10 PDT 2012


On Wed, 2012-07-11 at 17:16 -0700, W.A. Garrett Weaver wrote:

Hi,

> I'm trying to make a simple, c program that uses the gstreamer rtsp
> server. I downloaded, configured, make and make installed
> gst-rtsp-0.10.8. 
> 
> Inside gst-rtsp-0.10.8/examples I copied test-video.c as test-video2.c
> and I would like to compile it. 
> 
> I used: "gcc test-video2.c -o test-video2 -Wall $(pkg-config --cflags
> --libs gstreamer-0.10)" to try to compile it, but I get:
> 
> "test-video2.c:22:41: fatal error: gst/rtsp-server/rtsp-server.h: No
> such file or directory
> compilation terminated."
> 
> What do I need to do to build a c file that has "#include
> <gst/rtsp-server/rtsp-server.h>"?

$ pkg-config --list-all | grep rtsp
gstreamer-rtsp-0.10    GStreamer RTSP Library - RTSP base classes and
helper functions
gst-rtsp-server-0.10   gst-rtsp-server - GStreamer based RTSP server

==> add gst-rtsp-server-0.10 to your pkg-config lines after
gstreamer-0.10.

Cheers 
 -Tim



More information about the gstreamer-devel mailing list