MATLAB: How can a standalone application compiled with the MATLAB Compiler 4.8 (R2008a) on Mac OS 10.5 be run on Mac OS 10.4

leopardMATLAB Compilertiger

I am using a development machine which has Mac OS 10.5 installed. I compile my application using the MATLAB Compiler 4.8 (R2008a) and then I try to deploy it on a machine running Mac OS 10.4. When I try to run the compiled application I get the following error message in the terminal window:
1000 Bus error

Best Answer

For an application compiled in Mac OS 10.5 to be run in Mac OS 10.4, the environment variable MACOSX_DEPLOYMENT_TARGET must be set to 10.4 before compiling.
In MATLAB, execute the following command before compiling:
setenv('MACOSX_DEPLOYMENT_TARGET', '10.4');