I tested it. It reached this point:

Code:
Compiling PNGImage.pas
Fatal: Can't find unit Windows
I don't think you can use the Windows unit in Linux. I notice also that you use the unit Graphics, which I don't think even exists in FPC.