[Lazarus] GTK3 widgets on macOS?
Ryan Joseph
genericptr at gmail.com
Tue Nov 26 00:12:12 CET 2019
> On Nov 25, 2019, at 6:03 PM, Sven Barth via lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
> Should be. 🤔
>
> 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...
>
Maybe I'm just doing Lazarus wrong. It appears -sh is already enabled because I get a ppaslink.sh.
#!/bin/sh
DoExitAsm ()
{ echo "An error occurred while assembling $1"; exit 1; }
DoExitLink ()
{ echo "An error occurred while linking $1"; exit 1; }
OFS=$IFS
IFS="
"
/usr/bin/ld /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/crt1.10.5.o -multiply_defined suppress -L. -o /Users/ryanjoseph/Desktop/lazgtktest/project1 `cat /Users/ryanjoseph/Desktop/lazgtktest/link.res`
if [ $? != 0 ]; then DoExitLink ; fi
IFS=$OFS
Here's the full command line copied from Lazarus.
/usr/local/bin/fpc
-MObjFPC
-Scghi
-O1
-gw
-gl
-l
-vewnhibq
-Filib/x86_64-darwin
-Fl/usr/local/Cellar/gtk+3/3.24.5/lib
-Fu../../Developer/lazarus/lcl/units/x86_64-darwin/gtk3
-Fu../../Developer/lazarus/lcl/units/x86_64-darwin
-Fu../../Developer/lazarus/components/lazutils/lib/x86_64-darwin
-Fu../../Developer/lazarus/packager/units/x86_64-darwin
-Fu.
-FUlib/x86_64-darwin
-FE.
-oproject1
-dLCL
-dLCLgtk3
Regards,
Ryan Joseph
More information about the lazarus
mailing list