<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ryan Joseph via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> schrieb am Mo., 25. Nov. 2019, 20:19:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Nov 25, 2019, at 2:07 PM, Sven Barth via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank" rel="noreferrer">lazarus@lists.lazarus-ide.org</a>> wrote:<br>
> <br>
> 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).<br>
> 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. <br>
> <br>
<br>
I see in LazGdk3.pas there is a $LINKLIB line which is wrong. On my system at /usr/local/Cellar/gtk+3/3.24.5/lib there is a libgtk-3.dylib which I can link to. I changde these to this:<br>
<br>
{$LINKLIB libgtk-3.dylib}<br>
{$LINKLIB libgdk-3.dylib}<br>
<br>
I then added -Fl/usr/local/Cellar/gtk+3/3.24.5/lib to the command line but I still get a linker error "Error: ld: library not found for -lgtk-3"<br>
<br>
For proof:<br>
<br>
ls /usr/local/Cellar/gtk+3/3.24.5/lib<br>
girepository-1.0 libgailutil-3.dylib libgtk-3.0.dylib<br>
gtk-3.0 libgdk-3.0.dylib libgtk-3.dylib<br>
libgailutil-3.0.dylib libgdk-3.dylib pkgconfig<br>
<br>
Is that not correct?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Should be. 🤔</div><div dir="auto"><br></div><div dir="auto">Would you please compile with -sh option which will generate a ppas.sh file (I think) in the output directory (I think as well) which will contain the command line the linker will be called with and check that? Maybe you can then pass some verbosity switch to the linker to find out what goes wrong... </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>