nimitz wrote:...
Hi,
I want to compile shmupmame from source code. The source package seems to contain only the modified code based off mame0148.
Previously I have already compiled mame0148 following this guide
http://mamedev.org/tools/
So I downloaded and unpacked mame0148 source code and copy & paste shmupmame 4.2 over it.
When I type "make" the first error stopped at
mame.lst
#ifndef NCP
So I just manually remove everything between and including ifdef endif.
The next error I encountered is
make: *** No rule to make target `obj/windows64/mame/layout/cps3.lh', needed by
`obj/windows64/mame/drivers/cps3.o'. Stop.
Again I modified mame.mak and comment out
# $(DRIVERS)/cps3.o: $(LAYOUT)/cps3.lh
to get pass that.
However I still ran into the following errors which I cannot get around
I believe there might be some missing files (diff) that are not packaged properly.
Would you consider including every files in the source code, not just the diff from mame0148?
I am not sure what source control you are using but creating a repo on github would be great.
Thanks in advance.
src/osd/windows/input.c:429:4: error: 'ITEM_ID_KANA' was not declared in this sc
ope
src/osd/windows/input.c:430:4: error: 'ITEM_ID_CONVERT' was not declared in this
scope
src/osd/windows/input.c:431:4: error: 'ITEM_ID_NONCONVERT' was not declared in t
his scope
src/osd/windows/input.c: In function 'void dinput_init(running_machine&)':
src/osd/windows/input.c

68: error: '_WINDOWS' was not declared in this scop
e
src/osd/windows/input.c: In function 'BOOL dinput_mouse_enum(LPCDIDEVICEINSTANCE
, LPVOID)':
src/osd/windows/input.c

92: error: '_WINDOWS' was not declared in this scop
e
src/osd/windows/input.c: In function 'BOOL dinput_joystick_enum(LPCDIDEVICEINSTA
NCE, LPVOID)':
src/osd/windows/input.c

97: error: '_WINDOWS' was not declared in this scop
e
src/osd/windows/input.c

94: error: '_WINDOWS' was not declared in this scop
e
src/osd/windows/input.c

96: error: '_WINDOWS' was not declared in this scop
e
src/osd/windows/input.c

44: error: 'assign_joystick_to_player' was not decl
ared in this scope
src/osd/windows/input.c: In function 'void rawinput_init(running_machine&)':
src/osd/windows/input.c

58: error: '_WINDOWS' was not declared in this scop
e
src/osd/windows/input.c: At global scope:
src/osd/windows/input.c

13: error: 'void assign_joystick_to_player(running_
machine&, device_info*)' defined but not used [-Werror=unused-function]
cc1plus.exe: all warnings being treated as errors
make: *** [obj/windows64/osd/windows/input.o] Error 1