[Lazarus] GTK3 widgets on macOS?

Sven Barth pascaldragon at googlemail.com
Mon Nov 25 20:07:29 CET 2019


Ryan Joseph via lazarus <lazarus at lists.lazarus-ide.org> schrieb am Mo., 25.
Nov. 2019, 19:37:

> Is it possible to build projects using the GTK3 widget set while on Mac? I
> know GTK3 is cross platform itself so it should be possible to use this
> instead of the Cocoa widgets right?
>
> I try to build and I get pretty far until there is a linker error looking
> for a .so file:
>
> Error: ld: library not found for -lgtk-3.so.0
>
> On macOS I would expect this to be a framework, not a .so file. Any ideas?
>

You'll likely expect wrong considering that GTK is rather Unix centric and
doesn't like to deal with the platformisms of other platforms (both Windows
and macOS).
You'll likely have to look for a libgtk.3.dylib or so and you'll need to
adjust the import library names in the GTK3 units.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20191125/355f23c9/attachment.html>


More information about the lazarus mailing list