MATLAB Compiler 1. Prerequisites for Deployment . Verify the MATLAB Compiler Runtime (MCR) is installed and ensure you have installed version 7.14. . If the MCR is not installed, run MCRInstaller, located in: */toolbox/compiler/deploy/glnxa64/MCRInstaller.bin For more information on the MCR Installer, see the MATLAB Compiler documentation. 2. Files to Deploy and Package Files to package for Standalone ================================ -runReindexing -run_runReindexing.sh (shell script run to temporarily set environment variables and execute the application) -to run the shell script, type ./run_runReindexing.sh at Unix or Mac command prompt. is the directory where version 7.14 of MCR is installed or the directory where MATLAB is installed on the machine. is all the arguments you want to pass to your application. For example, If you have version 7.14 of MCR installed in /mathworks/home/application/R2010a/v714, run the shell script as: ./run_runReindexing.sh /mathworks/home/application/R2010a/v714 If you have MATLAB installed in /mathworks/devel/application/matlab, run the shell script as: ./run_runReindexing.sh /mathworks/devel/application/matlab -MCRInstaller.bin -include when building component by selecting "include MCR" option in deploytool -This readme file 3. Definitions MCR - MATLAB Compiler uses the MATLAB Compiler Runtime (MCR), which is a standalone set of shared libraries that enable the execution of M-files. The MCR provides complete support for all features of MATLAB without the MATLAB GUI. When you package and distribute an application to users, you include supporting files generated by the builder as well as the MATLAB Compiler Runtime (MCR). If necessary, run MCRInstaller to install version 7.14 of MCR. For more information about the MCR, see the MATLAB Compiler documentation. * NOTE: is the directory where MCR is installed on the target machine. 4. Appendix A. On the target machine, add the MCR directory to the system path specified by the target system's environment variable. i. Locate the name of the environment variable to set, using the table below: Operating System Environment Variable ================ ==================== Linux LD_LIBRARY_PATH ii. Set the path by doing one of the following: NOTE: is the directory where MCR is installed on the target machine. . Add the MCR directory to the environment variable by issuing the following commands: setenv LD_LIBRARY_PATH /v714/runtime/glnxa64: /v714/sys/os/glnxa64: /v714/sys/java/jre/glnxa64/jre/lib/amd64/native_threads: /v714/sys/java/jre/glnxa64/jre/lib/amd64/server: /v714/sys/java/jre/glnxa64/jre/lib/amd64 setenv XAPPLRESDIR /v714/X11/app-defaults NOTE: To make these changes persistent after logout on UNIX or Mac machines, modify the .cshrc file to include this setenv command. NOTE: on UNIX or Mac, the environment variable syntax utilizes forward slashes (/), delimited by colons (:). NOTE: When deploying standalone applications, it is possible to run the shell script file run_runReindexing.sh on UNIX and Mac instead of setting environment variables. See section 2 "Files to Deploy and Package".