1 | MATLAB Deployment Checklist |
---|
2 | =========================== |
---|
3 | |
---|
4 | Before you deploy your application, component, or library, |
---|
5 | use this checklist to ensure you create a complete deployment package. |
---|
6 | You can distribute a MATLAB Compiler-generated standalone |
---|
7 | application, component, or library to any target machine with |
---|
8 | the same operating system as the machine on which |
---|
9 | the application was compiled (the "source" development machine). |
---|
10 | |
---|
11 | For more information, see the documentation for the MATLAB Compiler at: |
---|
12 | http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/ |
---|
13 | |
---|
14 | NOTE: Items enclosed in angle brackets ( < > ) are variables. |
---|
15 | |
---|
16 | 1. Ensure that the MATLAB Component |
---|
17 | Runtime (MCR) is installed on target machines, and ensure you |
---|
18 | have installed the correct version. To verify this, do the following: |
---|
19 | |
---|
20 | A. Attempt to verify the MCR exists on your system. |
---|
21 | The MCR usually resides in these locations on these platforms: |
---|
22 | |
---|
23 | Operating System Path to MCR |
---|
24 | ================ =========== |
---|
25 | Windows C:\Program Files\MATLAB\MATLAB Component Runtime\v76 |
---|
26 | Mac/Intel Mac Applications/MATLAB/MATLAB_Component_Runtime/ |
---|
27 | Linux *** No predetermined installation location *** |
---|
28 | Contact your system administrator. |
---|
29 | |
---|
30 | *IMPORTANT: Always attempt to locate an existing MCR on your |
---|
31 | system before using the BUILDMCR command to create |
---|
32 | an MCR. If you must create an MCR, see the Compiler |
---|
33 | documentation for more details |
---|
34 | |
---|
35 | B. MATLAB 2007a uses MCR version 7.6. To verify |
---|
36 | the version number of the installed MCR, type the following command: |
---|
37 | [mcrmajor,mcrminor]=mcrversion |
---|
38 | at the MATLAB command prompt. |
---|
39 | |
---|
40 | |
---|
41 | 2. Add the MCR directory to the path specified by the target system's |
---|
42 | environment variable. |
---|
43 | |
---|
44 | A. Locate the name of the environment variable to set, using the |
---|
45 | table below: |
---|
46 | |
---|
47 | Operating System Environment Variable |
---|
48 | ================ ==================== |
---|
49 | Windows PATH |
---|
50 | Linux LD_LIBRARY_PATH |
---|
51 | Solaris LD_LIBRARY_PATH |
---|
52 | Mac DYLD_LIBRARY_PATH |
---|
53 | |
---|
54 | B. Set the path by doing one of the following: |
---|
55 | |
---|
56 | On Windows systems: |
---|
57 | |
---|
58 | * Add the MCR directory to the environment variable by opening a |
---|
59 | command prompt and issuing the DOS command: |
---|
60 | |
---|
61 | set PATH=C:\Program Files\MATLAB\MATLAB Component |
---|
62 | Runtime\v76;%PATH% |
---|
63 | |
---|
64 | or, add: |
---|
65 | |
---|
66 | C:\Program Files\MATLAB\MATLAB Component Runtime\v76 |
---|
67 | |
---|
68 | to the PATH environment variable by doing the following: |
---|
69 | |
---|
70 | 1. Select the My Computer icon on your desktop. |
---|
71 | 2. Right-click the icon and select Properties from the menu. |
---|
72 | 3. Select the Advanced tab. |
---|
73 | 4. Click Environment Variables. |
---|
74 | Your environment variables are listed. |
---|
75 | |
---|
76 | On UNIX systems: |
---|
77 | |
---|
78 | * Add the MCR directory to the environment variable by issuing |
---|
79 | this command: |
---|
80 | |
---|
81 | setenv PATH /<matlabroot>/v76:"$PATH" |
---|
82 | |
---|
83 | To make this change persistent after logout on UNIX machines, |
---|
84 | modify the .cshrc file to include this setenv command. |
---|
85 | |
---|
86 | NOTE: On Windows, the Environment Variable syntax utilizes |
---|
87 | backslashes (\), delimited by semi-colons (;). On UNIX, |
---|
88 | the EV syntax utilizes forward |
---|
89 | slashes (/), delimited by colons (:). |
---|
90 | NOTE: When deploying C and C++ standalone applications, it is possible |
---|
91 | to run the shell script file run_kicker_scaling.sh on UNIX and Mac |
---|
92 | instead of setting environment variables. See "Requirements |
---|
93 | for Standalone Applications," below. |
---|
94 | |
---|
95 | |
---|
96 | 3. Create packages that contain the following files, based on what |
---|
97 | you are deploying: |
---|
98 | |
---|
99 | Requirements for Standalone Applications: |
---|
100 | ========================================= |
---|
101 | |
---|
102 | All Platforms: |
---|
103 | * kicker_scaling.ctf (Component Technology File archive, |
---|
104 | platform-dependent on target machine) |
---|
105 | |
---|
106 | Windows: |
---|
107 | * MCRInstaller.exe (self-extracting MATLAB Component Runtime |
---|
108 | library archive) |
---|
109 | * kicker_scaling.exe (application created by MATLAB Compiler) |
---|
110 | UNIX: |
---|
111 | * MCRInstaller.zip (MATLAB Component Runtime library |
---|
112 | archive - manual unzip required) |
---|
113 | * kicker_scaling (application created by MATLAB Compiler) |
---|
114 | * run_kicker_scaling.sh (shell script that can be run |
---|
115 | to temporarily set environment paths and execute the application) |
---|
116 | |
---|
117 | |
---|
118 | Requirements for C and C++ shared libraries: |
---|
119 | ============================================================ |
---|
120 | |
---|
121 | All Platforms: |
---|
122 | * kicker_scaling.so (shared library, file extension |
---|
123 | varies by platform) |
---|
124 | * kicker_scaling.h (library header file) |
---|
125 | * kicker_scaling.ctf (Component Technology File archive, |
---|
126 | platform-dependent on target machine) |
---|
127 | |
---|
128 | Windows: |
---|
129 | * MCRInstaller.exe (self-extracting MATLAB Component Runtime |
---|
130 | library archive) |
---|
131 | |
---|
132 | UNIX: |
---|
133 | * MCRInstaller.zip (MATLAB Component Runtime library |
---|
134 | archive - manual unzip required) |
---|
135 | * unzip (optional utility to unzip MCRInstaller.zip) |
---|
136 | |
---|
137 | |
---|
138 | |
---|
139 | Requirements for .NET Components (Windows only): |
---|
140 | ================================================ |
---|
141 | |
---|
142 | * kicker_scaling.ctf (Component Technology File archive) |
---|
143 | * kicker_scaling.xml (documentation files) |
---|
144 | * kicker_scaling.pdb (program database file - if |
---|
145 | DEBUG option selected) |
---|
146 | * kicker_scaling.dll (component assembly file) |
---|
147 | * MCRInstaller.exe (self-extracting MATLAB Component Runtime |
---|
148 | library archive) |
---|
149 | |
---|
150 | |
---|
151 | Requirements for COM Components (Windows only): |
---|
152 | =============================================== |
---|
153 | |
---|
154 | * kicker_scaling.ctf (Component Technology File archive) |
---|
155 | * kicker_scaling_1_0.dll (component containing |
---|
156 | compiled M-code) |
---|
157 | * _install.bat (script run by self-extracting executable) |
---|
158 | * MCRInstaller.exe (self-extracting MATLAB Component Runtime |
---|
159 | library archive) |
---|
160 | |
---|
161 | |
---|
162 | Requirements for Java Components (All Platforms): |
---|
163 | ================================================= |
---|
164 | |
---|
165 | * kicker_scaling.jar (Java archive containing Java |
---|
166 | interface to M-code in kicker_scaling.ctf) |
---|
167 | * kicker_scaling.ctf (Component Technology File archive, |
---|
168 | platform-dependent on target machine) |
---|
169 | |
---|
170 | |
---|
171 | Requirements for COM Components for Use with Microsoft Excel (Windows only): |
---|
172 | ============================================================================ |
---|
173 | |
---|
174 | * kicker_scaling_1_0.dll (component containing |
---|
175 | compiled M-code) |
---|
176 | * kicker_scaling.ctf (Component Technology File archive) |
---|
177 | * _install.bat (script run by self-extracting executable) |
---|
178 | * <add_in_file>.xla (Excel add-ins found in: |
---|
179 | \distrib directory) |
---|
180 | * MCRInstaller.exe (self-extracting MATLAB Component Runtime |
---|
181 | library archive) |
---|
182 | |
---|
183 | |
---|