Recent

Author Topic: Running Lazarus Trunk on M1  (Read 5879 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Running Lazarus Trunk on M1
« Reply #15 on: March 23, 2022, 01:05:30 pm »
Quote
I run the executable from the Terminal (open ./project1.app/Contents/MacOS/project1)

It's enough to run "open project1.app". (Or maybe ./project1.app).
« Last Edit: March 23, 2022, 01:22:53 pm by AlexTP »

Okoba

  • Hero Member
  • *****
  • Posts: 528
Re: Running Lazarus Trunk on M1
« Reply #16 on: March 23, 2022, 01:52:42 pm »
@trev, I wish it was like Windows or at least Linux, way easier to work with console programs or while debugging and outputting. Is it not possible on mac, or is it simply a feature that is not made for now?

@DonAlfredo, thank you for the note! I think maybe fpcupdelux should check or warn for this, saving future users from similar troubles.

Okoba

  • Hero Member
  • *****
  • Posts: 528
Re: Running Lazarus Trunk on M1
« Reply #17 on: March 23, 2022, 06:49:32 pm »
@DonAlfredo I tested your suggestion and now I have a working Trunk version, thank you! Although the debugger does not returns value, but it seems a bug with fpdebug or something alike that I asked.
- It maybe better to fpcupdelux installs LazDebuggerFpLLdb package and set the proper debugger for mac, just like the stable version: https://wiki.freepascal.org/Installing_Lazarus_on_macOS#Step_5:_Configure_the_Debugger
- Still the error I mentioned for fpcupdeluxe-aarch64-darwin-cocoa remains. I can not run it in any way.
« Last Edit: March 23, 2022, 06:58:57 pm by Okoba »

Okoba

  • Hero Member
  • *****
  • Posts: 528
Re: Running Lazarus Trunk on M1
« Reply #18 on: March 17, 2023, 08:06:36 pm »
For future people wanting to run aarch64 version:
use this:
xattr -c fpcupdeluxe-aarch64-darwin-cocoa.app

 

TinyPortal © 2005-2018