Recent

Author Topic: Lazarus Release 2.0.6  (Read 79971 times)

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Re: Lazarus Release 2.0.6
« Reply #75 on: November 16, 2019, 05:44:50 am »
I'm wondering -- why can't the macOS version just be completely packaged in a Lazarus.app bundle?  I mean, FPC, FPC-SRC and Lazarus all together in one app bundle, then it can just be dragged to the Applications folder instead of doing an install?  :)
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

mischi

  • Full Member
  • ***
  • Posts: 170
Re: Lazarus Release 2.0.6
« Reply #76 on: November 16, 2019, 02:39:15 pm »
Simply because no one had the time to fully port Lazarus from other unixoides and windows to macOS.

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 184
    • http://www.lazarus.freepascal.org
Re: Lazarus Release 2.0.6
« Reply #77 on: November 17, 2019, 07:41:37 pm »
I'm wondering -- why can't the macOS version just be completely packaged in a Lazarus.app bundle?  I mean, FPC, FPC-SRC and Lazarus all together in one app bundle, then it can just be dragged to the Applications folder instead of doing an install?  :)

Theoretically you can create one FPCLaz bundle.

The reason is flexibility and keeping the number of FPC releases small, which helps reducing the confusion in the bug tracker and forums.
Normally Lazarus simply uses the FPC release and adds a FPCSrc and Lazarus package.
Many users install the FPC package and then use Lazarus trunk.
As the FPC team has not yet created a Catalina release yet I had to create one. The FPC 3.2 release will hopefully provide a macOS package for Catalina, which Lazarus can then use.

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Re: Lazarus Release 2.0.6
« Reply #78 on: November 20, 2019, 07:38:08 am »
As the FPC team has not yet created a Catalina release yet I had to create one. The FPC 3.2 release will hopefully provide a macOS package for Catalina, which Lazarus can then use.

I ended up just building trunk and using that. 

Note to everyone, you will most likely need to add the platform variable to the end of the make command for Catalina and possibly others, otherwise you'll get an error during compilation saying cocoabars.pp can't be made.  So following the instructions here, I ended up using this as my make command for Lazarus:

Code: Text  [Select][+][-]
  1. make bigide LCL_PLATFORM=cocoa

:D
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Re: Lazarus Release 2.0.6
« Reply #79 on: November 22, 2019, 09:00:44 am »
I get error when try to compile any from my apps on macOS Catalina:

"ld: file not found: /usr/lib/crt1.10.5.o'

I already performed:
xcode-select --install"

I tried to add
Code: Pascal  [Select][+][-]
  1. -Fl/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/
but I have no permission to edit fpc.cfg

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 184
    • http://www.lazarus.freepascal.org
Re: Lazarus Release 2.0.6
« Reply #80 on: November 22, 2019, 09:22:44 am »
"ld: file not found: /usr/lib/crt1.10.5.o'

Does your fpc.cfg contain
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
?

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Re: Lazarus Release 2.0.6
« Reply #81 on: November 22, 2019, 09:52:41 am »
No, this line doesn't exist.

To my shame I cannot edit fpc.cfg in Catalina. No file rights.

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 184
    • http://www.lazarus.freepascal.org
Re: Lazarus Release 2.0.6
« Reply #82 on: November 22, 2019, 10:59:59 am »
No, this line doesn't exist.

To my shame I cannot edit fpc.cfg in Catalina. No file rights.

Then you should ask the administrator to add the line.
Alternatively you can add the option in Lazarus as global option:
https://wiki.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_all_projects_and_packages

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Re: Lazarus Release 2.0.6
« Reply #83 on: November 22, 2019, 11:17:42 am »
I own this Macbook, just can't remember how to edit /etc/fpc.cfg - macOS doesn't allow modify this file.

Zvoni

  • Hero Member
  • *****
  • Posts: 2300
Re: Lazarus Release 2.0.6
« Reply #84 on: November 22, 2019, 11:23:29 am »
I own this Macbook, just can't remember how to edit /etc/fpc.cfg - macOS doesn't allow modify this file.
On a Terminal elevate yourself to superuser (su/sudo)?
On Linux i just do "sudo gedit /etc/fpc.cfg" with gedit being my Texteditor
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 184
    • http://www.lazarus.freepascal.org
Re: Lazarus Release 2.0.6
« Reply #85 on: November 22, 2019, 12:10:50 pm »
I own this Macbook, just can't remember how to edit /etc/fpc.cfg - macOS doesn't allow modify this file.

Open Terminal
 sudo nano /etc/fpc.cfg

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Re: Lazarus Release 2.0.6
« Reply #86 on: November 23, 2019, 02:08:56 am »
"ld: file not found: /usr/lib/crt1.10.5.o'

Does your fpc.cfg contain
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk?

I have the same problem.  Everything was building fine then -- BOOM -- "ld: file not found: /usr/lib/crt1.10.5.o".  I *did* have the 'CommandLineTools' line in my fpc.cfg and they are installed, still no joy.

I've had enough of this monkey-business.  I give up on Lazarus on Mac.  I'm actually even selling my Mac because not being able to run Lazarus on it successfully was the last straw.  Now I will try building on FreeBSD and see what happens.
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Re: Lazarus Release 2.0.6
« Reply #87 on: November 23, 2019, 05:03:47 pm »
I performed sudo nano /etc/fpc.cfg and added suggested option line.

Now Lazarus 2.0.6 works on macOS Catalina and compiles my apps.

Thanks!

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Re: Lazarus Release 2.0.6
« Reply #88 on: November 23, 2019, 05:13:51 pm »
I compiled and installed manualdock.lpk with re-compilation of Lazarus. It was OK. Lazarus restarted and I enabled docked mode for messages.

However it was another duplicated copy of Lazarus. When I closed it and launched Lazarus as usually from Apps I didn't see any docked messages.

So it seems that re-compiled Lazarus in Catalina appears in another folder, and doesn't replace original files of Lazarus, as it was in Mojave.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.0.6
« Reply #89 on: November 23, 2019, 05:49:51 pm »
So it seems that re-compiled Lazarus in Catalina appears in another folder, and doesn't replace original files of Lazarus, as it was in Mojave.
Yes, it goes into the user conf folder.
There should be a startlazarus app that takes care of always starting the correct IDE.

Afaik, if you recompile as admin, you can update the global copy (for all users)

 

TinyPortal © 2005-2018