Saturn Dev in Code::Blocks IDE

GO TO ADMIN PANEL > ADD-ONS AND INSTALL VERTIFORO SIDEBAR TO SEE FORUMS AND SIDEBAR

Amon

Staff member
Joined
Sep 16, 2005
Messages
543
Points
16
Age
35
Location
Canada
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

New Member
Joined
Jan 21, 2006
Messages
256
Points
16
Age
54
Website
groups.google.com
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.
:ermm:

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.

:smokin:

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

Staff member
Joined
Sep 16, 2005
Messages
543
Points
16
Age
35
Location
Canada
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/SaturnGameTutorial.htm

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

New Member
Joined
Jan 21, 2006
Messages
256
Points
16
Age
54
Website
groups.google.com
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

Staff member
Joined
Sep 16, 2005
Messages
543
Points
16
Age
35
Location
Canada
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.
 

Amon

Staff member
Joined
Sep 16, 2005
Messages
543
Points
16
Age
35
Location
Canada
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) Download http://vberthelot.free.fr/SaturnOrbit/saturn-orbit-r1-patch2.rar and extract into C:CodeBlocks . You should have the two folders C:CodeBlocksSH_ELF and C:CodeBlocksSH_COFF Goto step 3.
 

Amon

Staff member
Joined
Sep 16, 2005
Messages
543
Points
16
Age
35
Location
Canada
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
 
Top