Changes

Jump to navigation Jump to search
updating build instructions
Line 18: Line 18:     
= Building the examples =
 
= Building the examples =
3DS examples are still being created. Currently there are a few examples in the separate ctrulib download under the "examples" folder.
+
3DS examples are still being created. Currently there are a few examples distributed by the devkitPro supplied updaters - these can be found in $DEVKITPRO/examples/3ds and the [https://github.com/devkitPro/3ds-examples 3ds examples repository]. There are now too many to list here in detail.
 +
 
 +
These can be built from the command line - on Windows devkitPro supply msys which can be started using the msys shortcut in the devkitPro Start Menu entry or by browsing to <installdir>\devkitPro\msys and double clicking the msys.bat file found there. This will launch a bash shell. On Linux/OSX you can just open your system supplied shell.
 +
 
 +
To start a new homebrew project from here simply type
 +
<pre>cp -r $DEVKITPRO/examples/3ds/templates/application ~/projects/my3dsproject
 +
cd ~/projects/my3dsproject
 +
make
 +
</pre> To run it on your 3DS start up The Homebrew Launcher, press the Y button to open the netloader then
 +
<pre>$DEVKITARM/bin/3dslink my3dsproject.3dsx</pre>
 +
 
 +
Hopefully you'll see it boot on the 3DS.
 +
 
 +
Obviously you can add $DEVKITARM/bin to your PATH from the shell then simply run 3dslink as normal. You shouldn't add this permanently - it could potentially interfere with other tools.
   −
* '''arm11u:''' simple homebrew example
  −
* '''sdmc:''' demonstrates how to access files on the SD card
  −
* '''mic:''' demonstrates how to read sound from the microphone
  −
* '''gpu:''' demonstrates how to render 3D geometry with the GPU
      
==Building the examples on Linux with Netbeans==
 
==Building the examples on Linux with Netbeans==

Navigation menu