SDL_mixer problem November 24, 2010 04:31PM | Registered: 13 years ago Posts: 4 |
#include SDL/SDL.h #include SDL/SDL_mixer.h^ I know there should be < and > signs, but adding them makes the text not show up in browser
Re: SDL_mixer problem November 24, 2010 06:05PM | Registered: 14 years ago Posts: 379 |
Re: SDL_mixer problem November 24, 2010 06:38PM | Registered: 13 years ago Posts: 4 |
c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wiivideo.o): In function `WII_VideoInit': c:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiivideo.c:279: multiple definition of `xfb' c:/devkitPro/libogc/lib/wii\libgrrlib.a(GRRLIB_core.o):(.sbss.xfb+0x0): first defined here 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:53: multiple definition of `main' c:/devkitPro/libogc/lib/wii\libjpeg.a(cjpeg.o):cjpeg.c:(.text.main+0x0): first defined hereI guess I'll have to stick to Asndlib. If anyone knows a better/simplier way to play sounds, please let me know.
Re: SDL_mixer problem November 24, 2010 07:39PM | Moderator Registered: 15 years ago Posts: 703 |
Re: SDL_mixer problem November 24, 2010 07:51PM | Registered: 13 years ago Posts: 4 |
LIBS := -lgrrlib -lfreetype -lpngu -lpng -ljpeg -lz -lfat LIBS += -lwiiuse LIBS += -libSDL_mixer -libSDL LIBS += -lbte -logc -lmIn two files (dumb.cpp and dumb.h) that are included in every other source files I've included
#include SDL/SDL.h #include SDL/SDL_mixer.h(like before no < and > in code above because it doesn't show up in browser)
SDL_Init(SDL_INIT_AUDIO); // without this line it spits out 600KB dol file, with this line there are errors mentioned above Mix_OpenAudio(22050,AUDIO_S16,2,4096);End code:
Mix_CloseAudio(); SDL_Quit();When it didn't give any errors, boot.dol didn't do anything when started on console and had 600KB size, like I mentioned.
LIBS := -lSDL_mixer -lSDL LIBS += -lgrrlib -lfreetype -lpngu -lpng -ljpeg -lz -lfat LIBS += -lwiiuse LIBS += -lbte -logc -lmStill not working.
c:/devkitPro/libogc/lib/wii\libgrrlib.a(GRRLIB_core.o):(.sbss.xfb+0x0): multiple definition of `xfb' c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wiivideo.o):c:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiivideo.c:279: first defined here c:/devkitPro/libogc/lib/wii\libSDL.a(SDL_wii_main.o): In function `main': SDL_wii_main.c:(.text.main+0x98): 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:60: undefined reference to `KEYBOARD_GetEvent'
Re: SDL_mixer problem November 24, 2010 09:17PM | Moderator Registered: 15 years ago Posts: 703 |
Re: SDL_mixer problem November 24, 2010 10:46PM | Registered: 13 years ago Posts: 4 |