Compiling project in OS X 10.8 to run it in OS X 10.5 or greater lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- gabriemarcelo · 2014-12-02 20:39 Hi guys, I've developed a project with Lazarus 1.0.12 + FPC 2.6.2 My OS X is 10.8.5 and XCode is 4.6 Now I want to compile my project so it can run on OS X 10.5 or later. I've added -VM10.5 option (http://wiki.lazarus.freepascal.org/OS_X_Pro gramming_Tips#Deploying_an_executable.2C_Compiling_under_10.6_for_olde r_version_of_Mac_OS_X) to Lazarus but the app crashes on OS X 10.5 I guess it's because SDK 10.5 is not installed on my machine, is it right? May you guys guide me to the right direction? thanks! ---------------------------------------------------------------------- Jonas Maebe · 2014-12-02 20:56 It's -WM, not -VM. To be safer, you should indeed also link against the 10.5 SDK. The only way to get that is to install an older Xcode version under Mac OS X 10.5 or 10.6, and then copy it to your newer system. Additionally, Apple does not support compiling for Mac OS X 10.5 on OS X 10.8, so it's possible that the assembler and/or linker on 10.8 version simply cannot generate code that works on 10.5. While Apple provides a fair deal of backwards compatibility for users, it does everything in its power to get developers to only support the latest OS versions. ---------------------------------------------------------------------- gabriemarcelo · 2014-12-02 21:57 Thanks Jonas! Now I realize that it should be WM and NOT VM. I'll try to compile it and see what happens.