Windows 10 SGDK Setup with Eclipse Help

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

Post Reply
User avatar
scythe&GenGames
Newbie
Posts: 8
Joined: Fri Nov 03, 2017 10:38 pm
Contact:

Windows 10 SGDK Setup with Eclipse Help

Post by scythe&GenGames » Fri Jun 08, 2018 4:30 am

I followed the setup https://github.com/Stephane-D/SGDK/wiki ... th-Eclipse - and I get a GCC.exe not found error and I added a folder called SGDK to make it as my directory and I just wanna see if I got it working or not!

so here's the error

00:20:43 **** Incremental Build of configuration Release for project Sega Rom test ****
"C:\\SGDK\\bin\\make" -f "C:\\SGDK/makefile.gen" Release
C:\SGDK/bin/mkdir -p src/boot
C:\SGDK/bin/mkdir -p out
C:\SGDK/bin/mkdir -p out/src
C:\SGDK/bin/mkdir -p out/res
C:\SGDK/bin/gcc -m68000 -Wall -fno-builtin -Iinc -Isrc -Ires -IC:\SGDK/inc -IC:\SGDK/res -BC:\SGDK/bin -c src/boot/rom_head.c -o out/rom_head.o
gcc.exe: error: CreateProcess: No such file or directory
make: *** [out/rom_head.o] Error 1

00:20:44 Build Finished (took 523ms)

Sop why this won't build the rom so I can test out on SEGA Genesis?

User avatar
Stef
Very interested
Posts: 2800
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Windows 10 SGDK Setup with Eclipse Help

Post by Stef » Fri Jun 08, 2018 8:17 am

To be honest i don't use Eclipse myself as i got many troubles making it working with SGDK.
Still from your messages log, did you correctly defines GDK environment variable and custom build command ?
You GDK var should be set to :

Code: Select all

C:/SGDK
And your build command to

Code: Select all

${GDK}/bin/make -f ${GDK}/makefile.gen'
It looks like you used '\' (windows path separator)instead of '/' (linux path separator).
Even if you are on windows you need to use '/' as windows now support it, and mixing them will probably screw up everything.

Also you might try to define "GDK_WIN" environment variable which should point to your SGDK installation path but in windows format

Code: Select all

C:\SGDK
Then finally add the bin directory of SGDK (%GDK_WIN%\bin) to your system PATH variable. Be careful, if you have another GCC installation you can have some conflicts when cc1 command will be called..

User avatar
scythe&GenGames
Newbie
Posts: 8
Joined: Fri Nov 03, 2017 10:38 pm
Contact:

Re: Windows 10 SGDK Setup with Eclipse Help

Post by scythe&GenGames » Sat Jun 09, 2018 12:06 am

Just fixed my Build on main list of Build environment work now I'm getting a main error of this here

C:\Users\start\AppData\Local\Temp\ccRlDqHl.ltrans4.ltrans.o: In function `_reset_entry':
<artificial>:(.text+0x768): undefined reference to `main'
C:\Users\start\AppData\Local\Temp\ccRlDqHl.ltrans4.ltrans.o: In function `_start_entry':
<artificial>:(.text+0x818): undefined reference to `main'
make: *** [out/rom.out] Error 1

it almost made a test rom!

User avatar
Stef
Very interested
Posts: 2800
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Windows 10 SGDK Setup with Eclipse Help

Post by Stef » Mon Jun 11, 2018 8:40 am

Then now you just need a main() method in your project :)

User avatar
scythe&GenGames
Newbie
Posts: 8
Joined: Fri Nov 03, 2017 10:38 pm
Contact:

Re: Windows 10 SGDK Setup with Eclipse Help

Post by scythe&GenGames » Sat Jun 23, 2018 12:52 pm

it had to be saved in order to work the int Main() - now my setup is complete and working without any issues, that means I can try out many SGSK tutorials and maybe build a game or two for the genesis and have the power of 16-bit in my hands!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests