gberthou / AdvanceOS

Tiny Operating System to emulate GBA on Raspberry Pi
GNU General Public License v3.0
48 stars 2 forks source link

Fatal error: can't create obj/bios.o: No such file or directory #2

Closed arteze closed 3 years ago

arteze commented 3 years ago

Error:

make
arm-none-eabi-as -march=armv6z bios.s -o obj/bios.o
Assembler messages:
Fatal error: can't create obj/bios.o: No such file or directory
make: *** [makefile:38: obj/bios.o] Error 1

makefile:38

34 OBJS_USPI=$(patsubst %.s,$(OBJDIR)/%.o,$(ASFILES_USPI))
35 OBJS_USPI+=$(patsubst %.c,$(OBJDIR)/%.o,$(CFILES_USPI))
36
37 $(OBJDIR)/%.o : %.s
38  $(ARM)-as $(ASFLAGS) $< -o $@
39
40 $(OBJDIR)/%.o : %.c
41  $(ARM)-gcc $(CFLAGS) $(INCDIR) -c $< -o $@ $(DEFINES)
gberthou commented 3 years ago

Hey, As stated in the README, you may run make build to create the required folders. This error may be confusing, for the "No such file or directory" applies to the obj folder, not to the bios.s file.

Later on, you might encounter a missing keypad, referenced in gba.c. Unfortunately, it seems that I forgot to add the keypad-related files and I no longer have them. However it is possible to comment out the #include statement, as well as the two calls to the keypad-related functions inside GBARun.

There might, kinda soon. be an update on AdvanceOS. If there is one, it will surely target more recent (and multicore) RPIs instead of the old ones. So there might be another branch, or even another repo on that topic. And I don't know whether I will continue to dev on this very repo. Keypad might "reappear" tho, but I need to find an old RPI first ;) .

Have a nice day! (And don't forget to make build)