Setting up Development Environment: Difference between revisions
Rewrite pretty much everything - add Windows 10 WSL instructions, describe Win32 installation, add instructions for non-Debian Linuxes and OS X, rewrite Examples section. |
No edit summary |
||
Line 2: | Line 2: | ||
* Install [http://devkitpro.org/ devkitARM]. If it's already installed, update it. | * Install [http://devkitpro.org/ devkitARM]. If it's already installed, update it. | ||
** On Windows, there's a [http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/ graphical installer]. | ** On Windows, there's a [http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/ graphical installer]. | ||
** On Linux / | ** On Unix-like platforms such as Linux/macOS, there's a [http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl/download Perl script]. Make sure you also select libctru and the 3ds examples when installing. | ||
* 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]]. | ||
==Windows== | ==Windows== | ||
devkitPro provides Win32-native precompiled versions of devkitARM which can be run directly on Windows. | |||
* [http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/ download the latest version of the graphical installer] from SourceForge and run it, following the instructions as you go. | * [http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/ download the latest version of the graphical installer] from SourceForge and run it, following the instructions as you go. | ||
* An Internet connection is required. | * An Internet connection is required. | ||
Line 42: | Line 16: | ||
** Windows 10 (post-Anniversary Update): Start -> devkitPro -> MSYS | ** Windows 10 (post-Anniversary Update): Start -> devkitPro -> MSYS | ||
==Linux / | Alternatively starting with Windows 10 Anniversary Update (Version 1607), the [https://msdn.microsoft.com/en-us/commandline/wsl/install_guide Windows Subsystem for Linux (WSL)] may also be used to run the Linux version of devkitARM. Due to the fact that GCC was originally designed for Unix-like platforms its use may yield performance and convenience improvements. For instructions on how to set up devkitARM under WSL refer to the ''Unix-like platforms'' section. | ||
==Unix-like platforms== | |||
Currently devkitPro provides precompiled versions of devkitARM for the following Unix-like platforms: Linux (x86/x64), macOS (universal binary). Note that Linux x64 binaries are usable under WSL. | |||
* First, you need to install curl so the installer can download the devkitARM packages, and you should also install Git - you'll need it to update ctrulib or share your code on GitHub, among many other things. | * First, you need to install curl so the installer can download the devkitARM packages, and you should also install Git - you'll need it to update ctrulib or share your code on GitHub, among many other things. | ||
* Find your way into a shell (eg. by opening a Terminal window), and follow the instructions for your OS: | * Find your way into a shell (eg. by opening a Terminal window), and follow the instructions for your OS: | ||
** Debian/Ubuntu/Linux Mint: <code>sudo apt-get install git curl</code> | ** Debian/Ubuntu/Linux Mint/WSL: <code>sudo apt-get install git curl</code> | ||
** Fedora/CentOS/RHEL: <code>sudo yum install git curl</code> | ** Fedora/CentOS/RHEL: <code>sudo yum install git curl</code> | ||
** openSUSE: <code>sudo zypper install git curl</code> | ** openSUSE: <code>sudo zypper install git curl</code> | ||
** | ** macOS: Download Git from [http://git-scm.com/download/mac] and install it. Curl is included with the OS. | ||
* Next, we need to download, make executable and run the devkitARM updater (don't worry, the updater is also the installer.) | * Next, we need to download, make executable and run the devkitARM updater (don't worry, the updater is also the installer.) | ||
Line 73: | Line 51: | ||
** To overwrite the (almost certainly outdated) examples installed by the devkitPro updater, type <code>git clone https://github.com/devkitPro/3ds-examples.git $DEVKITPRO/examples/3ds</code>. | ** To overwrite the (almost certainly outdated) examples installed by the devkitPro updater, type <code>git clone https://github.com/devkitPro/3ds-examples.git $DEVKITPRO/examples/3ds</code>. | ||
These can be built from the command line | These can be built from the command line. | ||
To start a new homebrew project from the <code>bash</code> shell, simply type the following (replacing <code>'''~/projects/my3dsproject'''</code> with the place you would like your project to be stored, with <code>~</code> meaning your HOME directory): | To start a new homebrew project from the <code>bash</code> shell, simply type the following (replacing <code>'''~/projects/my3dsproject'''</code> with the place you would like your project to be stored, with <code>~</code> meaning your HOME directory): |