Installing DSTwo SDK on Ubuntu

Discussion in 'Supercard SDK' started by Almamu, Jan 6, 2011.

  1. Almamu
    OP

    Almamu Member

    Newcomer
    29
    9
    Jul 29, 2008
    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:
    [​IMG]

    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.
     
  2. asiekierka

    asiekierka Advanced Member

    Newcomer
    99
    69
    Sep 26, 2007
    Poland
    ?
     
  3. Almamu
    OP

    Almamu Member

    Newcomer
    29
    9
    Jul 29, 2008
    Because we want to compile the example included with the SDK, the SDK itself becomes compiled.
     
  4. Buleste

    Buleste Old Fart

    Member
    852
    27
    Dec 19, 2010
    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?
     
  5. slenkar

    slenkar Advanced Member

    Newcomer
    84
    0
    Mar 27, 2011
    United States
    can dstwo plugins use the DS graphics system like a normal NDS file?

    as in can I use the OpenGL like interface ?
     
  6. Dimensional

    Dimensional GBAtemp Advanced Fan

    Member
    596
    83
    Dec 7, 2008
    United States
    Texas
    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?
     
  7. BassAceGold

    BassAceGold Testicles

    Member
    495
    124
    Aug 14, 2006
    Canada
    What happens if you try to run makeplug on its own?
     
  8. Dimensional

    Dimensional GBAtemp Advanced Fan

    Member
    596
    83
    Dec 7, 2008
    United States
    Texas
    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.
     
  9. BassAceGold

    BassAceGold Testicles

    Member
    495
    124
    Aug 14, 2006
    Canada
    For 64 bit operating systems, you'll need to install ia32-libs to run 32 bit programs.
     
  10. Dimensional

    Dimensional GBAtemp Advanced Fan

    Member
    596
    83
    Dec 7, 2008
    United States
    Texas
    Great. And I just deleted my 64-bit VM. :D At least the 32 bit one is working.