Hacking supercard dstwo sdk on windows?

reprep

Well-Known Member
OP
Member
Joined
Jul 5, 2012
Messages
939
Trophies
1
Website
melankolisavar.blogspot.com
XP
1,037
Country
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,

migles

All my gbatemp friends are now mods, except for me
Member
Joined
Sep 19, 2013
Messages
8,033
Trophies
0
Location
Earth-chan
XP
5,299
Country
China
@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:
4 How to setup development environment of the ds2sdk?
Linux operation system are required to build the cross-comiling evironment.
If your computer's operating system is just linux, that is best.
But now the situation is that many program developers may be working on Windows. How to do it?
Fortunately, there are many ways to simulate linux environment on Windows.
CYGWIN and VM(virtual Machine) technology can do this. CYGWIN employ some special DLL to enable Linux program
run on Windows, it require fewer disk space and memory space, but the compability may be not the best. So,
Cygwin is not recommended. The most effective method is to install VM on Windows, for example, VMware Workstation and
VirtualBox. Although they take up much CPU and memory resources and hard disk space more than CYGWIN,
but the compatibility is better, you will encounter problems as little as possible. I personally recommend
the use of VMware Workstation. Here we setup a linux environment by VMware Workstation 6 and Fedora 9.
 
Last edited by migles,

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
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,

reprep

Well-Known Member
OP
Member
Joined
Jul 5, 2012
Messages
939
Trophies
1
Website
melankolisavar.blogspot.com
XP
1,037
Country
Last edited by reprep,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Creamy milk