<?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_ttf&amp;feed=atom&amp;action=history</id>
		<title>Didj and Explorer SDL ttf - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_ttf&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_ttf&amp;action=history"/>
		<updated>2013-05-18T13:42:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=Didj_and_Explorer_SDL_ttf&amp;diff=46909&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_ttf&amp;diff=46909&amp;oldid=prev"/>
				<updated>2011-05-10T15:13:28Z</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;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:13, 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 79:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 79:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; arm-linux-uclibcgnueabi-gcc -o testttf testttf.c -I${ROOTFS_PATH}/usr/include/ -L${ROOTFS_PATH}/usr/lib -lSDL -lSDL_ttf -lfreetype -lpthread&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; arm-linux-uclibcgnueabi-gcc -o testttf testttf.c -I${ROOTFS_PATH}/usr/include/ -L${ROOTFS_PATH}/usr/lib -lSDL -lSDL_ttf -lfreetype -lpthread&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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_ttf&amp;diff=40819&amp;oldid=prev</id>
		<title>Peter Huewe: spellcheck</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_ttf&amp;diff=40819&amp;oldid=prev"/>
				<updated>2011-04-11T20:57:27Z</updated>
		
		<summary type="html">&lt;p&gt;spellcheck&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;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:57, 11 April 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/code&amp;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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;As long as you have your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;enviroment &lt;/del&gt;variables set you should now be able to start compiling/installing the freetype lib which is needed by SDL_ttf.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;As long as you have your &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;environment &lt;/ins&gt;variables set you should now be able to start compiling/installing the freetype lib which is needed by SDL_ttf.&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;go into the freetype directory and type:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;go into the freetype directory and type:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Peter Huewe</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=Didj_and_Explorer_SDL_ttf&amp;diff=26431&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_ttf&amp;diff=26431&amp;oldid=prev"/>
				<updated>2010-11-05T13:55:19Z</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;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;this is a very short tutorial on how to compile and install TrueType font support for the SDL library.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;this is a very short tutorial on how to compile and install TrueType font support for the SDL library.&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Pre-requisites'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Pre-requisites'''&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_ttf&amp;diff=23275&amp;oldid=prev</id>
		<title>Reggie: /* Tutorials/How To's */</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Didj_and_Explorer_SDL_ttf&amp;diff=23275&amp;oldid=prev"/>
				<updated>2010-09-16T13:04:23Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tutorials/How To&amp;#039;s&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;this is a very short tutorial on how to compile and install TrueType font support for the SDL library.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
 A working toolchain (see the front page)&lt;br /&gt;
 the leapfrog 2.6.31 sources&lt;br /&gt;
 A working installation of libSDL would be useful&lt;br /&gt;
 an internet connection&lt;br /&gt;
 freetype font library&lt;br /&gt;
&lt;br /&gt;
It is fairly simple to install SDL_ttf, it requires freetype to be installed as well, so we will do both from their own folder in the packages directory, so browse to your kernel sources, go to the packages folder and make 2 new folders:&lt;br /&gt;
&lt;br /&gt;
 mkdir SDL_ttf freetype&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
copy the following into a a text editor and save it into the freetype folder as install.sh&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_ttf-2.0.10&lt;br /&gt;
 rm ./SDL_ttf-2.0.10.tar.gz&lt;br /&gt;
 wget http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.10.tar.gz&lt;br /&gt;
 tar -xf SDL_ttf-2.0.10.tar.gz&lt;br /&gt;
 fi&lt;br /&gt;
 cd ./SDL_ttf-2.0.10&lt;br /&gt;
 ./configure --prefix=${ROOTFS_PATH}/usr --build=`uname -m` --host=arm-linux --enable-shared --libdir=${ROOTFS_PATH}/usr/lib --includedir=${ROOTFS_PATH}/usr/include --without-x --disable-opengl --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;
Now do the same for SDL_ttf and save it into the SDL_ttf folder as install.sh&lt;br /&gt;
&amp;lt;code&amp;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_ttf-2.0.10&lt;br /&gt;
 rm ./SDL_ttf-2.0.10.tar.gz&lt;br /&gt;
 wget http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.10.tar.gz&lt;br /&gt;
 tar -xf SDL_ttf-2.0.10.tar.gz&lt;br /&gt;
 fi&lt;br /&gt;
 cd ./SDL_ttf-2.0.10&lt;br /&gt;
 ./configure --prefix=${ROOTFS_PATH}/usr --build=`uname -m` --host=arm-linux --enable-shared --libdir=${ROOTFS_PATH}/usr/lib --includedir=${ROOTFS_PATH}/usr/include --without-x --disable-opengl --with-sdl-prefix=${ROOTFS_PATH}/usr/&lt;br /&gt;
 make -j3&lt;br /&gt;
 make -j3 install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As long as you have your enviroment variables set you should now be able to start compiling/installing the freetype lib which is needed by SDL_ttf.&lt;br /&gt;
&lt;br /&gt;
go into the freetype directory and type:&lt;br /&gt;
&lt;br /&gt;
 CLEAN=1 ./install.sh&lt;br /&gt;
&lt;br /&gt;
Once its done you should have the freetype headers in your ROOTFS_PATH/usr/include and the libs in ROOTFS_PATH/usr/lib, if they are there you are now ready to compile SDL_ttf.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Same procedure here, go into the SDL_ttf directory and type:&lt;br /&gt;
&lt;br /&gt;
 CLEAN=1 ./install.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
that should put your headers and libs into their appropriate places in ROOTFS_PATH/usr/include and /lib&lt;br /&gt;
&lt;br /&gt;
if you ever want to build either lib again, you can omit the CLEAN=1 from the ./install.sh command, unless of course you want to build from scratch.&lt;br /&gt;
&lt;br /&gt;
to use the libs add the following to your .c file:&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;SDL/SDL_ttf.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and to compile use something like this:&lt;br /&gt;
&lt;br /&gt;
 arm-linux-uclibcgnueabi-gcc -o testttf testttf.c -I${ROOTFS_PATH}/usr/include/ -L${ROOTFS_PATH}/usr/lib -lSDL -lSDL_ttf -lfreetype -lpthread&lt;/div&gt;</summary>
		<author><name>Reggie</name></author>	</entry>

	</feed>