Recent

Author Topic: [SOLVED]32-bit compiled Apple Mac Application, how run on a 64-bit Apple System?  (Read 2023 times)

Gizmo

  • Hero Member
  • *****
  • Posts: 688
I have an old Apple Mac 32-bit, running Mac Yosemite.

I have Lazarus 1.4.2 and FPC 2.6.4 installed. I can compile an application (done an application bundle, MyProject.app) OK with it and it runs fine and I'd like to release it. But I have no way of knowing if it will run on 64-bit Apple Mac systems because I can't just download and install a 64-bit Apple Mac OS and run it in a virtual machine.

Can anyone tell me if, like a 32-bit compiled Windows exe, it will simply run in a 32-bit mode on a 64-bit OS or will it fail to run at all, like on Linux systems, wherein I have to create a 64-bit binary on my main PC and then a 32-bit version on a 32-bit Linux virtual machine.
« Last Edit: October 05, 2015, 08:04:25 pm by Gizmo »
Lazarus 2.0.4 and fpc 3.0.4 - Linux Mint 19 LTS, Windows 10 64 and Mac OSX Catlina
Useful Page to remember : http://wiki.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386

GetMem

  • Hero Member
  • *****
  • Posts: 3519
Yes, you can run 32-bit applications on a 64-bit Apple Mac system. This is also true for windows and linux(under linux though, you might have some dependency issues).
Strangely enough under OSX you can even run a 64 bit application on 32 bit kernel. 

Gizmo

  • Hero Member
  • *****
  • Posts: 688
Cool, thanks GetMem.

I've done a few small utilities for Windows and they all just run in 32-bit mode on 64 bit, and for Linux, you're right - it's not so much the binary but the dependancies. I've had to re-compile from source a few SO files to go along with the binary.

Anyway that answers that - SOLVED. tA
Lazarus 2.0.4 and fpc 3.0.4 - Linux Mint 19 LTS, Windows 10 64 and Mac OSX Catlina
Useful Page to remember : http://wiki.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386