liballeg / allegro5

The official Allegro 5 git repository. Pull requests welcome!
https://liballeg.org
Other
1.88k stars 284 forks source link

Build error on Pi3 , Allegro 5.2.7 #1301

Open chundermike opened 2 years ago

chundermike commented 2 years ago
[ 10%] Building C object CMakeFiles/allegro.dir/src/x/xevents.c.o
/home/pi/fruitbox/build/allegro-5.2.7.0/src/x/xevents.c: In function ‘_al_xwin_background_thread’:
/home/pi/fruitbox/build/allegro-5.2.7.0/src/x/xevents.c:223:13: error: ‘ALLEGRO_SYSTEM_RASPBERRYPI’ {aka ‘struct ALLEGRO_SYSTEM_RASPBERRYPI’} has no member named ‘screen_saver_query_available’
       if (!s->screen_saver_query_available && s->inhibit_screensaver) {
             ^~
make[2]: *** [CMakeFiles/allegro.dir/build.make:947: CMakeFiles/allegro.dir/src/x/xevents.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:694: CMakeFiles/allegro.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
chundermike commented 2 years ago

sorry, forgot to mention this is using the command

cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-raspberrypi.cmake -DSHARED=off