Lazarus

Programming => Widgetset => Cocoa => Topic started by: murrayELZ on June 18, 2019, 10:58:50 pm

Title: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: murrayELZ on June 18, 2019, 10:58:50 pm
What are the prospects for 64-bit versions of Lazarus & fpc in time for use under macOS Catalina?
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: Trenatos on June 18, 2019, 11:07:32 pm
I haven't tried Catalina, but you can make x64 macOS applications right now.

The easiest way is to use fpcupdeluxe
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: skalogryz on June 19, 2019, 01:12:00 am
Lazarus trunk is presumably working on the beta.
Lazarus 2.0.2 doesn't. (https://bugs.freepascal.org/view.php?id=35702)
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: gapa on July 10, 2019, 02:37:55 am
I have just build Lazarus from latest svn revision(r61555). While it is build successfully without errors I noticed that File->Open, Project->Open is not working. Just nothing happens. I can open file/project with double click. It also works with simple ShowMessage application.
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: skalogryz on July 10, 2019, 03:42:23 am
try to launch Lazarus from terminal
Code: [Select]
cd lazarus.app/Contents/MacOS
./lazarus
and see what's the output whenever you're trying to run File->Open or Project->Open

Also, try to create a sample project with TFileOpenDialog and see if it works.
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: gapa on July 10, 2019, 10:55:43 am
Basically every time I try to open file, file location I receive this message in terminal:

Quote
2019-07-10 10:48:21.263 lazarus[1707:37235] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: gapa on August 21, 2019, 04:31:25 pm
Still same problem with revision r61736.
Is this something that Lazarus/FreePascal can solve. Or is this something that should be solved inside Catalina?
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: skalogryz on August 21, 2019, 04:43:02 pm
What catalina beta version do you've?
it might have been resolved in Beta 6 (https://forum.lazarus.freepascal.org/index.php/topic,46414.0.html)
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: rvk on August 21, 2019, 04:49:56 pm
Looking on the internet it seems to be happening to a lot of programs under Catalina.

It seems to be related to the fact that Lazarus is sandboxed (because it's not an app distributed via the appstore).

https://www.emaculation.com/forum/viewtopic.php?f=20&t=10249#p63584

Not sure if and how you can disable this sandbox feature.

(Of course with beta software you always need to make sure you're running the latest)
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: gapa on August 21, 2019, 11:47:31 pm
Tested with Public beta 5
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: skalogryz on August 22, 2019, 02:14:00 am
Tested with Public beta 5
Beta 6 has been released Aug 19th.
It seems to fix the issue.
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: trev on August 22, 2019, 04:22:09 am
Tested with Public beta 5

It was fixed in developer beta 6 for my application which exhibited the same behaviour you describe.

As to public betas, this is what OSX Daily says:

Quote
Apple has released MacOS Catalina 10.15 beta 6 to those who are enrolled in the developer beta testing program for macOS system software. Typically a developer beta arrives first, soon followed by the same build as a public beta release yet versioned a number behind. MacOS Catalina beta 6 would be MacOS Catalina public beta 5. Dev beta 6 carries the build 19A536g.

So I'm not sure why you still have the issue - note that my application was generated with Lazarus trunk and FPC trunk.

The Catalina beta road has been somewhat bumpy so far. I find it, even as a mere hobbyist, worth paying Apple their $US 99 for developer status which includes two "free" Technical Support Incidents (one of which I have used to discover how non-Xcode generated command-line executables could be notarised).
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: skalogryz on August 23, 2019, 03:48:09 am
Beta 6:
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: ChrisR on August 24, 2019, 08:53:49 pm
@trev you mention one of which I have used to discover how non-Xcode generated command-line executables could be notarised. Can you describe the solution? I have asked this on the MacOS Lazarus forum and would like to know the solution.
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: gapa on September 24, 2019, 10:06:05 am
Latest test with svn r61912 and Catalina public beta 8 works. Also did some basic tests and it works.
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: DavidJameson on December 11, 2019, 12:50:24 pm
I also cannot install FPC 3.0.4a on a macbook running Catalina (OS X 10.15). The actual error (which doesn't seem to have been correctly supplied in earlier threads) is

The package is trying to install content to the system volume. Contact the software manufacturer for assistance.

I have disabled SIP but that didn't help.

Anyone know how to get FPC up and running on catalina?
Title: Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
Post by: DavidJameson on December 11, 2019, 01:00:03 pm
Yay - found the reference below in another thread and this worked for me too.


Thanks to Mattias Gaertner, this works now for me:
  https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/
TinyPortal © 2005-2018