<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Can&amp;#039;t get SDL for Wii to fly... :-(</title>
<description> Hi all, 

I recently discovered Wii Homebrew, set up the Homebrew channel with some sample apps, and I am excited to get started developing my own stuff. I am new to C++, but thanks to the WiiWizard for Visual Studio I had a good start and already got the &quot;Hello World!&quot; to show up on my Wii. 

Next I wanted to try some graphics and was interested in using SDL. So I downloaded SDL for Wii, and put all the proper files in the right folders according to instructions. I changed the following line in the makefile: 


LIBS := -lSDL_net -lSDL_ttf -lSDL_gfx -lSDL_mixer -lSDL_image -lSDL \
-lsmpeg -ljpeg -lpng -lfreetype -ltremor \
-lz -lfat -lwiiuse -lbte -logc -lm -lwiikeyboard \
, but whenever I build now, I keep on getting errors. It is as if the required libraries are missing from my DevkitPro / libOCG installation. 

First I get a &quot;c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: cannot find... &quot; for all the libs referenced to in the second line (-lsmpeg -ljpeg -lpng -lfreetype -ltremor). Since I for my first project do not need to work with media files, fonts or whatever, I left out the second line completely. But then it trips over the &amp;#039;lwiikeyboard&amp;#039; that it cannot find. Deleting also that one, gives me a range of different error messages: 


C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:68: undefined reference to `MOUSE_Init&amp;#039;
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:69: undefined reference to `KEYBOARD_Init&amp;#039;
c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wiievents.o): In function `PumpEvents&amp;#039;:
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:64: undefined reference to `KEYBOARD_GetEvent&amp;#039;
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:65: undefined reference to `MOUSE_GetEvent&amp;#039;

I am really stuck and don&amp;#039;t know what to do next. Do I need to reinstall DevKitPro? Perhaps by using SVN to check out??</description><link>http://forum.wiibrew.org/read.php?11,25893,25893#msg-25893</link><lastBuildDate>Mon, 20 Jul 2026 12:45:37 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,37639#msg-37639</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,37639#msg-37639</link><description><![CDATA[ [<a href="http://sourceforge.net/projects/devkitpro/files/portlibs" rel="nofollow">sourceforge.net</a>]]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Mon, 12 Oct 2009 03:16:39 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,37627#msg-37627</guid>
<title>having error compiling</title><link>http://forum.wiibrew.org/read.php?11,25893,37627#msg-37627</link><description><![CDATA[ problem with this line too<br /><br />-lsmpeg -ljpeg -lpng -lfreetype -ltremor \<br /><br />eroor:<br />c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.4.1/../../../../powerpc-eabi/bin/ld.exe: cannot find -ljpeg<br /><br />i dont know wy<br />i have devkitPPC r18 and libogc 1.8.0 already installed<br /><br />help<br />EDIT:<br />fixed ... Tremor,freetype and png,, but cant find ljpeg....]]></description>
<dc:creator>ahrimanes</dc:creator>
<category>Coding</category><pubDate>Mon, 12 Oct 2009 00:53:19 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,27694#msg-27694</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,27694#msg-27694</link><description><![CDATA[ Now that you have the late version of libogc and libSDL, you can play your SDL games with a keyboard (due to libwiikeyboard and/or SDL modifications). Nice for testing before remap inputs with wpad libs.]]></description>
<dc:creator>TheDrev</dc:creator>
<category>Coding</category><pubDate>Tue, 04 Aug 2009 17:44:59 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,26192#msg-26192</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,26192#msg-26192</link><description><![CDATA[ It worked!<br /><br />Although I have about a decade of programming experience, I have never really worked with C/C++ and compiled any C-code before, so this is all new to me. I followed the suggestions and now it finally compiles! I am also starting to understand what is going on here: C-source is compiled to object-code which is then installed in the library as archive files... Yes, yes!<br /><br />Thanks everyone for their patience! I better get some good resources on C++... I in any case already have Stroustrups book! :-)]]></description>
<dc:creator>petrander</dc:creator>
<category>Coding</category><pubDate>Thu, 23 Jul 2009 17:10:14 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,26152#msg-26152</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,26152#msg-26152</link><description><![CDATA[ that&#039;s right, it&#039;s really easy. find an svn client, download devkitpro svn. then type make and make install in the libogc folder. done.]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Thu, 23 Jul 2009 06:37:32 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,26061#msg-26061</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,26061#msg-26061</link><description><![CDATA[ libwiikeyboard.a needs to be under the libogc/lib/wii directory. I think you&#039;ll have to build libogc from the source to get libwiikeyboard.a, it&#039;s not part of the current devkitpro release.]]></description>
<dc:creator>scanff</dc:creator>
<category>Coding</category><pubDate>Thu, 23 Jul 2009 00:18:19 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,26044#msg-26044</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,26044#msg-26044</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>scanff</strong><br />libwiikeyboard.a is in the libogc SVN. You&#039;ll have to download and make it yourself for now. - [<a href="http://sourceforge.net/projects/devkitpro/develop" rel="nofollow">sourceforge.net</a>]</div></blockquote><br />What do you mean exactly? Do I have to take the libwiikeyboard.a-file and move it over to the proper location in the DevKitPro folder? Will this solve all problems?<br /><br />Thnx in advance...]]></description>
<dc:creator>petrander</dc:creator>
<category>Coding</category><pubDate>Wed, 22 Jul 2009 23:34:13 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,26024#msg-26024</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,26024#msg-26024</link><description><![CDATA[ libwiikeyboard.a is in the libogc SVN. You&#039;ll have to download and make it yourself for now. - [<a href="http://sourceforge.net/projects/devkitpro/develop" rel="nofollow">sourceforge.net</a>]]]></description>
<dc:creator>scanff</dc:creator>
<category>Coding</category><pubDate>Wed, 22 Jul 2009 22:15:09 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,26023#msg-26023</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,26023#msg-26023</link><description><![CDATA[ Hi Tantric,<br /><br />Thanks for the help. I was following the instructions on the wiki page, whereas I should have paid more attention to the project&#039;s home page itself. Thanks for pointing my nose in the right direction. I did what you recommended and I got a lot further, but am not quite there yet.<br /><br />Now the second LIB line in the make file is no longer causing any problems. The only thing left is &#039;lwiikeyboard&#039;.<br /><br /><pre class="bbcode">
../powerpc-gekko/bin/ld.exe: cannot find -lwiikeyboard</pre><br />What does &#039;lwiikeyboard&#039; do and does leaving it out has anything to do with the following error messages that then come up:<br /><br /><pre class="bbcode">
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:68: undefined reference to `MOUSE_Init&#039;
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:69: undefined reference to `KEYBOARD_Init&#039;
c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wiievents.o): In function `PumpEvents&#039;:
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:64: undefined reference to `KEYBOARD_GetEvent&#039;
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:65: undefined reference to `MOUSE_GetEvent&#039;</pre><br />On the <a href="http://wiibrew.org/wiki/Talk:SDL_Wii#Cannot_compile_the_template" rel="nofollow">wiki-talk page</a> I read something about a change in libocg causing exactly these error messages. Should I try to downgrade libocg to an earlier version?]]></description>
<dc:creator>petrander</dc:creator>
<category>Coding</category><pubDate>Wed, 22 Jul 2009 22:04:36 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,25909#msg-25909</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,25909#msg-25909</link><description><![CDATA[ You should be using the latest libogc from SVN, download the package of required libs (smpeg, etc), and use the latest Wii SDL from svn.<br /><br />If you&#039;re new to this you should be following these instructions, clearly posted on the front page of the SDL Wii site:<br /><br />[<a href="http://code.google.com/p/sdl-wii/" rel="nofollow">code.google.com</a>]<br /><br />Good luck!]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Wed, 22 Jul 2009 02:03:19 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,25897#msg-25897</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,25897#msg-25897</link><description><![CDATA[ Thanks for replying! I downloaded and installed the older version of SDL Wii, started a new project from scratch, changed the libs mentioned in the makefile, used the first example from GabberNL&#039;s tutorial, but alas:<br /><br /><pre class="bbcode">
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: cannot find -lsmpeg</pre><br />Me no understande... :-(]]></description>
<dc:creator>petrander</dc:creator>
<category>Coding</category><pubDate>Wed, 22 Jul 2009 00:12:30 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,25895#msg-25895</guid>
<title>Re: Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,25895#msg-25895</link><description><![CDATA[ Use an older version of SDL Wii, like SDL Wii 04-23-2009.zip on [<a href="http://code.google.com/p/sdl-wii/downloads/list" rel="nofollow">code.google.com</a>] OR update libogc.]]></description>
<dc:creator>Crayon</dc:creator>
<category>Coding</category><pubDate>Tue, 21 Jul 2009 23:54:32 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,25893,25893#msg-25893</guid>
<title>Can&#039;t get SDL for Wii to fly... :-(</title><link>http://forum.wiibrew.org/read.php?11,25893,25893#msg-25893</link><description><![CDATA[ Hi all,<br /><br />I recently discovered Wii Homebrew, set up the Homebrew channel with some sample apps, and I am excited to get started developing my own stuff. I am new to C++, but thanks to the WiiWizard for Visual Studio I had a good start and already got the "Hello World!" to show up on my Wii.<br /><br />Next I wanted to try some graphics and was interested in using SDL. So I downloaded SDL for Wii, and put all the proper files in the right folders according to instructions. I changed the following line in the makefile:<br /><br /><pre class="bbcode">
LIBS	:=	-lSDL_net -lSDL_ttf -lSDL_gfx -lSDL_mixer -lSDL_image -lSDL \
            -lsmpeg -ljpeg -lpng -lfreetype -ltremor \
            -lz -lfat -lwiiuse -lbte -logc -lm -lwiikeyboard \</pre>
, but whenever I build now, I keep on getting errors. It is as if the required libraries are missing from my DevkitPro / libOCG installation.<br /><br />First I get a "c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: cannot find... " for all the libs referenced to in the second line (-lsmpeg -ljpeg -lpng -lfreetype -ltremor). Since I for my first project do not need to work with media files, fonts or whatever, I left out the second line completely. But then it trips over the &#039;lwiikeyboard&#039; that it cannot find. Deleting also that one, gives me a range of different error messages:<br /><br /><pre class="bbcode">
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:68: undefined reference to `MOUSE_Init&#039;
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:69: undefined reference to `KEYBOARD_Init&#039;
c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wiievents.o): In function `PumpEvents&#039;:
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:64: undefined reference to `KEYBOARD_GetEvent&#039;
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:65: undefined reference to `MOUSE_GetEvent&#039;</pre><br />I am really stuck and don&#039;t know what to do next. Do I need to reinstall DevKitPro? Perhaps by using SVN to check out??]]></description>
<dc:creator>petrander</dc:creator>
<category>Coding</category><pubDate>Tue, 21 Jul 2009 23:45:48 +0200</pubDate></item>
</channel>
</rss>