Lazarus

Programming => Operating Systems => macOS / Mac OS X => Topic started by: Gizmo on October 05, 2015, 06:45:56 pm

Title: [SOLVED]32-bit compiled Apple Mac Application, how run on a 64-bit Apple System?
Post by: Gizmo on October 05, 2015, 06:45:56 pm
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.
Title: Re: Will a 32-bit compiled Apple Mac Application run on a 64-bit Apple System?
Post by: balazsszekely on October 05, 2015, 07:18:38 pm
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. 
Title: Re: Will a 32-bit compiled Apple Mac Application run on a 64-bit Apple System?
Post by: Gizmo on October 05, 2015, 08:03:51 pm
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
TinyPortal © 2005-2018