Closed knerlington closed 5 months ago
No offense, but you really need to start over. You are confusing things and have likely broken it more as a result. You have tried to use the SDL library for Linux (with the CMAKE_PREFIX_PATH additions) and this will not work.
First of all, do not use sudo with cmake, this only ever makes sense when installing things, but here this will mess up file permissions and such.
You currently need to install sdl1.2 for wii, I have not yet changed the code to use sdl2 for wii (only in dev branch, but this is currently not usable). Use dkp-pacman -S --needed wii-sdl
.
Use a clean build directory and repository checkout. Then
$DEVKITPRO/portlibs/wii/bin/powerpc-eabi-cmake -B build-wii . -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build-wii
cmake --install build-wii --prefix dist-wii
This should have created a distribution with dol
file in dist-wii
directory.
From a two day annoyance to a few seconds for success! I thought everything you needed for Wii building was included in the predefined dkp-pacman group "wii-dev". Did not know there was a wii-sdl group so this makes sense.
I actually have to use sudo in most cases even when I use cmake because of how permissions for my user in my Kali installation are configured. Without it I would not be able to compile successfully.
Thank you so much for your help. Now for the fun stuff!
I'm having tons of SDL issues trying to compile this for Wii. First of all I'm confused over whether or not SDL2 can be used for homebrew platforms at all. The file Platform-helpers.cmake hints at only 1.2 being compatible in this case.
Using Ninja as the generator or not and leaving the CMakeLists.txt as it comes from the repo, SDL_LIBRARY and SDL_INCLUDE_DIR aren't found:
On Kali I have libsdl1.2-dev, libsdl1.2debian installed.
For SDL to be found I have to add the following to CMakeLists.txt:
But then the compilation fails when the project attempts to statically link OpenJazz.elf to the dynamic libSDL.so:
Sorry for tons of updates on the issue, but I'm really struggling here.
EDIT: Is there a non-static build option? Could it be my devkitpro setup perhaps? When generating the build files I get this: