HomeForumsWhat's newResources 
 
 
Saturn Dev in Code::Blocks IDE
Amon - Jul 16, 2009
 Amon Jul 16, 2009
For those of you that are sick of SaturnOrbit aka Dev-C++ as an IDE I was able to set up Code::Blocks for Saturn Dev. Of course I have heard of people setting up and using MS Visual Studios for Saturn Dev.

I was able to compile a derivative of Rockin-B's Saturn Game Tutorial as well as well as my own app that does not use the SGL or SBL.

Another bonus about Code::Blocks is that it is Cross Platform Windows, Mac and Linux. Anyone interested in a guide to setting it up? or a package install like SaturnOrbit but with Code::blocks and not devc++?

 Chilly Willy Jul 16, 2009
A guide would be more helpful for people not on Windows. I run Xubuntu, so I vote for the guide.

 Amon Jul 17, 2009
Well here is the simplified guide Install Code::Blocks.

Then download the SGL and SBL libraries from http://vberthelot.free.fr/SX/satdev/Tools.html...

Then download GNUSH from http://www.kpitgnutools.com/... (you need to register but it is free. )

Then set up a new compiler and point to all the stuff you downloaded.

Thats the simple guide lol.

 Chilly Willy Jul 17, 2009

Amon said:
Well here is the simplified guide Install Code::Blocks.

Then download the SGL and SBL libraries from http://vberthelot.free.fr/SX/satdev/Tools.html...

Then download GNUSH from http://www.kpitgnutools.com/... (you need to register but it is free. )

Then set up a new compiler and point to all the stuff you downloaded.

Thats the simple guide lol.




A little TOO simple. Just look at some of the Code::Blocks guides for PSP/PS2 development. Come to think of it, I helped write a couple of those guides. I should probably do one for this myself.



Any suggestions on a good sample program to compile to test that everything is working right? Preferably one that boots from CD as I don't have one of those PC links - just a chipped Saturn.

 Amon Jul 17, 2009
Sorry for the simple guide but I set everything up in Windows using DevC++ being installed and used all of the folders and stuff from that.

I would say one of the best sample programs to compile and test everything is working would be Rockin-B's Saturn Game Tutorial http://www.rockin-b.de/saturn/saturngametutorial/S...

I also tested with a few Saturn games that do not use any libraries. Charles MacDonald, Piratero, etc etc just look at the C4 contest results and try those.

 Chilly Willy Jul 17, 2009
I'll look that over. Hopefully it isn't too much trouble getting it all going in linux. I noticed many of the tools (like graphics and sound converters) are for Windows or Mac. That might make it a like more work.

 Amon Jul 19, 2009
Yeah, I do not remember who made one or if it was released but someone had a nix graphics converter for the Saturn. I am working on a graphics converter as well but its from the .net framework. Unfortunately some of the nice Sound tools are for old macs.

 TheFifthElement Jul 28, 2009

Amon said:
Then set up a new compiler and point to all the stuff you downloaded.



Could you be more specific here? I'm lost.

 Amon Sep 17, 2009
Detailed instructions WIP

Step 1) Download and install Codeblocks with mingw into a directory with no spaces ie C:CodeBlocks

Step 1.5 Optional) Download and install DCDev R2 (post link later) if you wish to do dreamcast dev from CodeBlocks as well.

Step 2) #s Goto step 3.

 Amon Apr 20, 2010
Step3) Download a this file *link removed for the moment* and extract into C:\CodeBlocks

Step4) Start Codeblocks. Goto Settings -> Compiler and Debugger... hit the copy button and name it Saturn sh-elf

under the other options tab add "-m2 -Wno-deprecated #-fno-rtti -fno-exceptions" without quotations.

click on the search directors tab compiler subtab add the following directories

C:\CodeBlocks\SH_ELF\sh-elf\sh-elf\include

C:\CodeBlocks\SGL_302j\INC

C:\CodeBlocks\SBL_601\SEGALIB\INCLUDE

C:\CodeBlocks\TOOLS\BGCON

C:\CodeBlocks\RB\INC

C:\CodeBlocks\E2

C:\CodeBlocks\DUCK\SATURN\SEGALIB\INCLUDE

C:\CodeBlocks\SH_ELF\sh-elf\sh-elf\include\c++\4.4-GNUSH_v0903

click on the search directors tab linker subtab add the following directories

C:\CodeBlocks\SGL_302j\LIB_ELF

C:\CodeBlocks\SBL_601\SEGALIB\LIB_ELF

C:\CodeBlocks\TOOLS\BGCON

C:\CodeBlocks\RB\BUILD\Saturn\LIB_COFF

C:\CodeBlocks\DUCK\SATURN\SEGALIB\LIB

click on the toolchains tab set the directory to C:\CodeBlocks\SH_ELF\sh-elf\

in the additional directories add

C:\CodeBlocks\MinGW\bin

C:\CodeBlocks\SH_ELF\Other Utilities

Repeat for SH_COFF

 Amon Apr 25, 2010
Specific enough?