Changes

Jump to: navigation, search

Raspberry Pi Fedora Remix FAQ

623 bytes added, 11:46, 5 March 2012
How do I access the sample source code for the Raspberry Pi and build the multimedia demo programs?
== How do I access the sample source code for the Raspberry Pi and build the multimedia demo programs? ==
There are four multimedia demo programs available:
* hello_world - the classic test program, that just prints "Hello, World!" on the screen
* hello_video - a simple H.264 video player
* hello_audo - an audio demo that plays a sine wave with a slow sine wave amplitude modulation
Here are the recommended stepsfor building these demo programs:
# Ensure that the <code>raspberrypi-vc-demo-source</code> package is installed (it's installed in the released image).
# Install the C/C++ toolchain. If you have sufficient space (about 600M), it's recommended that you install the full set of development tools and libraries (<code>yum groupinstall "Development Tools" "Development Libraries"</code>). Alternately, you could install a minimal set of tools (gcc, make, etc). (TODO: come up with the minimum set of tools/libraries needed for the demo code).
# Build the demo: <code>make</code>
# The resulting program name will end in <code>.bin</code> -- run it by typing: <code>./*.bin</code>
# You can modify the programs by editing the C source code (files ending in <code>.c</code>) and recompiling the software by typing <code>make</code>
 
Note that in the Remix, the vc (video core) libraries are in <code>/usr/lib</code> and subdirectories, and the headers are in <code>/usr/include</code>; utilities are in <code>/usr/bin</code> and <code>/usr/sbin</code>. This is different from the Foundation's reference image, which has these files in subdirectories of <code>/opt/vc</code>. License information for the libraries is contained in the corresponding header files.

Navigation menu