* * *

Author Topic: Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error  (Read 952 times)

Hansaplast

  • Sr. Member
  • ****
  • Posts: 421
  • Tweaking4All.com
    • Tweaking4All
Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error
« on: September 25, 2018, 01:54:12 pm »

Just switched to Mojave (10.14) and thought I'd share an issue I ran into.


I found that the XCode commandline tools no longer seems to include crt1.x.y.o, triggering the "Id:file not found: /usr/lib/crt1.10.5.o error" when trying to compile Lazarus (SVN, from command line).


To compile my Lazarus from SVN, I then manually re-installed the (wrong) command-line tools of 10.13. You can download it from the Apple Developers website. You'll need to login with your AppleID first, after that use this link if you can't find it.
Without it, Lazarus will not compile.


Even after re-installing the command-line tools for 10.14, I keep getting the "text-based stub ... and library file ... are out of sync" warning when compiling from the command line, like this example:


Code: Pascal  [Select]
  1. ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.


Lazarus IDE does compile now though and it does run - hope this is useful to anyone.

Hansaplast

  • Sr. Member
  • ****
  • Posts: 421
  • Tweaking4All.com
    • Tweaking4All
Re: Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error
« Reply #1 on: September 25, 2018, 06:27:57 pm »
So on 2 different computers, I have found that we have 2 options;


1) Add the following line to fpc.cfg (/etc/fpc.cfg)


Code: Pascal  [Select]
  1. -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk


2) Or install macOS 10.13 Command-line tools


This second option produces a bunch of "text-based stub ... and library file ... are out of sync" messages.


The end result is the same; issues with some of the controls.
For example; I cannot scroll through the property rows in Object inspector (nothing works; scroll wheel, moving the scrollbar, or by using cursor keys). After some testing this seems StringGrid related?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2015
    • havefunsoft.com
Re: Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error
« Reply #2 on: September 25, 2018, 06:58:46 pm »
Can you scroll at TMemo?
What’s your system preferences for scoll bars? “Always show”?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Hansaplast

  • Sr. Member
  • ****
  • Posts: 421
  • Tweaking4All.com
    • Tweaking4All
Re: Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error
« Reply #3 on: September 26, 2018, 11:09:20 am »
Hi Skalogryz,


The problem already occurs with the Object Inspector.
If a property is not in the visible area, then there is no way I can reach it - not with wheel mouse, scrollbar or arrow keys  :'(
Based on your suggestion I did test the 3 option (restarting the IDE every single time after changing a setting), but the effect remains the same for all 3 options (Automatic, When scrolling, Always).


TMemo, TListbox, and TTreeview seem to scroll correctly.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2015
    • havefunsoft.com
Re: Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error
« Reply #4 on: September 26, 2018, 02:09:03 pm »
Can you scroll TTreeView?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Hansaplast

  • Sr. Member
  • ****
  • Posts: 421
  • Tweaking4All.com
    • Tweaking4All
Re: Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error
« Reply #5 on: September 26, 2018, 07:19:18 pm »
Yes I can.
But TStringGrid goes goofy.

Hansaplast

  • Sr. Member
  • ****
  • Posts: 421
  • Tweaking4All.com
    • Tweaking4All
Re: Mojave (10.14) - Id:file not found: /usr/lib/crt1.10.5.o error
« Reply #6 on: September 28, 2018, 02:59:20 pm »
Other observation, and I tested this on a machine with Command Line tools for 10.13 and a machine with only Command Line tools 10.14;


When compiling an application under Mojave (10.14), the application sometimes responds strange. Certain specific controls (seen it with standard TLabels and TBCButtons) simply do not get drawn or refreshed, or only after moving the mouse over it.


Compiling the exact same application under High Sierra (10.13.6) result in an application that functions correctly under Mojave. No strange behavior or refresh issues.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus