Recent

Author Topic: 64-bit versions of Lazarus & fpc for macOS Catalina?  (Read 2130 times)

murrayELZ

  • New member
  • *
  • Posts: 9
64-bit versions of Lazarus & fpc for macOS Catalina?
« 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?

Trenatos

  • Hero Member
  • *****
  • Posts: 508
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #1 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

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #2 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)
« Last Edit: June 19, 2019, 02:36:45 am by skalogryz »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

gapa

  • New member
  • *
  • Posts: 5
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #3 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.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #4 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.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

gapa

  • New member
  • *
  • Posts: 5
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #5 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

gapa

  • New member
  • *
  • Posts: 5
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #6 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?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #7 on: August 21, 2019, 04:43:02 pm »
What catalina beta version do you've?
it might have been resolved in Beta 6
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

rvk

  • Hero Member
  • *****
  • Posts: 3842
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #8 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)

gapa

  • New member
  • *
  • Posts: 5
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #9 on: August 21, 2019, 11:47:31 pm »
Tested with Public beta 5

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #10 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.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

trev

  • Sr. Member
  • ****
  • Posts: 258
  • Former Delphi 7 and Delphi 10.2 User
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #11 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).
o Lazarus v2.1.0 r61775, FPC v3.3.1 r42640, macOS 10.14.6 (with sup update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0 (Parallels VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #12 on: August 23, 2019, 03:48:09 am »
Beta 6:
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

ChrisR

  • Full Member
  • ***
  • Posts: 103
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #13 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.

gapa

  • New member
  • *
  • Posts: 5
Re: 64-bit versions of Lazarus & fpc for macOS Catalina?
« Reply #14 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.