Hacking Installing DSTwo SDK on Ubuntu

Almamu

Active Member
OP
Newcomer
Joined
Jul 29, 2008
Messages
30
Trophies
1
XP
209
Country
The SDK includes a readme file, but, it doesn't gave all the details for the installation, and the compilation procces can display some errors, so im making this guide for those that see error in compilation.

Step 1. Creating opt folder
First we need to create the opt folder on the HDD. If it exists, simply skip this step.
Open the Shell and type:
Code:
sudo mkdir /opt

Step 2. Giving permissions to opt folder
Open a shell and type:
Code:
sudo nautilus /
Do right-click to opt folder and click Properties. Go to permissions tab, select in ALL the listboxs Create and delete files.
Close nautilus and the shell.

Step 3. Unzipping and copying all the files
Open a shell and type:
Code:
sudo file-roller
Click File->Open and open your SDK zip.
Now unzip the SDK to this folder and change the folder name to ds2sdk.
Copy the /opt/ds2sdk/gcc/mipsel-4.1.2-nopic.tar.bz2 to /opt and unzip it with:
Code:
sudo file-roller
.
Now you should have these folders:
pantallazofw.png

Step 4. Setting up permissions
Open a shell and type:
Code:
sudo nautilus /
Go to opt folder
Do right-click on ds2sdk folder and select Properties. Open Permissions tab, select in ALL the listboxs Create and delete files.
Now click Apply Permissions to enclosed files
Do the same with mipsel-4.1.2-nopic.
Create and delete files.
Close nautilus and the shell.

Step 5. Adding enviroment variables
Now open a Shell and write:
Code:
sudo gedit /home/user/.bashrc
It will open gEdit window and a file. Go to the end of file and add these lines:
Code:
export PATH=$PATH:/opt/mipsel-4.1.2-nopic/bin
Save the file and close gedit. Close the sell. Important: If you don't close the shell the changes wouldn't be applyed correctly.

Step 6. Compiling the example
Open a shell and type:
Code:
cd /opt/ds2sdk/example
Type
Code:
sudo make
and wait.
It shouldn't display any error. If any error is displayed re-start this tutorial.
Note: If you see the line “../tools/makeplug: Permission denied” do this:
Code:
sudo chmod 777 /opt/ds2sdk/tools/makeplug

Step 7. Copying the plugin to the FlashCard
Pluging your MicroSD reader with Supercard MicroSD.
Rename the files plugintest.plg, plugintest.bmp and plugintest.ini to a diferent name and copy all to _dstwoplug in your MicroSD.
 

Buleste

Old Fart
Member
Joined
Dec 19, 2010
Messages
852
Trophies
0
Age
51
Website
www.redbubble.com
XP
590
Country
O.K. Done everything on this tutorial with Ubuntu 11.04 and the example plugin works perfectly however I cannot compile anything else.

Fro example when I try to compile iReader (both clean and my altered version) I get this error message

Code:
make[1]: mipsel-linux-gcc: Command not found
make[1]: *** [ftsystem.o] Error 127
make[1]: Leaving directory `/opt/ds2sdk/ireader/ebook/obj'
make: *** [main] Error 2

As I stated in this thread I know it seems to be an issue with freetype and I've made sure that the freetype source etc is installed on my version of Ubuntu but still I cannot get past this error message.

To test everything out I also tried to compile a clean version of NDSSFC without any modification from the original source code and that fails as well. Can anyone help me please?
 

slenkar

Well-Known Member
Newcomer
Joined
Mar 27, 2011
Messages
84
Trophies
0
Age
46
XP
181
Country
United States
can dstwo plugins use the DS graphics system like a normal NDS file?

as in can I use the OpenGL like interface ?
 

Dimensional

Well-Known Member
Member
Joined
Dec 7, 2008
Messages
1,008
Trophies
1
Age
34
Location
Texas
XP
2,781
Country
United States
Kind of funny that someone still needs help with this. I installed the SDK following the information here, and of course did some additions so I can compile TempGBA. But the problem is I constantly get the problem with makeplug. Even before I made the changes, after following the instructions in this thread, I tried compiling the examples and got the error.

make: /opt/ds2sdk/tools/makeplug: Command not found

And the file IS there. in /opt/ds2sdk/tools/, there is makeplug and ds2_firmware.dat

I can't figure out for the life of me why it's not working. Any advice?
 

BassAceGold

Testicles
Member
Joined
Aug 14, 2006
Messages
496
Trophies
1
XP
441
Country
Canada
Kind of funny that someone still needs help with this. I installed the SDK following the information here, and of course did some additions so I can compile TempGBA. But the problem is I constantly get the problem with makeplug. Even before I made the changes, after following the instructions in this thread, I tried compiling the examples and got the error.

make: /opt/ds2sdk/tools/makeplug: Command not found

And the file IS there. in /opt/ds2sdk/tools/, there is makeplug and ds2_firmware.dat

I can't figure out for the life of me why it's not working. Any advice?

What happens if you try to run makeplug on its own?
 

Dimensional

Well-Known Member
Member
Joined
Dec 7, 2008
Messages
1,008
Trophies
1
Age
34
Location
Texas
XP
2,781
Country
United States
It says "no such file or directory". But it's there! The file is even marked as executable.

Edit: I'm running this inside an Ubuntu 12.10 64-bit Virtual Machine. I'm going to try this again in a 32-bit Virtual Machine and see if it's any different.

Edit 2: I just tested. Seems to work on the 32 bit but complains on the 64 bit. Will have to stick with 32 bit it seems.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: The mutated Axolotl was awesome