Closed v4ld3r5 closed 7 years ago
Hi, I was able to progress, fixed above issues by including extra paths in INC and LIB, in the skeleton Makefile; plus I added this line to "sgdk/Makefile" to solve the "sgdk.ld" issue, just at the end of the "install" target:
cp files/sgdk.ld $(GENDEV)/ldscripts/.
I can create a PR for these if needed. Now hit another issue and dunno how to progress, looks like it's still missing some symbols?
/opt/gendev/bin/m68k-elf-ld -o out.elf -T /opt/gendev/ldscripts/sgdk.ld -Map=output.map -nostdlib boot/sega.o /opt/gendev/sgdk/lib/libmd.a /opt/gendev/lib/gcc/m68k-elf/6.3.0/libgcc.a main.o -L/opt/gendev/m68k-elf/lib -L/opt/gendev/m68k-elf/lib/gcc/m68k-elf/* -L/opt/gendev/sgdk/lib -lmd -lnosys
/opt/gendev/sgdk/lib/libmd.a(sys_a.o): In function `SYS_hardReset':
(.text+0x1c): undefined reference to `_hard_reset'
Makefile:135: recipe for target 'out.elf' failed
make: *** [out.elf] Error 1
rm main.o
....
/opt/gendev/bin/m68k-elf-nm /opt/gendev/sgdk/lib/libmd.a | grep _hard
U _hard_reset
00000012 T SYS_hardReset
Br, Dani
Sorry I completed missed the point on the README to build the SGDK project; so I was using the wrong makefile. Using it works like a charm. Is there a reason then to have that sgdk/skeleton?
In any case this can be closed. Cheers
No worries. You are probably right that the sgdk/skeleton dir may no longer be useful (or perhaps counter productive). I've been attempting to clean this project up a bit, and likely have more to do!
Hi, I created a "hello world" project by copying sgdk/skeleton content and not able to build it:
Br, Dani