<title>Compiling and Running helloworld.c</title>
<para>
To compile the helloworld example, use: <command>gcc -Wall
- $(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)
- helloworld.c -o helloworld</command>. &GStreamer; makes use of
- <command>pkg-config</command> to get compiler and linker flags
- needed to compile this application.
+ helloworld.c -o helloworld
+ $(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)</command>.
+ &GStreamer; makes use of <command>pkg-config</command> to get compiler
+ and linker flags needed to compile this application.
</para>
<para>
If you're running a non-standard installation (ie. you've installed
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: <command>libtool --mode=link gcc -Wall
- $(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)
- helloworld.c -o helloworld</command>.
+ helloworld.c -o helloworld
+ $(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)</command>.
</para>
<para>
You can run this example application with <command>./helloworld