Thanks, Phil. OK, I have rebuilt the trunk with cocoa to get a Cocoa Lazarus 1.9. I then created a shell script with:
#!/bin/sh
open lazarus.app --args "--pcp=~/.laz-cocoa"
That launches the cocoa Lazarus successfully.
I then downloaded the truck source again to another folder
~/code/fpc/laz-carbon and rebuilt the source there with
make LCL_PLATFORM=cocoa CPU_TARGET=x86_64. Then I created another shell script with:
#!/bin/sh
open lazarus.app --args "--pcp=~/.laz-carbon"
When I run this shell script it fails to open Lazarus and gives the error:
The application cannot be opened because its executable is missing.A quick search on google led me to try:
chmod +x lazarus.app/Contents/MacOS/*but this did not help.
I can only assume I did something wrong when building the Carbon version of the Lazarus trunk, but it all seemed to run ok, so I'm really puzzled at the moment. Can anyone help?