| ||
| Views: 2,049,572 | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 10-29-25 06:48 AM |
| Guest: | ||
| 0 users reading How to build homebrew for the 3DS | 1 bot |
| Main - Getting started - How to build homebrew for the 3DS | Hide post layouts | New reply |
| Arisotura |
| ||
|
Member blarg Level: 30
Posts: 4/184 EXP: 158235 Next: 7634 Since: 10-27-14 From: France Last post: 2990 days ago Last view: 2900 days ago |
Now let's get to the fun part!
3DS homebrew is programmed in C or C++. We expect that you already have good knowledge of these languages. 1. Things you will need • devkitPro • makerom (for building a Gateway-compatible .3ds file). Windows users can grab a build here. • RSF file for Gateway 2. Setup Install devkitPro. If it's already installed, update it to the last version. The installer will install ctrulib and set everything up automatically. 3. Making homebrew You can build from the examples that come with ctrulib. The examples aren't provided in devkitPro, but you can obtain them from the ctrulib repository on Github. • app_launch: demonstrates how to launch another app (in this case, the EUR Camera app) • gpu: demonstrates how to render 3D geometry with the GPU • mic: demonstrates how to read sound from the microphone • mvd: demonstrates how to use hardware video decoding on the New 3DS • sdmc: demonstrates how to access files on the SD card (TODO: documentation of the API!) 4. Building homebrew for distribution To build your homebrew, it works the same way as for building ctrulib. Open a terminal, browse to your homebrew's folder and run make. This will build a .elf file and a .3dsx file. The .3dsx file is meant for oncoming homebrew launchers. To build a Gateway-compatible .3ds file, an extra step is needed. You need to strip the .elf file and use makerom on it (with the provided RSF file). Here are commands to do it: arm-none-eabi-strip [ELF file]
makerom -f cci -o [.3ds file] -rsf [RSF file] -target d -exefslogo -elf [ELF file] -icon [icon file] -banner [banner file] Have fun! ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
| ILOVEPIE |
| ||
|
Newcomer Normal user Level: 3 Posts: 1/1 EXP: 63 Next: 65 Since: 11-19-14 Last post: 3996 days ago Last view: 3973 days ago |
Also just a note, if you want to include files like images or sounds for use with your homebrew you can append them in a zip file to the end of the 3dsx executable, that way it won't clutter up the SD card. Just good etiquette.
you can do this by doing copy /B program.3dsx + files.zip programwithzip.3dsx |
| filfat |
| ||
|
Newcomer CEO @ filfat Studios AB Level: 7 Posts: 4/8 EXP: 1429 Next: 19 Since: 11-27-14 Last post: 3813 days ago Last view: 3660 days ago |
Posted by ILOVEPIE Wow, thanks didn't know about that ![]() ____________________ CEO @ filfat Studios AB https://www.filfatstudios.com |
| Tcm0 |
| ||
|
Newcomer Normal user Level: 7 Posts: 3/6 EXP: 924 Next: 524 Since: 12-29-14 Last post: 3887 days ago Last view: 3348 days ago |
Thank you. This helped me building "Guess the Number" for the Gateway. |
| Korin |
| ||
|
Newcomer Normal user Level: 3 Posts: 1/1 EXP: 62 Next: 66 Since: 01-12-15 Last post: 3942 days ago Last view: 3936 days ago |
I'm liking this simple guide, it was helpful for getting up to speed with the homebrew scene. I was having difficulty working out what I needed for makerom to function properly. |
| Tjessx |
| ||
|
Newcomer Normal user Level: 3 Posts: 1/1 EXP: 62 Next: 66 Since: 02-08-15 Last post: 3915 days ago Last view: 3915 days ago |
Just created an account to compliment this guide, this was very helpfull |
| WhoAmI? |
| ||
|
Newcomer Normal user Level: 4
Posts: 2/2 EXP: 174 Next: 105 Since: 05-25-15 Last post: 3810 days ago Last view: 3763 days ago |
Thank you! |
| phase |
| ||
|
Newcomer Normal user Level: 3
Posts: 1/1 EXP: 60 Next: 68 Since: 09-10-15 Last post: 3702 days ago Last view: 3320 days ago |
Doing
make just stalls my console forever. It doesn't look like it's running any commands or anything.
Each time I do make it just stalls. If I quit it and try a different file, it does the same thing. Make works on my other projects, and DevkitPro is installed, so I don't know what the problem could be. ____________________ |
| Caton |
| ||
|
Newcomer Normal user Level: 5 Posts: 2/3 EXP: 313 Next: 216 Since: 11-15-15 Last post: 3585 days ago Last view: 3585 days ago |
can you load\build files from 3ds rom filesystem?
I plan to load files from the 3ds rom filesystem. |
| gudenau |
| ||
|
Member Normal user Level: 14
Posts: 3/34 EXP: 12132 Next: 939 Since: 07-29-15 From: /dev/random Last post: 3452 days ago Last view: 3398 days ago |
You should add stuff for CIA builds, the rxTools/Pasta/Cake/reiNAND/etc users need love to! |
| gudenau |
| ||
|
Member Normal user Level: 14
Posts: 4/34 EXP: 12132 Next: 939 Since: 07-29-15 From: /dev/random Last post: 3452 days ago Last view: 3398 days ago |
Posted by phase Just use Command Prompt. |
| anonymous |
| ||
|
Newcomer Normal user Level: 3 Posts: 1/1 EXP: 60 Next: 68 Since: 09-04-15 Last post: 3604 days ago Last view: 3587 days ago |
What do I use to type the command 'make'? |
| Garcia98 |
| ||
|
Newcomer Normal user Level: 5 Posts: 3/3 EXP: 314 Next: 215 Since: 10-10-15 Last post: 3603 days ago Last view: 3525 days ago |
Posted by anonymous Uh, the keyboard? |
| Main - Getting started - How to build homebrew for the 3DS | Hide post layouts | New reply |
|
Page rendered in 0.020 seconds. (2048KB of memory used) MySQL - queries: 28, rows: 90/90, time: 0.006 seconds.
Acmlmboard 2.064 (2018-07-20)© 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |