Changes

1,068 bytes added ,  20:22, 1 June 2009
Line 15: Line 15:  
:::So it compiles with no problems. Thats good. What happens on the Wii? Does it give a code dump? Maybe you could paste here the source code so I can look into it. That would be much easier. [[User:GabberNL|GabberNL]] 11:06, 28 May 2009 (UTC)
 
:::So it compiles with no problems. Thats good. What happens on the Wii? Does it give a code dump? Maybe you could paste here the source code so I can look into it. That would be much easier. [[User:GabberNL|GabberNL]] 11:06, 28 May 2009 (UTC)
 
::::When pressing a button on the Wiimote nothing happen, so no code dump. When I change WPAD_Buttons''Held'' to WPAD_Buttons''Down'' in my code it stops working, so my code is should be fine. I'm going to try with simpler code, just in case it's something elsewhere in the code that as an effect on the Wiimote. -[[User:Crayon|Crayon]] 12:54, 28 May 2009 (UTC)
 
::::When pressing a button on the Wiimote nothing happen, so no code dump. When I change WPAD_Buttons''Held'' to WPAD_Buttons''Down'' in my code it stops working, so my code is should be fine. I'm going to try with simpler code, just in case it's something elsewhere in the code that as an effect on the Wiimote. -[[User:Crayon|Crayon]] 12:54, 28 May 2009 (UTC)
 +
 +
== Cannot compile the template ==
 +
 +
I copied the template and all the sdl includes with the libs and dependencies into the libogc folder. I tried to compile it using programmers notepad.
 +
 +
This is the output:
 +
 +
> "make"
 +
template.c
 +
linking ... SDL_template.elf
 +
c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wii_main.o): In function `main':
 +
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:68: undefined reference to `MOUSE_Init'
 +
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:69: undefined reference to `KEYBOARD_Init'
 +
c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wiievents.o): In function `PumpEvents':
 +
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:64: undefined reference to `KEYBOARD_GetEvent'
 +
C:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:65: undefined reference to `MOUSE_GetEvent'
 +
collect2: ld returned 1 exit status
 +
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
73

edits