<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.3dbrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cpasjuste</id>
	<title>3dbrew - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.3dbrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cpasjuste"/>
	<link rel="alternate" type="text/html" href="https://www.3dbrew.org/wiki/Special:Contributions/Cpasjuste"/>
	<updated>2026-04-18T13:31:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Setting_up_Development_Environment&amp;diff=13185</id>
		<title>Setting up Development Environment</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Setting_up_Development_Environment&amp;diff=13185"/>
		<updated>2015-09-02T08:21:44Z</updated>

		<summary type="html">&lt;p&gt;Cpasjuste: /* Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Setup =&lt;br /&gt;
* Install [http://devkitpro.org/ devkitARM]. If it&#039;s already installed, update it. On Windows there&#039;s a GUI installer. On Linux/Mac there&#039;s a perl-script. Make sure you also select ctrulib when installing.&lt;br /&gt;
* 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.&lt;br /&gt;
* Depending on the kind of homebrew you want to develop, you may be interested in installing and using additional libraries and tools which don&#039;t ship alongside devkitARM/libctru. A list of them can be found in [[Homebrew Libraries and Tools]].&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
* First get the devkitARM updater Perl script for Linux.&lt;br /&gt;
* Run it with superuser privileges if your /opt directory is not marked world read-writeable.&lt;br /&gt;
* Get ctrulib from Smealum&#039;s GitHub repository, build and install it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install git curl&lt;br /&gt;
curl -L http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl/download -o devkitARMupdate.pl&lt;br /&gt;
chmod +x ./devkitARMupdate.pl&lt;br /&gt;
sudo -s&lt;br /&gt;
./devkitARMupdate.pl /opt/devkitpro&lt;br /&gt;
cd /opt/devkitpro&lt;br /&gt;
git clone https://github.com/smealum/ctrulib.git&lt;br /&gt;
cd ctrulib/libctru&lt;br /&gt;
export DEVKITPRO=/opt/devkitpro&lt;br /&gt;
export DEVKITARM=$DEVKITPRO/devkitARM&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
exit&lt;br /&gt;
echo &amp;quot;export DEVKITPRO=/opt/devkitpro&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
echo &amp;quot;export DEVKITARM=$DEVKITPRO/devkitARM&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
echo &amp;quot;export PATH=$PATH:$DEVKITARM/bin&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Building the examples =&lt;br /&gt;
3DS examples are still being created. Currently there are a few examples in the separate ctrulib download under the &amp;quot;examples&amp;quot; folder.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;arm11u:&#039;&#039;&#039; simple homebrew example&lt;br /&gt;
* &#039;&#039;&#039;sdmc:&#039;&#039;&#039; demonstrates how to access files on the SD card&lt;br /&gt;
* &#039;&#039;&#039;mic:&#039;&#039;&#039; demonstrates how to read sound from the microphone&lt;br /&gt;
* &#039;&#039;&#039;gpu:&#039;&#039;&#039; demonstrates how to render 3D geometry with the GPU&lt;br /&gt;
&lt;br /&gt;
==Building the examples on Linux with Netbeans==&lt;br /&gt;
* Go to File-&amp;gt;New Project...&lt;br /&gt;
* Select C/C++ Project with existing code&lt;br /&gt;
* Navigate to the examples directory and select the folder for the project you want to build; eg.    /home/vtsingaras/3ds/examples/app_launch&lt;br /&gt;
* Leave Configuration Mode to &#039;Automatic&#039; and click &#039;Finish&#039;.&lt;br /&gt;
* It will fail to build. Now edit Makefile and insert these two lines, adjusting for your devkitpro path, at the top:&lt;br /&gt;
&amp;lt;pre&amp;gt;export DEVKITPRO=/opt/devkitpro&lt;br /&gt;
export DEVKITARM=/opt/devkitpro/devkitARM&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Right-click the project and go to Properties-&amp;gt;Code Assistance and click C Compiler.&lt;br /&gt;
* In include directories enter &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/devkitpro/devkitARM/include;/opt/devkitpro/ctrulib/libctru/include&amp;lt;/pre&amp;gt;&lt;br /&gt;
adjusting again for your devkitPro path.&lt;br /&gt;
* Do the same for &#039;C++ Compiler&#039;.&lt;br /&gt;
* Go to &#039;Run&#039; and click &#039;Clean and Build Project&#039;.&lt;br /&gt;
* Now right-click on the project and select Code Assistance-&amp;gt;Reparse Project.&lt;br /&gt;
&lt;br /&gt;
Now you can use Netbeans&#039; code completion feature and build your project from the Run menu.&lt;br /&gt;
&lt;br /&gt;
= Building homebrew for distribution =&lt;br /&gt;
To build your homebrew open a terminal, browse to your homebrew&#039;s folder and run make.&lt;br /&gt;
&lt;br /&gt;
* This will build a .elf file and a .3dsx file together with an icon. The icon and .3dsx file are the format required for the [[Homebrew Channel]].&lt;br /&gt;
&lt;br /&gt;
* To build a Gateway-compatible .3ds file you need to strip the .elf file and use makerom on it (with the provided RSF file):&lt;br /&gt;
 arm-none-eabi-strip [ELF file]&lt;br /&gt;
 makerom -f cci -o [.3ds file] -rsf [RSF file] -target d -exefslogo -elf [ELF file] -icon [icon file] -banner [banner file]&lt;/div&gt;</summary>
		<author><name>Cpasjuste</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Setting_up_Development_Environment&amp;diff=13184</id>
		<title>Setting up Development Environment</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Setting_up_Development_Environment&amp;diff=13184"/>
		<updated>2015-09-02T08:19:57Z</updated>

		<summary type="html">&lt;p&gt;Cpasjuste: /* Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Setup =&lt;br /&gt;
* Install [http://devkitpro.org/ devkitARM]. If it&#039;s already installed, update it. On Windows there&#039;s a GUI installer. On Linux/Mac there&#039;s a perl-script. Make sure you also select ctrulib when installing.&lt;br /&gt;
* 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.&lt;br /&gt;
* Depending on the kind of homebrew you want to develop, you may be interested in installing and using additional libraries and tools which don&#039;t ship alongside devkitARM/libctru. A list of them can be found in [[Homebrew Libraries and Tools]].&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
* First get the devkitARM updater Perl script for Linux.&lt;br /&gt;
* Run it with superuser privileges if your /opt directory is not marked world read-writeable.&lt;br /&gt;
* Get ctrulib from Smealum&#039;s GitHub repository, build and install it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install git curl&lt;br /&gt;
curl -L http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl/download -o devkitARMupdate.pl&lt;br /&gt;
chmod +x ./devkitARMupdate.pl&lt;br /&gt;
sudo -s&lt;br /&gt;
./devkitARMupdate.pl /opt/devkitpro&lt;br /&gt;
cd /opt/devkitpro&lt;br /&gt;
git clone https://github.com/smealum/ctrulib.git&lt;br /&gt;
cd ctrulib/libctru&lt;br /&gt;
export DEVKITPRO=/opt/devkitpro&lt;br /&gt;
export DEVKITARM=$DEVKITPRO/devkitARM&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
exit&lt;br /&gt;
echo &amp;quot;export DEVKITPRO=/opt/devkitpro&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
echo &amp;quot;export DEVKITARM=\$DEVKITPRO/devkitARM&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
echo &amp;quot;export PATH=$PATH:$DEVKITARM/bin&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Building the examples =&lt;br /&gt;
3DS examples are still being created. Currently there are a few examples in the separate ctrulib download under the &amp;quot;examples&amp;quot; folder.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;arm11u:&#039;&#039;&#039; simple homebrew example&lt;br /&gt;
* &#039;&#039;&#039;sdmc:&#039;&#039;&#039; demonstrates how to access files on the SD card&lt;br /&gt;
* &#039;&#039;&#039;mic:&#039;&#039;&#039; demonstrates how to read sound from the microphone&lt;br /&gt;
* &#039;&#039;&#039;gpu:&#039;&#039;&#039; demonstrates how to render 3D geometry with the GPU&lt;br /&gt;
&lt;br /&gt;
==Building the examples on Linux with Netbeans==&lt;br /&gt;
* Go to File-&amp;gt;New Project...&lt;br /&gt;
* Select C/C++ Project with existing code&lt;br /&gt;
* Navigate to the examples directory and select the folder for the project you want to build; eg.    /home/vtsingaras/3ds/examples/app_launch&lt;br /&gt;
* Leave Configuration Mode to &#039;Automatic&#039; and click &#039;Finish&#039;.&lt;br /&gt;
* It will fail to build. Now edit Makefile and insert these two lines, adjusting for your devkitpro path, at the top:&lt;br /&gt;
&amp;lt;pre&amp;gt;export DEVKITPRO=/opt/devkitpro&lt;br /&gt;
export DEVKITARM=/opt/devkitpro/devkitARM&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Right-click the project and go to Properties-&amp;gt;Code Assistance and click C Compiler.&lt;br /&gt;
* In include directories enter &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/devkitpro/devkitARM/include;/opt/devkitpro/ctrulib/libctru/include&amp;lt;/pre&amp;gt;&lt;br /&gt;
adjusting again for your devkitPro path.&lt;br /&gt;
* Do the same for &#039;C++ Compiler&#039;.&lt;br /&gt;
* Go to &#039;Run&#039; and click &#039;Clean and Build Project&#039;.&lt;br /&gt;
* Now right-click on the project and select Code Assistance-&amp;gt;Reparse Project.&lt;br /&gt;
&lt;br /&gt;
Now you can use Netbeans&#039; code completion feature and build your project from the Run menu.&lt;br /&gt;
&lt;br /&gt;
= Building homebrew for distribution =&lt;br /&gt;
To build your homebrew open a terminal, browse to your homebrew&#039;s folder and run make.&lt;br /&gt;
&lt;br /&gt;
* This will build a .elf file and a .3dsx file together with an icon. The icon and .3dsx file are the format required for the [[Homebrew Channel]].&lt;br /&gt;
&lt;br /&gt;
* To build a Gateway-compatible .3ds file you need to strip the .elf file and use makerom on it (with the provided RSF file):&lt;br /&gt;
 arm-none-eabi-strip [ELF file]&lt;br /&gt;
 makerom -f cci -o [.3ds file] -rsf [RSF file] -target d -exefslogo -elf [ELF file] -icon [icon file] -banner [banner file]&lt;/div&gt;</summary>
		<author><name>Cpasjuste</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Setting_up_Development_Environment&amp;diff=13084</id>
		<title>Setting up Development Environment</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Setting_up_Development_Environment&amp;diff=13084"/>
		<updated>2015-08-20T17:13:04Z</updated>

		<summary type="html">&lt;p&gt;Cpasjuste: /* Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Setup =&lt;br /&gt;
* Install [http://devkitpro.org/ devkitARM]. If it&#039;s already installed, update it. On Windows there&#039;s a GUI installer. On Linux/Mac there&#039;s a perl-script. Make sure you also select ctrulib when installing.&lt;br /&gt;
* 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.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
* First get the devkitARM updater Perl script for Linux.&lt;br /&gt;
* Run it with superuser privileges if your /opt directory is not marked world read-writeable.&lt;br /&gt;
* Get ctrulib from Smealum&#039;s GitHub repository, build and install it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install git curl&lt;br /&gt;
curl -L http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl/download -o devkitARMupdate.pl&lt;br /&gt;
chmod +x ./devkitARMupdate.pl&lt;br /&gt;
sudo -s&lt;br /&gt;
./devkitARMupdate.pl /opt/devkitpro&lt;br /&gt;
cd /opt/devkitpro&lt;br /&gt;
git clone https://github.com/smealum/ctrulib.git&lt;br /&gt;
cd ctrulib/libctru&lt;br /&gt;
export DEVKITPRO=/opt/devkitpro&lt;br /&gt;
export DEVKITARM=$DEVKITPRO/devkitARM&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
exit&lt;br /&gt;
echo &amp;quot;export DEVKITPRO=/opt/devkitpro&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
echo &amp;quot;export DEVKITARM=\$DEVKITPRO/devkitARM&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
echo &amp;quot;export PATH=\$PATH:\$DEVKITARM/bin&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Building the examples =&lt;br /&gt;
3DS examples are still being created. Currently there are a few examples in the separate ctrulib download under the &amp;quot;examples&amp;quot; folder.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;arm11u:&#039;&#039;&#039; simple homebrew example&lt;br /&gt;
* &#039;&#039;&#039;sdmc:&#039;&#039;&#039; demonstrates how to access files on the SD card&lt;br /&gt;
* &#039;&#039;&#039;mic:&#039;&#039;&#039; demonstrates how to read sound from the microphone&lt;br /&gt;
* &#039;&#039;&#039;gpu:&#039;&#039;&#039; demonstrates how to render 3D geometry with the GPU&lt;br /&gt;
&lt;br /&gt;
==Building the examples on Linux with Netbeans==&lt;br /&gt;
* Go to File-&amp;gt;New Project...&lt;br /&gt;
* Select C/C++ Project with existing code&lt;br /&gt;
* Navigate to the examples directory and select the folder for the project you want to build; eg.    /home/vtsingaras/3ds/examples/app_launch&lt;br /&gt;
* Leave Configuration Mode to &#039;Automatic&#039; and click &#039;Finish&#039;.&lt;br /&gt;
* It will fail to build. Now edit Makefile and insert these two lines, adjusting for your devkitpro path, at the top:&lt;br /&gt;
&amp;lt;pre&amp;gt;export DEVKITPRO=/opt/devkitpro&lt;br /&gt;
export DEVKITARM=/opt/devkitpro/devkitARM&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Right-click the project and go to Properties-&amp;gt;Code Assistance and click C Compiler.&lt;br /&gt;
* In include directories enter &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/devkitpro/devkitARM/include;/opt/devkitpro/ctrulib/libctru/include&amp;lt;/pre&amp;gt;&lt;br /&gt;
adjusting again for your devkitPro path.&lt;br /&gt;
* Do the same for &#039;C++ Compiler&#039;.&lt;br /&gt;
* Go to &#039;Run&#039; and click &#039;Clean and Build Project&#039;.&lt;br /&gt;
* Now right-click on the project and select Code Assistance-&amp;gt;Reparse Project.&lt;br /&gt;
&lt;br /&gt;
Now you can use Netbeans&#039; code completion feature and build your project from the Run menu.&lt;br /&gt;
&lt;br /&gt;
= Building homebrew for distribution =&lt;br /&gt;
To build your homebrew open a terminal, browse to your homebrew&#039;s folder and run make.&lt;br /&gt;
&lt;br /&gt;
* This will build a .elf file and a .3dsx file together with an icon. The icon and .3dsx file are the format required for the [[Homebrew Channel]].&lt;br /&gt;
&lt;br /&gt;
* To build a Gateway-compatible .3ds file you need to strip the .elf file and use makerom on it (with the provided RSF file):&lt;br /&gt;
 arm-none-eabi-strip [ELF file]&lt;br /&gt;
 makerom -f cci -o [.3ds file] -rsf [RSF file] -target d -exefslogo -elf [ELF file] -icon [icon file] -banner [banner file]&lt;/div&gt;</summary>
		<author><name>Cpasjuste</name></author>
	</entry>
</feed>