Changes

Jump to navigation Jump to search
2,428 bytes added ,  00:08, 29 October 2013
m
no edit summary
{{Archive box|[[/Archive 1]]}}
 
{{notice|'''This page is reserved for feature requests, and general discussion about the page itself. Please ask questions on the [http://forum.wiibrew.org WiiBrew Forums], and please report bugs on the official [http://code.google.com/p/sdl-wii/issues/ Google Code] site.'''}}
__TOC__
: Someone should write a more thorough tutorial! There's still lots of SDL stuff people could port. --[[User:Tantric|Tantric]] 15:34, 24 April 2009 (UTC)
:: As someone who just finished re-writing a great portion of SDL-Wii I think you're a great candidate! ;) Seriously though I would love to see a good tutorial or even just an API reference written. I am madly reading the main SDL tutorial in the hope of figuring out if I can attempt to port the Intellivision emulator jzInTV to the Wii, a programme that thankfully already uses SDL. My biggest problem, aside from never using SDL before, is emulation of the 12+ button keypad. Anyway bring on a good tutorial / reference it would certainly help me in my quest - if I ever really start it. [[User:Ensign R|Ensign R]] 02:07, 1 May 2009 (UTC)
 
== Image ==
 
Hello,
 
I just managed SDL to work on my wii, and i've made a little program with controller input. I've made it so, that it will show a red background when i push on the right button. What i want is to show a photo when i press the right button. How can i do that? Do I need to include SDL_image? And what's the function i have to use?
 
Thanks, [[User:GabberNL|GabberNL]] 14:25, 28 April 2009 (UTC)
== __static_initialization_and_destruction_0 error ==
When my program is about to begin linking it gets this error:
<pre>File:main.o: In function `__static_initialization_and_destruction_0':
j:/D0g_Engine/source/main.cpp:11: undefined reference to `Timer::Timer()'
main.o: In function `SDL_main':
j:/D0g_Engine/source/main.cpp:22: undefined reference to `cObjectController::cObjectController()'
j:/D0g_Engine/source/main.cpp:25: undefined reference to `initInput()'
j:</D0g_Engine/source/mainpre>And so on...cpp:31: undefined reference to `cObjectController::create_object(cBaseObject*  So in short, int, int, bool)basically every function/class I've defined doesn'j:/D0g_Engine/source/main.cpp:62: undefined reference t appear to `cObjectController::execute()'j:/D0g_Engine/source/main.cpp:68: undefined reference exist to `cFont::draw(intthe linker, int)'this code compiles fine for Windows so is there a setting in the makefile or something else I missed to avoid this? jThanks in advance, [[User:/D0g_Engine/source/main.cppDoogie|Doogie]] 10:72: undefined reference to `cGFXCore::render31, 3 May 2009 (UTC)'j:/D0g_Engine/source/main== Cannot compile the template == I copied the template and all the sdl includes with the libs and dependencies into the libogc folder.cpp:75: undefined reference I tried to `Timercompile it using programmers notepad. This is the output::get_ticks()'j:/D0g_Engine/source/main<pre>> "make" template.cpp:44: undefined reference to `Timer::start()'c j:/D0g_Engine/source/mainlinking .cpp:45: undefined reference to `cGFXCore::reset()'j:/D0g_Engine/source/main.cpp:48: undefined reference to `scanInput()'j:/D0g_Engine/source/main.cpp:62: undefined reference to `cObjectController::execute()'j:/D0g_Engine/source/mainSDL_template.cpp:76: undefined reference to `Timer::get_ticks()'elfobjects.o: In function `objTest::frame()':jc:/D0g_Engine/source/objects.cpp:11: undefined reference to `key_check'j:devkitPro/D0g_Enginelibogc/sourcelib/objectswii\libSDL.cpp:11: undefined reference to `key_check'objectsa(SDL_wii_main.o): In function `objTestmain':jC:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/D0g_Enginesrc/sourcemain/objects.cpp:3: undefined reference to `cBaseObject::cBaseObject()'j:wii/D0g_Engine/source/objectsSDL_wii_main.cppc:468: undefined reference to `cBaseObject::initBasic()MOUSE_Init'j:/D0g_Engine/source/objects.cpp:7: undefined reference to `cBaseObject::setSprite(cSprite*)'jC:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/D0g_Enginesrc/source/objects.cpp:8: undefined reference to `cBaseObject::~cBaseObject()'j:main/D0g_Enginewii/source/objectsSDL_wii_main.cppc:369: undefined reference to `cBaseObject::cBaseObject()KEYBOARD_Init'j:/D0g_Engine/source/objects.cpp:4: undefined reference to `cBaseObject::initBasic()'jc:/D0g_Engine/source/objects.cpp:7: undefined reference to `cBaseObject::setSprite(cSprite*)'j:devkitPro/D0g_Enginelibogc/sourcelib/objectswii\libSDL.cpp:8: undefined reference to `cBaseObject::~cBaseObjecta()'objectsSDL_wiievents.o:(.rodata._ZTV7objTest[vtable for objTest]+0x8): undefined reference to `cBaseObject::initBasic()'objects.o:(.rodata._ZTV7objTest[vtable for objTest]+0xc): undefined reference to `cBaseObject::setSprite(cSprite*)'objects.o:(.rodata._ZTV7objTest[vtable for objTest]+0x14): undefined reference to `cBaseObject::draw(int, int, int)'objects.o:(.rodata._ZTV7objTest[vtable for objTest]+0x18): undefined reference to `cBaseObject::execute()'objects.o:(.rodata._ZTI7objTest[typeinfo for objTest]+0x8): undefined reference to `typeinfo for cBaseObject'userload.o: In function `LoadGame()PumpEvents':jC:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/D0g_Enginesrc/sourcevideo/userloadwii/SDL_wiievents.cppc:1364: undefined reference to `cAnimatedSprite::cAnimatedSprite(char, char const*, int)KEYBOARD_GetEvent'jC:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/D0g_Enginevideo/sourcewii/userloadSDL_wiievents.cppc:2065: undefined reference to `cFont::cFont(char*, int, char*)MOUSE_GetEvent
collect2: ld returned 1 exit status
make[1]: *** [/j/D0g_Engine/d0g.elf] Error 1
"make": *** [wii_build] Error 2
make[1]: *** [/c/devkitPro/examples/wii/SDL_template/SDL_template.elf] Error 1 "make": *** [build] Error 2 > Process Exit Code: 2 > Time Taken: 00:02</pre> That question was asked on my SDL Tutorial talk page. I also had that error so I reinstalled Devkit with the older SDL version. How do I update Libogc to the SVN version the right way? So without having this error? [[User:GabberNL|GabberNL]] 17:02, 18 June 2009 (UTC):Just do a checkout with this path: https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libogc<br />It's explain here:https://sourceforge.net/scm/?type=svn&group_id=114505 -[[User:Crayon|Crayon]] 18:45, 18 June 2009 (UTC) :Very important is order of libs. If wiikeyboard is before SDL it does not workTry this:-lSDL_ttf -lSDL_gfx -lSDL_mixer -lsmpeg -lSDL_image -lfreetype -ljpeg -lpng -lSDL -lz -lfat -lwiiuse -lwiikeyboard -lbte -logc -lm-[[User:Slappy|Slappy]] <span style="font-size: smaller;" class="autosigned">—Preceding undated comment added 12:08, 31 July 2009 (UTC).</span><!--Template:Undated--> == SDL_mixer not in shortthe root makefile ==Had to make / make install it separately - caused me some pain until I figured it out.[[User:Madmanguruman|Madmanguruman]] 02:07, basically every function28 July 2009 (UTC) == couple of things == 1) I'm getting an error with devkitPPC_r17-i686-linux.tar.bz2 and SDL Wii 08-04-2009.zip/devkitPPC/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/include/stdint.h:244: error: conflicting types for 'uintptr_t'/libogc/include/class SDL/SDL_config_minimal.h:39: error: previous declaration of 'uintptr_t' was hereI commented out that declaration in SDL since they are identical2) the article says to include -lwiikeybord but that library does not seem to be part of latest released libogc (171a?)3) sdl-config would really be great to have. I can share what I've defined doesnm using, although I don't appear include a lot of libraries mentioned in Usage section[[User:Spec|Spec]] 02:38, 13 August 2009 (UTC) == SDL_Mixer: Mix_PlayMusic playback is very slow ==Hi. I have a strange bug with the SDL_Mixer. When I use the couple of fonction Mix_LoadMUS and Mix_PlayMusic with audio files (Wav or MP3) the SDL lib behaves strangely: All played musics are slowed down and if I whant to exist get a "good" result I have to increase manualy the linkerpitch of my audio files (+35%)... Someone have an idea ?--[[User:BScrk|BScrk]] <span style="font-size: smaller;" class="autosigned">—Preceding undated comment added 02:50, 21 October 2009 (UTC).</span><!--Template:Undated-->: That's not a bug. Your files should be encoded to 32khz or 48khz, this the audio port code compiles doesn't handle conversion. --[[User:Tantric|Tantric]] 04:59, 21 October 2009 (UTC):: Indeed, it's work fine using 32Khz encoding ! Thank you --[[User:BScrk|BScrk]] 22 October 2009 == sdl_gfx == Any chance the sdl_gfx library will ever be fixed for Windows so Wii? My program relies heavily on the primitive drawing functions and I'm getting dumps. *sigh* if only sdl_draw supported triangles... [[User:Aeron|Aeron]] 03:20, 6 March 2010 (UTC)  == This Tutorial Is Broken ==This tutorial no longer seems to work. I'm getting an assortment of errors. Could someone please add version number or file links that are compatible with this tutorial? <small>—Preceding unsigned comment added by [[User:Wiibrew111|Wiibrew111]] ([[User talk:Wiibrew111|talk]] • [[Special:Contributions/Wiibrew111|contribs]]) 20:39, 26 May 2012 (CEST)</small>I noticed that in the WII SDL page (http://wiibrew.org/wiki/SDL_Wii ) the gamecube controller support is not documented. == Gamecube controller support== It is there a setting not documented, but from the code it seems that SDL Wii should support also the gamecube controllers which should be mapped to SDL joystick 4-7 (Wii controllers are mapped to 0-3), the stick axes and the pad are associated as in the makefile or something else Wii classsic controller and the buttons are with this order: BUTTON 0 = A,BUTTON 1 = B,BUTTON 2 = X,BUTTON 3 = Y,BUTTON 4 = Z,BUTTON 5 = R,BUTTON 6 = L,BUTTON 7 = START I can not say if the support works since I missed do not have a gamecube controller to avoid this?test [[User:Oibaf|Oibaf]] 1 Jan 2013 (UTC) There were some bugs in the code. Not it is fixed. [[User:Oibaf|Oibaf]] 28 Oct 2013 (UTC)
295

edits

Navigation menu