MATLAB Compiler 1. Prerequisites for Deployment . Verify the MATLAB Compiler Runtime (MCR) is installed and ensure you have installed version 7.16. . If MATLAB is installed, but the MCR is not installed, launch MCRInstaller, located in: for linux: */toolbox/compiler/deploy/glnxa64/MCRInstaller.zip for windows: */toolbox/compiler/deploy/win64/MCRInstaller.exe . If both MATLAB and the MCR are not installed, perform these steps to install the MCR 1.Start the MCR Installer. How you accomplish this depends on your computer. Windows: Double-click the compiled component package self-extracting archive file, named idi_gui_pkg.exe. This extracts the MCR Installer from the archive, along with all the files that make up the MCR. Once all the files have been extracted, the MCR Installer starts automatically. Linux: Extract the contents of the compiled component package "idi_gui_prj_pkg.zip". Use the unzip command to extract the files from the package. unzip MCRinstaller.zip Then navigate to the bin/glnxa64 folder and run the MCR Installer script. Mac: cd bin/glnxa64 ./install Note On Mac systems, you may need to enter an administrator username and password after you run ./install. For more information about the MCR and the MCR Installer, see Working With the MCR in the MATLAB Compiler User's Guide. 2. Files packagecd for Standalone ================================================================================================ Linux & Mac: -idi_gui_pck -run_idi_gui_pck.sh (shell script run to temporarily set environment variables and execute the application) -to run the shell script, type ./run_idi_gui_pck.sh at Linux or Mac command prompt. is the directory where version 7.16 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.16 of MCR installed in /mathworks/home/application/R2011b/v716, run the shell script as: ./run_idi_gui_pck.sh /mathworks/home/application/R2010a/v716 If you have MATLAB installed in /mathworks/devel/application/matlab, run the shell script as: ./run_idi_gui_pck.sh /mathworks/devel/application/matlab -MCRInstaller.zip -include when building component in deploytool -The readme file Windows: -idi_gui_pkg.exe -MCRInstaller.exe -include when building component in deploytool -The readme file 3. Definitions For information on deployment terminology, go to http://www.mathworks.com/help. Select your product and see the Glossary in the User's Guide. * NOTE: is the directory where MATLAB is installed on the target machine. 4. Appendix A. Linux systems: On the target machine, add the MCR directory to the environment variable LD_LIBRARY_PATH by issuing the following commands: NOTE: is the directory where MCR is installed on the target machine. setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH: /v716/runtime/glnx86: /v716/bin/glnx86: /v716/sys/os/glnx86: /v716/sys/java/jre/glnx86/jre/lib/i386/native_threads: /v716/sys/java/jre/glnx86/jre/lib/i386/server: /v716/sys/java/jre/glnx86/jre/lib/i386 setenv XAPPLRESDIR /v716/X11/app-defaults B. Linux x86-64 systems: On the target machine, add the MCR directory to the environment variable LD_LIBRARY_PATH by issuing the following commands: NOTE: is the directory where MCR is installed on the target machine. setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH: /v716/runtime/glnxa64: /v716/bin/glnxa64: /v716/sys/os/glnxa64: /v716/sys/java/jre/glnxa64/jre/lib/amd64/native_threads: /v716/sys/java/jre/glnxa64/jre/lib/amd64/server: /v716/sys/java/jre/glnxa64/jre/lib/amd64 setenv XAPPLRESDIR /v716/X11/app-defaults C. Mac systems: On the target machine, add the MCR directory to the environment variable DYLD_LIBRARY_PATH by issuing the following commands: NOTE: is the directory where MCR is installed on the target machine. setenv DYLD_LIBRARY_PATH $DYLD_LIBRARY_PATH: /v716/runtime/maci64: /v716/sys/os/maci64: /v716/bin/maci64: /System/Library/Frameworks/JavaVM.framework/JavaVM: /System/Library/Frameworks/JavaVM.framework/Libraries setenv XAPPLRESDIR /v716/X11/app-defaults NOTE: To make these changes persistent after logout on Linux or Mac machines, modify the .cshrc file to include this setenv command. NOTE: On Windows, the environment variable syntax utilizes backslashes (\), delimited by semi-colons (;). On Linux 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_idi_gui_pck.sh instead of setting environment variables. See section 2 "Files packagecd for Standalone". NOTE: On Maci64, ensure you are using 64-bit JVM.