Repository navigation
Building
How to build FTB from source on Windows.
| Tool | Notes |
|---|---|
PowerShell 7 (pwsh) |
Every script in .scripts/ needs it |
MSYS2 at C:\msys64
|
The scripts run make in an MSYS2 login shell |
| devkitPro in that MSYS2 | devkitARM, libctru, citro3d, and the portlibs 3ds-curl, 3ds-mbedtls, 3ds-jansson, 3ds-zlib
|
make, xxd, zip
|
MSYS2 packages |
makerom 0.18.4 and bannertool
|
In C:\msys64\usr\local\bin. Must be makerom 0.18.4, see below. |
Built and tested with devkitARM r68 (gcc 16.1), libctru 2.7.0, citro3d 1.7.1, 3ds-curl 8.4.0, 3ds-mbedtls 2.28.8, jansson 2.13, and zlib 1.3.1.
FTB packs its version into the CIA title version as major*10000 + minor*100 + patch (so 0.0.37 is
37), because makerom's own major/minor/micro fields cap the patch at 15. makerom 0.19.0 drops part
of that value (Project_CTR #169): v0.0.16
shipped as title version 0, and consoles refused the update (AM 0xD8E08027). Do not upgrade makerom
until that is fixed. build.ps1 checks the built CIA's ticket and TMD versions and fails if they are
wrong.
git clone --recurse-submodules https://github.com/fosterbarnes/ftb.git
buildtools/ is Steveice10's build system as a submodule. Never edit it; override things from the
Makefile.
pwsh -File .scripts\build.ps1 # incremental
pwsh -File .scripts\build.ps1 -Clean # make clean first
build.ps1 checks the version, checks that every tool is present, runs make in MSYS2, and lists
the outputs:
| Output | Path |
|---|---|
| CIA | output\3ds-arm\FTB.cia |
| 3DSX | output\3ds-arm\3ds\FTB\FTB.3dsx |
| Cart image | output\3ds-arm\FTB.3ds |
Zip (all of the above plus servefiles) |
output\FTB.zip |
-
Never run
make -j.buildtools/make_basedoes not orderscreen.cafter the shader header it generates, so parallel clean builds race.build.ps1runs make serially. -
Run make through MSYS2. Plain PowerShell has no devkitPro environment.
build.ps1does this for you. -
SMDH changes need a forced rebuild. The icon file (
icon.icn) does not depend on theMakefile, so after changingICON_FLAGSor the title strings runmake -W meta/icon_3ds.pngin MSYS2, orbuild.ps1 -Clean. -
Warnings are errors in spirit. Every C and C++ file builds with zero warnings under the
Makefile's flags (-Wall -Wextra -Wformat=2 -Wimplicit-fallthrough). Keep it that way. -
Version limits. Major 0-5, minor and patch 0-99;
build.ps1rejects anything else.
There is no automated test suite. Test on real hardware. Never test a destructive system action (system title deletes, NAND writes) on a console you care about; check only that the System Changes lock blocks it.
Home · README · Releases · Something wrong on this page? Open an issue
Get started
Screens
- CIA Installer
- Title Manager
- SD File Browser
- 3DS Web Server
- FTP Server
- Remote Install
- FBI Legacy
- Settings
Reference
Help
Contributing