View Single Post
Old 10 July 2017, 23:43   #19
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
using a 128kb rom from mame emulator - i tested some game from the MacGui website.
those *.2mg images. you have to add them in the kegs_conf file, one example was: s7d1 = CRATE.2MG
so i renamed the downloaded 2mg file to CRATE.2mg and put it into the kegs folder.
the game does boot, but joystick control is somehow weird or does not work.

btw. compiling kegs itself seems not too difficult. I ended up with many unknown symbols while linking,
but compiling the source seems ok, without any big errors.
I think my CCOPTS and LDFLAGS are not correct, but someone skilled can fix this in a minute

using crosscompiler on cygwin 32bit system.
my src/vars file - file will be read by Makefile and must fit your system you want kegs compile for.
Code:
OBJECTS = $(OBJECTS1) engine_c.o
CC = m68k-amigaos-gcc.exe
CCOPTS = -m68020 -m68881 -Wall -O3 -noixemul
OPTS =
SUFFIX =
NAME = kegs
LDFLAGS = -L/opt/m68k-amigaos/lib/gcc-lib/m68k-amigaos/2.95.3
# LDOPTS = -z
LD = $(CC)
# EXTRA_LIBS = -lsdl
EXTRA_SPECIALS =

AS = m68k-amigaos-as.exe
PERL = perl
in the Makefile i removed video_driver_x11.o and video_driver_win32.o from the OBJECTS1 line.

link errors (first lines only):
Code:
$ make
m68k-amigaos-gcc.exe  adb.o clock.o dis.o joystick_driver.o paddles.o scc.o scc_driver.o
iwm.o moremem.o sim65816.o smartport.o sound.o video.o video_driver.o
video_driver_sdl.o config_sdl.o configmenu.o sound_driver.o functions.o font.o ki.o rom.o
engine_c.o compile_time.o  -L/opt/m68k-amigaos/lib/gcc-lib/m68k-amigaos/2.95.3
-L/opt/m68k-amigaos/m68k-amigaos/libnix/lib -lamiga -o kegs
adb.o(.text+0xdca): undefined reference to `printf'
adb.o(.text+0x20e4): undefined reference to `printf'
adb.o(.text+0x22d8): undefined reference to `printf'
adb.o(.text+0x23f2): undefined reference to `printf'
adb.o(.text+0x31ac): undefined reference to `printf'
adb.o(.text+0x846): more undefined references to `printf' follow
clock.o(.text+0x14e): undefined reference to `errno'
clock.o(.text+0x22c): undefined reference to `errno'
clock.o(.text+0x266): undefined reference to `errno'
...
would be better to compile the 68k again, so the support tools (dc2raw partls) will be 68k executables aswell.
afterwards we can put it on Aminet

Last edited by emufan; 11 July 2017 at 00:04.
emufan is offline  
 
Page generated in 0.06826 seconds with 11 queries