<div dir="ltr">> Does your fpc.cfg contain<br><div>
> -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/
</div><div><br></div><div>Many thanks, this was the resolution.</div><div><br></div><div>Cheers</div><div><br></div><div>Mike<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 7 Jan 2024 at 18:45, Mattias Gaertner via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 07.01.24 10:50, Michael Thompson via lazarus wrote:<br>
>> Adding -ld_classic as per<br>
> <a href="https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors</a><br>
> got me nowhere.<br>
> <br>
> Well, to be correct, it got me past the " ld: library 'c' not found" error,<br>
> but introduced me to a "ld: framework not found Cocoa" error.<br>
<br>
You must install XCode and do<br>
<br>
sudo xcode-select --install<br>
sudo xcodebuild -license accept<br>
<br>
Does your fpc.cfg contain<br>
<br>
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/<br>
<br>
?<br>
<br>
<br>
Mattias<br>
<br>
<br>
> Cheers<br>
> <br>
> Mike<br>
> <br>
> On Sun, 7 Jan 2024 at 17:47, Michael Thompson <<a href="mailto:mike.cornflake@gmail.com" target="_blank">mike.cornflake@gmail.com</a>><br>
> wrote:<br>
> <br>
>> G'day,<br>
>><br>
>> Apologies for this. I've just bought a MacMini specifically for Laz<br>
>> development, and I'm stuck with an issue that seems be plaguing several<br>
>> other projects. The apologies are because I'm new to Mac, I might not be<br>
>> reporting this correctly - and the info to resolve may be on the web, our<br>
>> forum or this mailing list, but I'm not finding it.<br>
>><br>
>> if I run the build script direct, I get the following output:<br>
>> mike@Mikes-Mac-mini uBee512Launcher % ./ppaslink.sh<br>
>> ld: warning: -multiply_defined is obsolete<br>
>> -macosx_version_min has been renamed to -macos_version_min<br>
>> ld: warning: ignoring duplicate libraries: '-lc'<br>
>> ld: library 'c' not found<br>
>> An error occurred while linking<br>
>><br>
>> This is exactly the build error I'm getting from within Lazarus, when I<br>
>> try to build my Project.<br>
>><br>
>> I've tried hand editing the .sh file and removing entries from the .res<br>
>> file (so I could give you more insight into what might need changing), but<br>
>> I don't know what I'm doing, and I never got a workable project. Adding<br>
>> -ld_classic as per<br>
>> <a href="https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors</a><br>
>> got me nowhere.<br>
>><br>
>> Searching for these linker errors gets me a whole slew of recent posts<br>
>> from other projects saying that build scripts need to be updated for a new<br>
>> linker in XCode 15 (which is why I started poking around with the<br>
>> ppaslink.sh script).<br>
>><br>
>> I'm not sure how to install the 'c' library (on linux I'd be apt'ing round<br>
>> about now)<br>
>><br>
>> I'm using XCode Command Line Tools 15.1 / macOS 14.2.<br>
>> I'm unable to revert to any XCode Command Lines from the 14.x range "your<br>
>> OS is too new".<br>
>> My Mac Mini is Intel based.<br>
>><br>
>> I've tried this with and without XCode installed (seems to be a separate<br>
>> product)<br>
>><br>
>> I've also bumped an identical post on the forum:<br>
>><br>
>> <a href="https://forum.lazarus.freepascal.org/index.php/topic,65153.msg501604/topicseen.html#new" rel="noreferrer" target="_blank">https://forum.lazarus.freepascal.org/index.php/topic,65153.msg501604/topicseen.html#new</a><br>
>><br>
>> Help :-(<br>
>><br>
>> Mike<br>
>><br>
>><br>
>><br>
> <br>
> <br>
-- <br>
_______________________________________________<br>
lazarus mailing list<br>
<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a><br>
<a href="https://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">https://lists.lazarus-ide.org/listinfo/lazarus</a><br>
</blockquote></div>