Using Zig to build homebrew for Nintendo 3DS

https://blog.erikwastaken.dev/posts/2024-10-27-building-3ds-homebrew-with-zig.html

So, I had some fun this weekend!

12 Likes

Linker errors are frustrating, but I’m sure you’ll figure it out soon. My suggestion: devkitpro and by extension the binary tools you’re using are open source, so you should be able to use the build system to fetch/build a native binary in .zig-cache and use that instead of the system dependency. Then, once you figure out the linker issue you’ll have fully removed the system dependency on devkitpro!

They have buildscripts for less standard platforms, but judging by the code the tools are likely to assume the /opt/devkitpro, so I did not want to open that particular can of worms this weekend, but thanks for the advice!