Changes

Jump to navigation Jump to search
→‎Setup: updating for latest installer & libraries.
Line 1: Line 1:  
= Setup =
 
= Setup =
* Install [http://devkitpro.org/ devkitARM]. If it's already installed, update it. On Windows there's a GUI installer. On Linux/Mac there's a perl-script. Make sure you also select ctrulib when installing.
+
* Install [http://devkitpro.org/ devkitARM]. If it's already installed, update it. On Windows there's a GUI installer. On Linux/Mac there's a perl-script. Make sure you also select libctru and the 3ds examples when installing.
* Download the files in the [https://github.com/smealum/ctrulib/archive/master.zip ctrulib repository] (even though the library has already been installed) because the repository contains a 3DS project template and examples.
   
* Depending on the kind of homebrew you want to develop, you may be interested in installing and using additional libraries and tools which don't ship alongside devkitARM/libctru. A list of them can be found in [[Homebrew Libraries and Tools]].
 
* Depending on the kind of homebrew you want to develop, you may be interested in installing and using additional libraries and tools which don't ship alongside devkitARM/libctru. A list of them can be found in [[Homebrew Libraries and Tools]].
   Line 7: Line 6:  
* First get the devkitARM updater Perl script for Linux.
 
* First get the devkitARM updater Perl script for Linux.
 
* Run it with superuser privileges if your /opt directory is not marked world read-writeable.
 
* Run it with superuser privileges if your /opt directory is not marked world read-writeable.
* Get ctrulib from Smealum's GitHub repository, build and install it.
      
<pre>sudo apt-get install git curl
 
<pre>sudo apt-get install git curl
 
curl -L http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl/download -o devkitARMupdate.pl
 
curl -L http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl/download -o devkitARMupdate.pl
 
chmod +x ./devkitARMupdate.pl
 
chmod +x ./devkitARMupdate.pl
sudo -s
+
sudo ./devkitARMupdate.pl /opt/devkitpro
./devkitARMupdate.pl /opt/devkitpro
  −
cd /opt/devkitpro
  −
git clone https://github.com/smealum/ctrulib.git
  −
cd ctrulib/libctru
  −
export DEVKITPRO=/opt/devkitpro
  −
export DEVKITARM=$DEVKITPRO/devkitARM
  −
make
  −
make install
  −
exit
   
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
 
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
 
echo "export DEVKITARM=$DEVKITPRO/devkitARM" >> ~/.bashrc
 
echo "export DEVKITARM=$DEVKITPRO/devkitARM" >> ~/.bashrc

Navigation menu