Guide: How to compile apps for dingoo native OS without SDK


PLEASE NOTE: If you're interested in making games for the Dingoo, I recommend you to use this unofficial multiplatform SDK instead.
This page is mostly here for historical reasons, most of my games requires the SDK.

This guide will help you to compile apps for the native dingoo OS (not linux) without the use of the SDK (except entry.a).
Thanks goes out to flatmush for helping me with this, and for creating these libraries we're going to use.


--- Files to download ---
* Cygwin
* AstroLander or SameGoo
* toolchain (mirror)


--- Installation ---
* Cygwin
During the setup of Cygwin, you will need to select additional packages under the category devel. I don't know exactly which ones you'll need since I was lazy and just picked the whole devel category. I know for sure you at least need to select "make".
You will need to add the Cygwin bin folder to your PATH environment variable. If you installed Cygwin in the default directory, that would be C:\cygwin\bin.

* toolchain
Unpack it into your cygwin directory and call it mipseltools. The folder mipseltools should have bin, include etc in it.
You have to add the bin directory of mipseltools to your PATH aswell. If you're using the default directories, that would be C:\cygwin\mipseltools\bin.
You will also need two additional environment variables as below:
MIPSLIB = "c:/cygwin/mipseltools/lib"
MIPSTOOLS = "c:/cygwin/mipseltools/include"
(note: you need either frontslash or double backslashes here)

Finally go to the directory C:\cygwin\mipseltools\lib\gcc\mipsel-linux\4.1.2 and copy the file libgcc.a to C:\cygwin\mipseltools\lib.

* AstroLander or SameGoo
Just unpack it where ever your want.


--- Compile ---
Open up a command prompt and point it to the compile folder for your chosen game.
Run rebuild. If everything goes well you will not see any errors and you should end up with a target.app file.
dlmake produces some weird characters during the end of the compile but it's nothing to worry about.


--- Try it on the Dingoo ---
Copy over target.app to somewhere on your Dingoo. You may rename it if you wish.
For Astrolander, also copy font.tga and splash.tga from the data directory (inside the compile directory) to the same directory as target.app


--- FAQ ---
Q: How to fix "No medium found" errors?
A: Put a disk in your D drive (CD drive) and try again. (Thanks to HnkyTnkButcher)

Q: How to make SIM-files?
A: Have a look at the source of the Gnuboy port from Joyrider.