As the title says: the code won't build on newer systems (bookworm at least). Edit config.txt by hand (look at install.sh), and if things don´t work, you may need to run rpi-update.
Would someone from waveshareteam please update the doc and/or the script ? So much lost time !