Forum > macOS / Mac OS X

FPC Problem Installing MacOs Mojave 10.14.6

(1/2) > >>

aconforti:
Hello all,

Im new in Lazarus and im trying to install FPC 3.2.2.intelarm64-macosx but having the same problem over and over.

The instalation gets stuck when "running package scripts".

I have a MacOs Mojave 10.14.6.

This is what i have already done

1 - Install Xcode 11.3.1.

2 - Install and accept licence command line tool.
sudo xcode-select --install
sudo xcodebuild -license accept

3 - Install Macports

4 - Install gbd.
sudo port install gdb

5 - add <string>-sp</string> to /System/Library/LaunchDaemons/com.apple.taskgated.plist

6 - Download fpc-3.2.2.intelarm64-macosx from https://sourceforge.net/

and here is where im stuck...  tried also with 3.2.0 with the same problem

Wish u can help me.

Thanks all!



I already Solve it Thanks anyway!

Jonas Maebe:
When it's stuck like that, can you go to Window -> Installer Log and then in the window choose "Show all logs"? The only thing that gets executed at the end is samplecfg to generate /etc/fpc.cfg

trev:
@aconforti:

1) How did you solve it?

2) Why are you installing gdb? See this Wiki link for configuring the native macOS lldb debugger.

aconforti:

--- Quote from: trev on August 10, 2021, 02:46:11 am ---@aconforti:

1) How did you solve it?
--- End quote ---

I finished installing Lazarus but still having issues with GDB and when trying to BUILD getting some errors with Make

Build IDE: Exit code 2, Errors: 3
Error: gmake[2]: *** [Makefile:4667: lazarus] Error 1
Error: gmake[1]: *** [Makefile:5105: idepkg] Error 2
gmake: *** [Makefile:3736: idepkg] Error 2
Error: Unsupported target architecture -Pi386, invoke the "fpc" compiler driver instead.


--- Quote ---2) Why are you installing gdb? See this Wiki link for configuring the native macOS lldb debugger.
--- End quote ---

thanks i have already done everything and install LazDebuggerFpLLdb package, but when im trying to run it just start debbuging and stops withous bringin on the terminal  :'(  :'(

Mac is giving me such a headache!

[Edited to fix quotation tags]

trev:

--- Quote ---I finished installing Lazarus but still having issues with GDB
--- End quote ---

Stop using gdb and use the native macOS lldb debugger per the link I posted.


--- Quote ---and when trying to BUILD getting some errors with Make

Build IDE: Exit code 2, Errors: 3
Error: gmake[2]: *** [Makefile:4667: lazarus] Error 1
Error: gmake[1]: *** [Makefile:5105: idepkg] Error 2
gmake: *** [Makefile:3736: idepkg] Error 2
Error: Unsupported target architecture -Pi386, invoke the "fpc" compiler driver instead.
--- End quote ---

The error is pretty explicit. You have set an unsupported target architecture. I have no idea what you have set, but the target architecture should be Darwin.


--- Quote ---install LazDebuggerFpLLdb package, but when im trying to run it just start debbuging and stops withous bringin on the terminal
--- End quote ---

Lazarus > View > Debug Windows - choose the appropriate window. Make sure you have debug options turned on in Project Options.

If you don't want to use the Lazarus IDE debug windows, you can start your executable  directly with the debugger:

 lldb ./myapp.app/Contents/MacOS/myapp

Navigation

[0] Message Index

[#] Next page

Go to full version