Make[2]: *** [graf2d/asimage/libAfterImage/libAfterImage.a] Error 2

Execute:
sudo apt install curl
and then try to run “make …” again.