bgrabitmap / lazpaint

🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
https://lazpaint.github.io/
GNU General Public License v3.0
401 stars 55 forks source link

Compiling on macOS #25

Closed lainz closed 6 years ago

lainz commented 6 years ago

Hi, I finally have the Mac. BGRABitmap, BGRAControls, MaterialDesign, all compiled fine.

When I try to compile LazPaint the first problem I found is this: if (Clipboard.Formats[i] = PredefinedClipboardFormat(pcfDelphiBitmap)) or

In the clipboard unit.

Maybe you want to install Lazarus trunk on Linux to test as well, is a change on the LCLType unit.

I'm using fpcupdeluxe to install, nothing else works on Mac, but Lazarus trunk and FPC trunk 64 bit.

circular17 commented 6 years ago

Cool.

What is the error message from the compiler?

lainz commented 6 years ago

That can't find pcfDelphiBitmap https://forum.lazarus.freepascal.org/index.php?topic=40089.0

circular17 commented 6 years ago

Ok, I removed the line on the dev branch. Is there anything else that prevents compiling?

circular17 commented 6 years ago

By the way I tidied up a bit the clipboard unit as Tiff format is supported without having to define the reader/writer.

circular17 commented 6 years ago

Note : my current Lazarus is from fpcup, it is version 1.8.0 with fpc 3.0.4.

lainz commented 6 years ago

Hi, I will test it again.

lainz commented 6 years ago

It compiles now, but it starts and then closes. But that's for another issue, I need to see how to debug (if possible with a really broken IDE) on Mac. So this part of compiling is solved.