1 | MATLAB Compiler |
---|
2 | |
---|
3 | 1. Prerequisites for Deployment |
---|
4 | |
---|
5 | * Verify the MATLAB Compiler Runtime (MCR) is installed and ensure you |
---|
6 | have installed version 7.11. |
---|
7 | |
---|
8 | * If the MCR is not installed, run MCRInstaller, located in: |
---|
9 | |
---|
10 | /opt/matlab/toolbox/compiler/deploy/glnx86/MCRInstaller.bin |
---|
11 | |
---|
12 | For more information on the MCR Installer, see the MATLAB Compiler |
---|
13 | documentation. |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | 2. Files to Deploy and Package |
---|
18 | |
---|
19 | Files to package for Shared Libraries |
---|
20 | ===================================== |
---|
21 | -libpartest.so |
---|
22 | -libpartest.h |
---|
23 | -MCRInstaller.bin |
---|
24 | - include when building component by selecting "include MCR" option |
---|
25 | -This read-me file |
---|
26 | |
---|
27 | 3. Definitions |
---|
28 | |
---|
29 | MCR - MATLAB Compiler uses the MATLAB Compiler Runtime (MCR), |
---|
30 | which is a standalone set of shared libraries that enable the execution |
---|
31 | of M-files. The MCR provides complete support for all features of |
---|
32 | MATLAB without the MATLAB GUI. When you package and distribute an |
---|
33 | application to users, you include supporting files generated by the |
---|
34 | builder as well as the MATLAB Compiler Runtime (MCR). If necessary, |
---|
35 | run MCRInstaller to install the correct version of the MCR. For more |
---|
36 | information about the MCR, see the MATLAB Compiler documentation. |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | 4. Appendix |
---|
41 | |
---|
42 | A. On the target machine, add the MCR directory to the system path |
---|
43 | specified by the target system's environment variable. |
---|
44 | |
---|
45 | |
---|
46 | i. Locate the name of the environment variable to set, using the |
---|
47 | table below: |
---|
48 | |
---|
49 | Operating System Environment Variable |
---|
50 | ================ ==================== |
---|
51 | Linux LD_LIBRARY_PATH |
---|
52 | |
---|
53 | |
---|
54 | ii. Set the path by doing one of the following: |
---|
55 | |
---|
56 | NOTE: <mcr_root> is the directory where MCR is installed |
---|
57 | on the target machine. |
---|
58 | |
---|
59 | |
---|
60 | * Add the MCR directory to the environment variable by issuing |
---|
61 | the following commands: |
---|
62 | |
---|
63 | setenv LD_LIBRARY_PATH |
---|
64 | <mcr_root>/v711/runtime/glnx86: |
---|
65 | <mcr_root>/v711/sys/os/glnx86: |
---|
66 | <mcr_root>/v711/sys/java/jre/glnx86/jre/lib/i386/native_threads: |
---|
67 | <mcr_root>/v711/sys/java/jre/glnx86/jre/lib/i386/server: |
---|
68 | <mcr_root>/v711/sys/java/jre/glnx86/jre/lib/i386 |
---|
69 | setenv XAPPLRESDIR <mcr_root>/v711/X11/app-defaults |
---|
70 | |
---|
71 | |
---|
72 | NOTE: To make these changes persistent after logout on UNIX or |
---|
73 | Mac machines, modify the .cshrc file to include this |
---|
74 | setenv command. |
---|
75 | NOTE: on UNIX or Mac, the environment variable syntax utilizes |
---|
76 | forward slashes (/), delimited by colons (:). |
---|