<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >Compiling helloworld.c</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="GStreamer Application Development Manual" HREF="index.html"><LINK REL="UP" TITLE="Your first application" HREF="chapter-hello-world.html"><LINK REL="PREVIOUS" TITLE="Your first application" HREF="chapter-hello-world.html"><LINK REL="NEXT" TITLE="Conclusion" HREF="section-hello-world-conclusion.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><SPAN CLASS="application" >GStreamer</SPAN > Application Development Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="chapter-hello-world.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 19. Your first application</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="section-hello-world-conclusion.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="section-hello-world-compile" >19.2. Compiling helloworld.c</A ></H1 ><P > To compile the helloworld example, use: </P ><PRE CLASS="programlisting" > gcc -Wall `pkg-config gstreamer-0.7 --cflags --libs` helloworld.c \ -o helloworld </PRE ><P > We use pkg-config to get the compiler flags needed to compile this application. Make sure to have your PKG_CONFIG_PATH environment variable set to the correct location if you are building this application against the uninstalled location. </P ><P > You can run the example with (substitute helloworld.mp3 with you favorite MP3 file): </P ><PRE CLASS="programlisting" > ./helloworld helloworld.mp3 </PRE ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="chapter-hello-world.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="section-hello-world-conclusion.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Your first application</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="chapter-hello-world.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Conclusion</TD ></TR ></TABLE ></DIV ></BODY ></HTML >