NesHacker / GameBoyDev

Demo Game for the "Game Boy Development Environment" Video
zlib License
55 stars 9 forks source link

Make error on Windows #3

Open Rijast opened 1 year ago

Rijast commented 1 year ago

First time I ran the make on Windows and received the following error:

process_begin: CreateProcess(NULL, which rm, ...) failed.
A subdirectory or file obj already exists.
Error occurred while processing: obj.
A subdirectory or file dep already exists.
Error occurred while processing: dep.
make: [dep/main.mk] Error 1 (ignored)
rgbasm -v -L -p 0xFF -isrc/ -isrc/include/ -isrc/bin/ -Wall -Wextra -h -M dep/main.mk -MG -MP -MQ obj/main.o -MQ dep/main.mk -o obj/main.o src/main.asm
process_begin: CreateProcess(NULL, rgbasm -v -L -p 0xFF -isrc/ -isrc/include/ -isrc/bin/ -Wall -Wextra -h -M dep/main.mk -MG -MP -MQ obj/main.o -MQ dep/main.mk -o obj/main.o src/main.asm, ...) failed.
make (e=2): The system cannot find the file specified.
A subdirectory or file obj already exists.
Error occurred while processing: obj.
A subdirectory or file dep already exists.
Error occurred while processing: dep.
make: [dep/joypad.mk] Error 1 (ignored)
rgbasm -v -L -p 0xFF -isrc/ -isrc/include/ -isrc/bin/ -Wall -Wextra -h -M dep/joypad.mk -MG -MP -MQ obj/joypad.o -MQ dep/joypad.mk -o obj/joypad.o src/joypad.asm
process_begin: CreateProcess(NULL, rgbasm -v -L -p 0xFF -isrc/ -isrc/include/ -isrc/bin/ -Wall -Wextra -h -M dep/joypad.mk -MG -MP -MQ obj/joypad.o -MQ dep/joypad.mk -o obj/joypad.o src/joypad.asm, ...) failed.    
make (e=2): The system cannot find the file specified.
A subdirectory or file obj already exists.
Error occurred while processing: obj.
A subdirectory or file dep already exists.
Error occurred while processing: dep.
make: [dep/collision.mk] Error 1 (ignored)
rgbasm -v -L -p 0xFF -isrc/ -isrc/include/ -isrc/bin/ -Wall -Wextra -h -M dep/collision.mk -MG -MP -MQ obj/collision.o -MQ dep/collision.mk -o obj/collision.o src/collision.asm
process_begin: CreateProcess(NULL, rgbasm -v -L -p 0xFF -isrc/ -isrc/include/ -isrc/bin/ -Wall -Wextra -h -M dep/collision.mk -MG -MP -MQ obj/collision.o -MQ dep/collision.mk -o obj/collision.o src/collision.asm, ...) failed.
make (e=2): The system cannot find the file specified.

Windows 11 Home Version 10.0.22621 Build 22621

nummacway commented 1 day ago

This repository is seriously outdated. It already was when you posted.

Remove this line from project.mk: ASFLAGS += -h

In MAKEFILE, update these lines:

ASFLAGS  = -p ${PADVALUE} $(addprefix -I,${INCDIRS}) $(addprefix -W,${WARNINGS})
LDFLAGS  = -p ${PADVALUE}
FIXFLAGS = -p ${PADVALUE} -i "${GAMEID}" -k "${LICENSEE}" -l ${OLDLIC} -m ${MBC} -n ${VERSION} -r ${SRAMSIZE} -t ${TITLE}