Idorobots / atari-xe-multicart

A multi-game cartridge for the Atari XE.
MIT License
10 stars 8 forks source link

Makefile:28: recipe for target 'menu.bin' failed #32

Open lineaghost opened 6 years ago

lineaghost commented 6 years ago
cl65 -v -tatari  src/menu.c -Csrc/menu.cfg -m menu.bin.map -o menu.bin
Opened include file `src/menu.h'
Opened include file `/usr/lib/cc65/include/stdio.h'
Opened include file `/usr/lib/cc65/include/stddef.h'
Opened include file `/usr/lib/cc65/include/stdarg.h'
Opened include file `/usr/lib/cc65/include/stdlib.h'
Opened include file `/usr/lib/cc65/include/string.h'
Opened include file `/usr/lib/cc65/include/stddef.h'
Opened include file `/usr/lib/cc65/include/conio.h'
Opened include file `/usr/lib/cc65/include/atari.h'
Opened include file `/usr/lib/cc65/include/_gtia.h'
Opened include file `/usr/lib/cc65/include/_pbi.h'
Opened include file `/usr/lib/cc65/include/_pokey.h'
Opened include file `/usr/lib/cc65/include/_pia.h'
Opened include file `/usr/lib/cc65/include/_antic.h'
Opened include file `/usr/lib/cc65/include/atari.h'
Opened include file `/usr/lib/cc65/include/unistd.h'
Opened include file `src/games.c'
src/menu.c(42): Error: Size of data type is unknown
Input: const unsigned int num_games = sizeof(games)/sizeof(games[0]);
1 errors, 0 warnings
Makefile:28: recipe for target 'menu.bin' failed
make: *** [menu.bin] Error 1

At last for I can see in the code, its trying to get an array of games and their size, but it cannot generate it...

Idorobots commented 6 years ago

Hi, sorry for a late reply, GitHub must have decided to spare me this issue report from my home page stream. It looks like the games array is empty, hence the undefined size. Please make sure to add some raw ROM files (obtainable on the internet, but due to legalities I can't really link you to any ;)) to the ./roms directory so that the buildcart.py script can find some when generating the menu items.

Idorobots commented 6 years ago

@lineaghost I've updated the code to handle the no-games situation - it should now build properly and display a message that there are no games supplied once run. Please let me know if that has fixed your problem.

TzOk83 commented 4 years ago

In order to successfully execute the make script you need the following packages: -make -gcc -python3 -cc65