GStreamer Application Development Manual (0.11.0.2) | ||
---|---|---|
<<< Previous | Your first application | Next >>> |
To compile the helloworld example, use: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.11) helloworld.c -o helloworld. GStreamer makes use of pkg-config to get compiler and linker flags needed to compile this application.
If you're running a non-standard installation (ie. you've installed
GStreamer from source yourself instead of using pre-built packages),
make sure the PKG_CONFIG_PATH
environment variable
is set to the correct location ($libdir/pkgconfig).
In the unlikely case that you are using an uninstalled GStreamer setup (ie. gst-uninstalled), you will need to use libtool to build the hello world program, like this: libtool --mode=link gcc -Wall $(pkg-config --cflags --libs gstreamer-0.11) helloworld.c -o helloworld.
You can run this example application with ./helloworld file.ogg. Substitute file.ogg with your favourite Ogg/Vorbis file.
<<< Previous | Home | Next >>> |
Your first application | Up | Conclusion |