Setting up Development Environment: Difference between revisions
added instructions for Linux |
Add small Linux Netbeans tutorial |
||
Line 18: | Line 18: | ||
make install | make install | ||
</pre> | </pre> | ||
= Building the examples = | = Building the examples = | ||
Line 27: | Line 26: | ||
* '''mic:''' demonstrates how to read sound from the microphone | * '''mic:''' demonstrates how to read sound from the microphone | ||
* '''gpu:''' demonstrates how to render 3D geometry with the GPU | * '''gpu:''' demonstrates how to render 3D geometry with the GPU | ||
==Building the examples on Linux with Netbeans== | |||
* Go to File->New Project... | |||
* Select C/C++ Project with existing code | |||
* Navigate to the examples directory and select the folder for the project you want to build; eg. /home/vtsingaras/3ds/examples/app_launch | |||
* Leave Configuration Mode to 'Automatic' and click 'Finish'. | |||
* It will fail to build. Now edit Makefile and insert these two lines, adjusting for your devkitpro path, at the top: | |||
<pre>export DEVKITPRO=/opt/devkitpro | |||
export DEVKITARM=/opt/devkitpro/devkitARM</pre> | |||
* Right-click the project and go to Properties->Code Assistance and click C Compiler. | |||
* In include directories enter | |||
<pre>/opt/devkitpro/devkitARM/include;/opt/devkitpro/ctrulib/libctru/include</pre> | |||
adjusting again for your devkitPro path. | |||
* Do the same for 'C++ Compiler'. | |||
* Go to 'Run' and click 'Clean and Build Project'. | |||
* Now right-click on the project and select Code Assistance->Reparse Project. | |||
Now you can use Netbeans' code completion feature and build your project from the Run menu. | |||
= Building homebrew for distribution = | = Building homebrew for distribution = |