uli / basicengine-firmware

BASIC Engine Firmware
78 stars 16 forks source link

SDL build fails #79

Closed rs1909 closed 2 years ago

rs1909 commented 2 years ago

I get the following error message after $ make sdl

ninja -f build.ninja.sdl [1/104] python ttbasic/epi.py <ttbasic/epigrams.txt >ttbasic/epigrams.h FAILED: ttbasic/epigrams.h python ttbasic/epi.py <ttbasic/epigrams.txt >ttbasic/epigrams.h File "/home/rs1909/Sources/basicengine-firmware/ttbasic/epi.py", line 4 print 'static const char __ep%d [] PROGMEM = "%s";' % (count, i.strip()) ^ SyntaxError: invalid syntax ninja: build stopped: subcommand failed.

I am sure that this is trivial python, so there might be an easy fix. Compilation is on Fedora 34 fully updated, Python 3.9.7, SDL version 2.0.16

uli commented 2 years ago

That was still a Python 2 script. I fixed it up so it works with Python 3 as well.