Closed Quadraxis-v2 closed 11 months ago
The pkg-config file for sdl-mixer is probably missing some linker flag.
Not seeing that here. What's the output of /opt/devkitpro/portlibs/wii/bin/powerpc-eabi-pkg-config --libs sdl_mixer
Not seeing that here. What's the output of
/opt/devkitpro/portlibs/wii/bin/powerpc-eabi-pkg-config --libs sdl_mixer
-L/opt/devkitpro/portlibs/wii/lib -lSDL_mixer -mrvl -mcpu=750 -meabi -mhard-float -L/opt/devkitpro/portlibs/ppc/lib -lSDLmain -lSDL -L/opt/devkitpro/libogc/lib/wii -laesnd -lwiiuse -lbte -lwiikeyboard -lfat -logc -lm -mrvl -mcpu=750 -meabi -mhard-float -L/opt/devkitpro/portlibs/wii/lib -L/opt/devkitpro/portlibs/ppc/lib -lSDLmain -lSDL -L/opt/devkitpro/libogc/lib/wii -laesnd -lwiiuse -lbte -lwiikeyboard -lfat -logc -lm -lm -L/opt/devkitpro/portlibs/ppc/lib -logg -lvorbisfile -lvorbis -lm -lmad -lmodplug -lstdc++ -lm
And these are my flags
Those flags are quite a bit different from mine. Have you rebuilt these libs manually? You can replace them with devkitPro supplied libs using `pacman -S wii-sdl-libs
-L/opt/devkitpro/portlibs/wii/lib -L/opt/devkitpro/portlibs/ppc/lib -L/opt/devkitpro/libogc/lib/wii -L/opt/devkitpro/portlibs/wii/lib -L/opt/devkitpro/portlibs/ppc/lib -L/opt/devkitpro/libogc/lib/wii -L/opt/devkitpro/portlibs/ppc/lib -lSDL_mixer -lmodplug -lstdc++ -lm -lmad -lvorbisfile -lvorbis -lm -logg -mrvl -mcpu=750 -meabi -mhard-float -lSDLmain -lSDL -laesnd -lwiiuse -lbte -lwiikeyboard -lfat -logc -lm -mrvl -mcpu=750 -meabi -mhard-float -lSDLmain -lSDL -laesnd -lwiiuse -lbte -lwiikeyboard -lfat -logc -lm
You'll notice that several of the libs you've specified manually are already included.
also what's the output of find /opt/devkitpro -name libSDL.a
?
Hmm, OK. I've replicated this on windows. Let me see what I can do.
This is unfortunately a bug in the msys2 supplied pkg-config, see https://github.com/pkgconf/pkgconf/issues/322
While that's awaiting a fix you can just add -logg to the LIBS line after the pkg-config call.
Hi, when I call
Mix_Init()
anywhere in the code I get one hell of a linking error. This didn't happen several months ago, could this be related to this similar problem? Other functions from SDL_mixer work fine.