使用ubuntu编译最新源码以及4.5.8时候编译失败

CC src/stm32h7xx_ll_delayblock.c
GEN …/…/…/build/lib/tflm/tflm_builtin_models.c
File “/mnt/i/OpenMv/openmv-4.5.8/openmv-4.5.8/src/…/tools/tflite2c.py”, line 46
print(f’VELA {model_name}.tflite\n{“\n”.join(output)}\n’, file=sys.stderr)
^
SyntaxError: f-string expression part cannot include a backslash
Makefile:60: recipe for target ‘/mnt/i/OpenMv/openmv-4.5.8/openmv-4.5.8/src/build/lib/tflm/tflm_builtin_models.c’ failed
make[1]: *** [/mnt/i/OpenMv/openmv-4.5.8/openmv-4.5.8/src/build/lib/tflm/tflm_builtin_models.c] Error 1
/mnt/i/OpenMv/openmv-4.5.8/openmv-4.5.8/src/omv/ports/stm32/omv_portconfig.mk:660: recipe for target ‘FIRMWARE_OBJS’ failed
make: *** [FIRMWARE_OBJS] Error 2

You need to update to Python 3.12.

Thank you. I’ll update to 3.12 and build again

Even though that part of the script is never actually called unless it’s a Vela model, it seems that it causes a parser error with an older Python.
I’ve removed this line, so the script might work now with an older Python.