weber21w / uzebox-weber

Automatically exported from code.google.com/p/uzebox-weber
4 stars 1 forks source link

Can't build Toorums quest #2

Open danboid opened 1 year ago

danboid commented 1 year ago

It seems Toorums quest is the only example of a pff-using Uzebox program that I might be able to build? According to the Alter Ego thread on the Uzebox forum, the AE source doesn't build and you switched from using pff to SimpleSD, although the AE code on github is still using pff it seems.

Is the AE binary on the Uzebox wiki using SDsimple? Whatever AE is using, it works on my real Uzebox but I only get "SD ERROR." under cuzebox and uzem and the game only starts on real hardware for me.

Do you think SDsimple would be able to do the streaming required for Uzeamp? In the AE thread you said that SDsimple seemed to have better luck with mounting SD cards than pff, which means that if it can do what I need it to for Uzeamp then I should probably use SDsimple for Uzeamp too.

Here's the error I get trying to build Toorums Quest:

~/src/uzebox/demos/toorum/default$ make
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT uzeboxVideoEngineCore.o -MF dep/uzeboxVideoEngineCore.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -x assembler-with-cpp -Wa,-gdwarf2 -c  ../../../kernel/uzeboxVideoEngineCore.s
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT uzeboxCore.o -MF dep/uzeboxCore.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -c  ../../../kernel/uzeboxCore.c
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT uzeboxSoundEngine.o -MF dep/uzeboxSoundEngine.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -c  ../../../kernel/uzeboxSoundEngine.c
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT uzeboxSoundEngineCore.o -MF dep/uzeboxSoundEngineCore.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -x assembler-with-cpp -Wa,-gdwarf2 -c  ../../../kernel/uzeboxSoundEngineCore.s
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT uzeboxVideoEngine.o -MF dep/uzeboxVideoEngine.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -c  ../../../kernel/uzeboxVideoEngine.c
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT mmc.o -MF dep/mmc.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -c  ../../../kernel/petitfatfs/mmc.c
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT pff.o -MF dep/pff.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -c  ../../../kernel/petitfatfs/pff.c
avr-gcc -I"../../../kernel"  -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -mcall-prologues -fsigned-char -ffunction-sections -fno-toplevel-reorder -fdata-sections -ffreestanding -fomit-frame-pointer -fmerge-all-constants -MD -MP -MT ToorumsQuest2.o -MF dep/ToorumsQuest2.o.d  -DVIDEO_MODE=3 -DSOUND_MIXER=1 -DTRUE_RANDOM_GEN=0 -DINTRO_LOGO=0 -DRAM_TILES_COUNT=36 -D_FS_USE_WRITE=1 -D_PF_USE_WRITE=1 -DSOUND_CHANNEL_5_ENABLE=1 -DMIXER_WAVES=\"/home/dan/src/uzebox/demos/toorum/data/sounds.inc\" -DSCREEN_TILES_V=26 -DVRAM_TILES_V=26 -DFIRST_RENDER_LINE=29 -c  ../ToorumsQuest2.c
In file included from ../ToorumsQuest2.c:37:0:
../data/music.inc:164:13: error: variable ‘musicData’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
 const char *musicData[] PROGMEM = {
             ^
make: *** [Makefile:102: ToorumsQuest2.o] Error 1
danboid commented 1 year ago

Have you got any links to the homepage or any docs relating to SDsimple?