<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;feed=atom&amp;action=history</id>
		<title>Didj and Explorer SDL mixer - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;action=history"/>
		<updated>2013-05-25T04:08:53Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.22alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;diff=46903&amp;oldid=prev</id>
		<title>Jsujjava: Add Category Didj</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;diff=46903&amp;oldid=prev"/>
				<updated>2011-05-10T15:11:51Z</updated>
		
		<summary type="html">&lt;p&gt;Add Category Didj&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:11, 10 May 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #include &amp;quot;SDL/SDL_mixer.h&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #include &amp;quot;SDL/SDL_mixer.h&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Didj]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jsujjava</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;diff=26443&amp;oldid=prev</id>
		<title>Reggie at 13:55, 5 November 2010</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;diff=26443&amp;oldid=prev"/>
				<updated>2010-11-05T13:55:58Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:55, 5 November 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Installing SDL_mixer'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Installing SDL_mixer'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;I'd like to thank Nirvous, NullMoogleCable, PhillKll, Claude, JKent, Jburks, GrizzlyAdams and anyone I may have forgotten for their help :)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another short tutorial for installing SDL_mixer, this will give better audio support to SDL which only has wav/pcm support built in.&amp;#160; This tutorial will show you how to install SDL_mixer with mp3 support using libmad.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another short tutorial for installing SDL_mixer, this will give better audio support to SDL which only has wav/pcm support built in.&amp;#160; This tutorial will show you how to install SDL_mixer with mp3 support using libmad.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Reggie</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;diff=23389&amp;oldid=prev</id>
		<title>Reggie: Created page with &quot;'''Installing SDL_mixer'''  Another short tutorial for installing SDL_mixer, this will give better audio support to SDL which only has wav/pcm support built in.  This tutorial wi...&quot;</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_mixer&amp;diff=23389&amp;oldid=prev"/>
				<updated>2010-09-16T18:16:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Installing SDL_mixer&amp;#039;&amp;#039;&amp;#039;  Another short tutorial for installing SDL_mixer, this will give better audio support to SDL which only has wav/pcm support built in.  This tutorial wi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Installing SDL_mixer'''&lt;br /&gt;
&lt;br /&gt;
Another short tutorial for installing SDL_mixer, this will give better audio support to SDL which only has wav/pcm support built in.  This tutorial will show you how to install SDL_mixer with mp3 support using libmad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
 A working toolchain&lt;br /&gt;
 LX Kernel sources and ThirdParty tarball unpacked to your harddrive&lt;br /&gt;
 correct environment variables set &lt;br /&gt;
 libmad (installed as part of this tutorial)&lt;br /&gt;
 libSDL (should already be installed)&lt;br /&gt;
 A working internet connection&lt;br /&gt;
&lt;br /&gt;
'''Installing libmad'''&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
As with the other tutorials, we will need to make a directory in PROJECT_PATH/packages:&lt;br /&gt;
 mkdir $PROJECT_PATH/packages/SDLmixer&lt;br /&gt;
 cd $PROJECT_PATH/packages/SDLmixer&lt;br /&gt;
&lt;br /&gt;
This install is slightly different, we need to disable one of the libmad optimisation options, so we need to download the SDL_mixer source and edit it:&lt;br /&gt;
 wget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz&lt;br /&gt;
 tar -xf libmad-0.15.1b.tar.gz&lt;br /&gt;
 cd ./libmad-0.15.1b&lt;br /&gt;
 gedit configure&lt;br /&gt;
&lt;br /&gt;
Look for line 19102 and comment it out:&lt;br /&gt;
&lt;br /&gt;
 //	    optimize=&amp;quot;$optimize -fforce-mem&amp;quot;&lt;br /&gt;
&lt;br /&gt;
now save it into your PROJECT_PATH/SDLimage folder, we will use it in a moment when we install libmad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We now need to make an install script for libmad, copy the following into a text editor and save the file as installmad.sh:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 export CC=arm-linux-uclibcgnueabi-gcc&lt;br /&gt;
 export CXX=arm-linux-uclibcgnueabi-gcc&lt;br /&gt;
 export CPPFLAGS='-I${PROJECT_PATH}/packages/SDLmixer/libmad-0.15.1b -I${PROJECT_PATH}/packages/zlib/zlib-1.2.3'&lt;br /&gt;
 export LDFLAGS='-L${PROJECT_PATH}/packages/SDLmixer/libmad-0.15.1b -L${PROJECT_PATH}/packages/zlib/zlib-1.2.3'&lt;br /&gt;
 if [ &amp;quot;$CLEAN&amp;quot; == &amp;quot;1&amp;quot; ]; then&lt;br /&gt;
 rm -rf ./libmad-0.15.1b&lt;br /&gt;
 wget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz&lt;br /&gt;
 tar -xf libmad-0.15.1b.tar.gz&lt;br /&gt;
 cp -f configure ./libmad-0.15.1b&lt;br /&gt;
 cd ./libmad-0.15.1b&lt;br /&gt;
 make clean&lt;br /&gt;
 fi&lt;br /&gt;
 if [ ! &amp;quot;$CLEAN&amp;quot; == &amp;quot;1&amp;quot; ]; then&lt;br /&gt;
 cd ./libmad-0.15.1b&lt;br /&gt;
 fi&lt;br /&gt;
 ./configure --prefix=${ROOTFS_PATH}/usr --build=`uname -m` --host=arm-linux --enable-fpm=arm --enable-shared&lt;br /&gt;
 make -j3&lt;br /&gt;
 make -j3 install&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make the install script executable, then you can now install it by the following command:&lt;br /&gt;
 chmod a+x installmad.sh&lt;br /&gt;
 CLEAN=1 ./installmad.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
that should install the appropriate headers and libs into ROOTFS_PATH/usr/include and /lib respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can now get on with preparing an install.sh file for SDL_mixer, so once again, copy and paste the following into your favourite text editor:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 export CFLAGS='-I${ROOTFS_PATH}/usr/include -I${ROOTFS_PATH}/usr/include/SDL'&lt;br /&gt;
 export LD_FLAGS='-L${ROOTFS_PATH}/usr/lib'&lt;br /&gt;
 export CC=arm-linux-uclibcgnueabi-gcc&lt;br /&gt;
 export CXX=arm-linux-uclibcgnueabi-g++ &lt;br /&gt;
 if [ &amp;quot;$CLEAN&amp;quot; == &amp;quot;1&amp;quot; ]; then&lt;br /&gt;
 rm -rf ./SDL_mixer-1.2.11&lt;br /&gt;
 rm ./SDL_mixer-1.2.11.tar.gz&lt;br /&gt;
 wget http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11.tar.gz&lt;br /&gt;
 tar -xf SDL_mixer-1.2.11.tar.gz&lt;br /&gt;
 fi&lt;br /&gt;
 cd ./SDL_mixer-1.2.11&lt;br /&gt;
 ./configure --prefix=${ROOTFS_PATH}/usr --build=`uname -m` --host=arm-linux --enable-shared --enable-music-wave --enable-music-mp3-mad-gpl --disable-music-mp3 --disable-smpegtest --disable-music-mod --libdir=${ROOTFS_PATH}/usr/lib --includedir=${ROOTFS_PATH}/usr/include --with-sdl-prefix=${ROOTFS_PATH}/usr/&lt;br /&gt;
 make -j3&lt;br /&gt;
 make -j3 install&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
name the file install.sh save the file to PROJECT_PATH/packages/SDLmixer.&lt;br /&gt;
&lt;br /&gt;
now Make the script executable, compile and install the SDL_mixer library, type the following at the command line:&lt;br /&gt;
 chmod a+x install.sh&lt;br /&gt;
 CLEAN=1 ./install.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once that has finished you should have the library files and the headers in the $ROOTFS_PATH/usr/lib and /include folders.&lt;br /&gt;
&lt;br /&gt;
to compile an app do something like:&lt;br /&gt;
&lt;br /&gt;
 arm-linux-uclibcgnueabi-gcc -o mysdlApp mysdlApp.c -I/home/didj/Source/kernel/explorer/rootfs/usr/include/ -L/home/didj/Source/kernel/explorer/rootfs/usr/lib -lSDL -lSDL_mixer -lmad -lpthread&lt;br /&gt;
&lt;br /&gt;
and don't forget to include the SDL_mixer.h file in your app:&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;SDL/SDL_mixer.h&amp;quot;&lt;/div&gt;</summary>
		<author><name>Reggie</name></author>	</entry>

	</feed>