supercard dstwo sdk on windows?

Discussion in 'Supercard SDK' started by reprep, Jun 16, 2017.

  1. reprep
    OP

    reprep GBAtemp Advanced Fan

    Member
    935
    301
    Jul 5, 2012
    Does anyone have a pre-made sdk for windows? I recently did some changes to psp4fba, made the MIPS a68k core work and changes can be applied to dstwo if anyone can help me have the sdk on my windows pc.
    https://gbatemp.net/threads/fba4pspmod.473854/

    Link here is dead unfortunately https://gbatemp.net/threads/dstwo-dingoo-sdk-by-rikku2000.349422/

    EDIT:

    OK, finally got it. At least i got it to place where i can compile FBA4DSTWO which was main aim.

    First get the sdk from here: https://github.com/crazii/ds2sdk you should also download the new dstwo-toolchain-gcc-6.1.2-nopic.tar.xz again linked on that page.
    Install cygwin, while installing dont forget to enable the packages (they are normally disabled): gnu make, gnu gcc (or g++ cant remember now) and perl.
    Copy the sdk to usr/local/dsk2sdk, enter to that directory in cygwin and type make, it should do everything for you, including the extraction of dstwo-toolchain-gcc-6.1.2-nopic.tar.xz. Set your NDSSDK variable and you are set to go.
     
    Last edited by reprep, Jun 17, 2017
  2. migles

    migles Mei the sexiest bae

    Member
    6,899
    4,636
    Sep 19, 2013
    Saint Kitts and Nevis
    my dad works for nintendo.
    @Rikku2000 he was last seen may, there is still a change he is still active and has the files

    did ya try in supercard forums? they should have this stuff there as well

    alternatively there is this piece of text in the sdk readme, not sure if it's what you are looking for:
     
    Last edited by migles, Jun 16, 2017
  3. VatoLoco

    VatoLoco Don't crush that dwarf, hand me the pliers.

    Member
    2,266
    277
    Jan 29, 2008
    United States
    Ya Cant Get There From Here
    Heres the 1.2 sdk

    Edit: oh i see now.
    Didnt realize the regular sdk needs a linux environment set up to use.
     
    Last edited by VatoLoco, Jun 16, 2017
  4. Coto

    Coto GBAtemp Addict

    Member
    2,366
    416
    Jun 4, 2010
    Chile
    well I guess msys +mingw of some sorts should do but i dunno if your sources are GNU - ready (makefile, linkers). I can give you makefiles written by myself and linkers if you want (gnu licensed) if you have troubles building your stuff.

    binutil docs:

    https://www.gnu.org/software/binutils/


    You also need windows precompiled binutils (http://gnutoolchains.com/download/)
    but you need a toolchain for windows whose binutils build MIPS assembly.


    https://uclibc.org/toolchains.html <-- this toolchain supports MIPS, but binutils is for linux. Replace those binutils for binutils built for windows (examples: mips-addr2line.exe, mips-ld.exe, mips-gcc.exe). THEN add the environment variables told here to Windows as usual. Then makefile should be called from mingw environment, as usual.

    good luck.

    edit:

    you need to visit :

    https://gbatemp.net/threads/compiling-errors-for-arm-device.468873/#post-7271683
    (note this is EABI for ARM Cores)

    and what you will need from there is:

    1) treat these objects as a whole ABI standard, earlier it was ARM EABI, now MIPS ABI.

    2) decompile the objects from the earlier posted MIPS toolchain, and read elf properties . Both versions from the generated MIPS ABI binutils should match against the ones found inside the .a library object format (if you read my posts earlier in the link, you´d find that an .a library is built from a group of ABI standard objects and used in the linking process against the newer source code compiled, for building stand alone executables )
     
    Last edited by Coto, Jun 16, 2017
  5. reprep
    OP

    reprep GBAtemp Advanced Fan

    Member
    935
    301
    Jul 5, 2012
    Last edited by reprep, Jun 16, 2017
  6. VatoLoco

    VatoLoco Don't crush that dwarf, hand me the pliers.

    Member
    2,266
    277
    Jan 29, 2008
    United States
    Ya Cant Get There From Here
    reprep likes this.
  7. reprep
    OP

    reprep GBAtemp Advanced Fan

    Member
    935
    301
    Jul 5, 2012