S2DSDK Installation Guide
Here is a guide to install the S2DSDK. You can find the original topic at a320.freeforums.org/s2dsdk-installation-guide-t299.html . Post there if you have any problems or questions!
REQUIRED FILES
DSOUND LIB
http://x11.gp2x.de/a320/2009161852273499.rar
CYGWIN-Related files
http://x11.gp2x.de/a320/20091214224673499.rar
S2DSDK-Related files
http://x11.gp2x.de/a320/200811281249773499.rar
Microsoft Visual C++ 2008 Express Edition
http://www.microsoft.com/express/vc/
Helloworldpixel (thanks to http://blog.tipesoft.com/)
http://blog.tipesoft.com/wp-content/plugins/download-monitor/download.php?id=12
Do not continue without these files!!!
INSTALLATION
Step A
Initilize
1a) Extract 20091214224673499.rar to C:\ (so the files within the archive are extracted to C:\cygwin\)
2a) Extract 200811281249773499.rar to C:\s2dsdk
3a) Extract 200918035573499.rar to C:\s2dsdk
4a) Install the Microsoft Visual C++ 2008 Express Edition (unless you haven't already)
5a) Apply these Environment Variables:
MIPSLIB
c:/cygwin/mipseltools/lib
MIPSTOOLS
c:/cygwin/mipseltools/include
S2DINC
c:/s2dsdk/inc
S2DLIB
c:/s2dsdk/lib
path
c:\cygwin\bin;c:\cygwin\mipseltools\bin;c:\windows\system32\;
(Thanks to Sience for this bug fix, this will stop you from getting that odd error asking for cmd.exe)
To apply these variables, head to 'My Computer', right-click and select 'Properties'. Click the 'Advanced', then click 'Environment Variables'. Click 'New' and add the variables one-by-one.
6a) Extract 2009161852273499.rar to C:\s2dsdk\lib (so the file will be located at C:\s2dsdk\lib\dsound.lib)
7a) Extract helloworldpixel.zip to any location, as the location will not matter. I would highly recommend you extract the archive to C:\s2dsdk, simply so you can keep track of the documents.
8a) Run the registry file 'C:\cygwin\cygwin.reg'
Step B
Process
1b) Load up Microsoft Visual C++ 2008 Express Edition.
2b) Select 'Open' and locate the folder where you extracted helloworldpixel.zip. Navigate to the win32 VS2008 folder, and select main.sln.
3b) Now that Microsoft Visual C++ 2008 Express Edition has loaded the file, you will need to compile the project. Select the green arrow (the > symbol) or simply press F5.
4b) If all things were successful, the helloworldpixel example, will compile and you will see the rare and fabled s2dsdk window. Yay! You have done it!
4.1b) If all things weren't successful, the helloworldpixel example, will not compile, and you will see an error. If you receive a:
Error: 1>Project : error PRJ0003 : Error spawning 'cmd.exe'.
Fix: Navigate to C:\WINDOWS\system32\ and find the file called 'cmd.exe'. Copy this file to the win32 VS2008 folder where the project is. Recompile the project, and hopefully, everything will work.
EXTRA NOTES
If the project compiles with some 'warnings', simply recompile the project, and those should be gone. I have no reason why they disappear when you just recompile.
I hope this guide will help someone. It took me some time, so if you would mind linking to this topic, rather then cutting and pasting the text else, that would be great. Thanks!
Thanks also goes to cdesign30 for suggesting the use of the win32 VS2008 rather then the win32 VS2005, which was converted to a later version.
If there is anything I'm missing, just reply here and I'll add it to the post!
Go and make some games already!
Peace!
-Wired
- Articles:

Comments
200918035573499
I don't see a link to 200918035573499.rar and the forum topic you point to no longer exists.
Nevermind.. found it....
...at this link: http://www.harteex.com/hosted/a320.freeforums.org/s2dsdk-installation-gu...
Buggy tutorial
Damn. That tutorial has so many holes in it. I'm sorry but I won't waste my time trying to point out the obvious wrongs with it. However, me and a friend made up a working compilation setup that lets you compile a Dingoo application (it's a linux elf with a twist named Target.app) by just a single click... outside Visual Studio. Well, at least it works on Vista and I added a button to make it quit so it won't freeze your console after you enter the sample application :D. The whole SDK is ~200 MB ( I really don't get it why they couldn't make just one zip ) but I'm too lazy to make 3 archives so I'm gonna give you a sample project with the one click build (which works right!)
http://www.mediafire.com/?5n0mchlzjtm
Help With Error
I followed all of the steps and get the following errors:
common.h(20) : fatal error C1083: Cannot open include file: 's2d/s2d.h': No such file or directory
loader.h(19) : fatal error C1083: Cannot open include file: './s2d/s2d.h': No such file or directory
When I hardcode the correct paths, it compiles, but then throws the following exception on Line 27 of GameEngine.cpp
Unhandled exception at 0x004524bc in main.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.
Please help!
Thanks,
-Mark
BTW, I'm using the full version of Visual Studio 2008. Does that matter?
Same Here
I'm getting those first two errors as well. I haven't tried hardcoding the paths yet but I'm just curious--are you using a 64-bit OS? I'm using Win7x64 and I have to tell VS2008 to target x86 CPUs because it targets x64 by default. Did you ever find a fix?
Bad link
S2DSDK-Related files
http://x11.gp2x.de/a320/200811281249773499.rar -- Fixed
Ok, Im a NOOB! I was
Ok, Im a NOOB!
I was curious... wut that heck is SDK... wut does it do??? I NEED TO KNOW!!!! :)
I LOVE MY DINGOO!
~Wally
SDK
Software Development Kit. That's a pack of tools for programmers, to make software for the Dingoo.
Oh, sweet... thanx man!
Oh, sweet... thanx man!
I LOVE MY DINGOO!
~Wally