Forum > macOS / Mac OS X

Cross compiling from OSX 10.11 El Capitan / x86_64 to other CPU driven OSX-es

<< < (2/3) > >>

I see. Then High Sierra it will be. Thanks for enlightening me.

I am just trying to support all existing Mac platforms as far i am capable of. I actually have PowerPC Macs here (a G4 and a G5) and a Tiger, but my flat is a mess now, i cannot really use them. This is why i try to do this from an intel Mac; i've read that Lazarus can actually compile for all five architectures. The ARM64 compiling was seemingly working, the i386 did not, but it turned out that because my machine upgraded itself somehow.
I've heard of FPCDeluxe, maybe i can do cross-compiling with that for PowerPC both 32 and 64-bit.


--- Quote from: TCH on October 11, 2023, 11:00:45 am ---I've heard of FPCDeluxe, maybe i can do cross-compiling with that for PowerPC both 32 and 64-bit.

--- End quote ---
I am not commenting on fpcupdeluxe as that is really not my area of expertise but I cross compile from intel 64 bit to arm, powerpc, m68k and z80 without issues. The problem is more in the availability of the required (bin)tools which usually depend on the target platform. If you can compile those for your host (and use them) then you there should be no problem. My experience with cross compiling for mac is literally none so i have no idea what tools are required (and if they compile for other hosts).

FPCDeluxe is an installer, it will install the same compiler as you have now. If there is any sort of current cross compiler Intel to PowerPC it would install that for you too but you can do the same thing yourself.

There is " : FPC cross-compilers from Intel to 32 and 64 bit PowerPC" which may be what you want, might be worthwhile downloading and seeing what its readme files have to say. If its available, I guess the necessary tool chain exists.

Lazarus should be able to handle its part of a Cross Compile from Intel to PowerPC, but I bet no one has tried for some time.
But I'd be digging out that old hardware but there of course you will have to build your own Lazarus, again, should work, I had one going recently on IBM's PowerPC (ppc64el). But who knows ?


У меня не утанавливались FPC/Lazarus на чистую машину, используя FPCUPDeluxe, до тех пор пока я не установил версию скачав установочные пакеты с SourceForge.

Google translate:
I didn't install FPC/Lazarus on a clean machine using FPCUPDeluxe until I installed the version by downloading the installation packages from SourceForge.

All right, thanks for the tips everyone; currently High Sierra is installed and it can compile for both x86_64 and i386 and both works.

I've installed the cross-compile FPC for PowerPC, but when i try to compile the project, it says:
--- Code: ---Error: /usr/local/bin/ppcppc can't be executed, error message: Failed to execute "/usr/local/bin/ppcppc", error code: -13
--- End code ---
Of course i've tried to run it from terminal and it did work. Both as root and regular user. I also tried to look up the net about what is error code -13, but found nothing.

As for ARM64, it fails with the error messages of
--- Code: ---Error: clang: error: invalid Darwin version number: macosx11.0.0
Error: clang: error: invalid version number in '--target=arm64-apple-macosx11.0.0'
lazaruspackageintf.pas(104,0) Error: Error while assembling exitcode 1
--- End code ---
I thought FreePascal compiles almost API-independent binaries, carrying everything within the binary. Is it possible to compile for a newer OSX, than i have, or i have to make my machine dual booting?


[0] Message Index

[#] Next page

[*] Previous page

Go to full version