[ 12%] Built target allegro
[ 14%] Built target allegro_primitives
[ 15%] Built target allegro_image
[ 16%] Built target allegro_font
[ 17%] Built target allegro_audio
[ 18%] Built target allegro_acodec
[ 18%] Building C object addons/ttf/CMakeFiles/allegro_ttf.dir/ttf.c.obj
/home/allefant/allegro/git/addons/ttf/ttf.c: In function ‘copy_glyph_mono’:
/home/allefant/allegro/git/addons/ttf/ttf.c:354:45: error: ‘FT_PIXEL_MODE_BGRA’ undeclared (first use in this function); did you mean ‘FT_PIXEL_MODE_GRAY’?
  354 |       if (face->glyph->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA) {
      |                                             ^~~~~~~~~~~~~~~~~~
      |                                             FT_PIXEL_MODE_GRAY
/home/allefant/allegro/git/addons/ttf/ttf.c:354:45: note: each undeclared identifier is reported only once for each function it appears in
/home/allefant/allegro/git/addons/ttf/ttf.c: In function ‘copy_glyph_color’:
/home/allefant/allegro/git/addons/ttf/ttf.c:407:45: error: ‘FT_PIXEL_MODE_BGRA’ undeclared (first use in this function); did you mean ‘FT_PIXEL_MODE_GRAY’?
  407 |       if (face->glyph->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA) {
      |                                             ^~~~~~~~~~~~~~~~~~
      |                                             FT_PIXEL_MODE_GRAY
/home/allefant/allegro/git/addons/ttf/ttf.c: In function ‘cache_glyph’:
/home/allefant/allegro/git/addons/ttf/ttf.c:470:25: error: ‘FT_LOAD_COLOR’ undeclared (first use in this function)
  470 |        ft_load_flags |= FT_LOAD_COLOR;
      |                         ^~~~~~~~~~~~~
make[2]: *** [addons/ttf/CMakeFiles/allegro_ttf.dir/build.make:77: addons/ttf/CMakeFiles/allegro_ttf.dir/ttf.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:876: addons/ttf/CMakeFiles/allegro_ttf.dir/all] Error 2
make: *** [Makefile:136: all] Error 2