1,885
edits
Changes
no edit summary
[[Category:Raspberry Pi Fedora Remix]]
== Multimedia Demos ==
There are four multimedia demo programs provided by the Raspberry Pi Foundation and package packaged in the Remixin source form:* hello_world - the classic test program, that just which prints "Hello, World!" on the screen* hello_video - a simple H.264 full-screen video player
* hello_triangle - an OpenGL-ES demo program which displays a rolling cube with textures on each side
* hello_audo hello_audio - an audio demo that plays a sine wave with a slow sine wave amplitude modulation
== Building the Demos ==
# Select a demo. Change to that directory -- the directory name will be <code>~/hello_pi/''nameOfDemo''</code> -- for example, to change to the demo for the hello_audio program: <code>cd ~/hello_pi/hello_audio</code>
# Build the demo: <code>make</code>
# The resulting program name will end in <code>.bin</code> -- you can 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>
== File Locations ==
In the Remix, the vc (video coreBroadcom VideoCore IV GPU) 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>. The move from <code>/opt</code> to the system directories reflects the fact that these libraries are part of the base system and not a 3rd-party add-on. The source code for the demo programs has been patched so that the libraries and headers are accessed in their new locations.
== License Information ==
License information for the libraries and/or headers is generally contained in the corresponding header files.