sudo apt-get install libpng16-dev libjpeg62-dev libfreetype6-dev
target_link_libraries(your_project_name allegro_image allegro_png allegro_font allegro_ttf)
ALLEGRO_BITMAP* bitmap = al_load_bitmap("image.png");
或
ALLEGRO_BITMAP* bitmap = al_load_png("image.png");