I've run into some difficulties with SDL 1.2 for Wii, and I'm unsure if it's a bug or if I'm missing something. I'm working on updating and improving the SuperTux Wii port here: https://github.com/DeltaResero/SuperTux-Wii, but I noticed that SDL now unexpectedly requires OpenGX, even though I'm not using OpenGL.
Originally, I thought I'd missed guarding some OpenGL methods, so I added -lopengx to the build to bypass the errors. This didn't resolve the underlying issue and has now resulted in linker errors like "undefined reference to SYS_Report", which I traced back to a recent OpenGX update (debug: use SYS_Report instead of fprintf() by @mardy in #55). While this was temporarily fixed by including OpenGL, the core problem remains that I don't want OpenGL in the project. I'm building with the NOOPENGL flag, yet I still encounter errors like:
Code: Select all
/opt/devkitpro/portlibs/wii/lib/libSDL.a(SDL_ogc_video.o): in function `SDL_OGC_GL_MakeCurrent': undefined reference to `ogx_initialize'
I suspect this issue stems from the SDL commit that added OpenGL support via OpenGX (#75) back in July. It seems OpenGX has become a dependency of SDL’s video functionality, even with OpenGL disabled. Is this a bug in the SDL 1.2 Wii build process, or am I missing something that would fully exclude OpenGX when OpenGL is off?
Any insights would be appreciated!