https://github.com/phoenixr-codes/compiling-lua-for-3ds
Compiling Lua for 3DS
https://github.com/phoenixr-codes/compiling-lua-for-3ds
3ds 3ds-homebrew lua
Last synced: 23 days ago
JSON representation
Compiling Lua for 3DS
- Host: GitHub
- URL: https://github.com/phoenixr-codes/compiling-lua-for-3ds
- Owner: phoenixr-codes
- Created: 2025-03-13T22:37:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T19:10:10.000Z (about 1 year ago)
- Last Synced: 2025-12-28T21:18:07.476Z (6 months ago)
- Topics: 3ds, 3ds-homebrew, lua
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compiling Lua for the Nintendo 3DS
> [!IMPORTANT]
> ... should've known that Lua is already present in devkitPro's portlibs 🫠. But with this method you have control over the version you want to use in your project.
## Requirements
- [devkitPro toolchain][]
- [Lua source code][]
## Steps
1. Download `lua.patch` present in this repository.
2. Apply the patch within the installed Lua directory: `patch -p1 < lua.patch`.
4. Built with `make`.
5. Install with `sudo make install`. You might need to use `sudo` as it installs to `$DEVKITPRO/portlibs/3ds`. You can change this behavior by modifying the `Makefile`.
Assuming you are using the devkitPro `Makefile` template located at `$DEVKITPRO/examples/3ds/templates/application/Makefile` modify it to link the Lua library.
[devkitPro toolchain]: https://devkitpro.org/
[Lua source code]: https://lua.org/download.html