readme.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. MATLAB Compiler
  2. 1. Prerequisites for Deployment
  3. . Verify the MATLAB Runtime is installed and ensure you
  4. have installed version 9.1 (R2016b).
  5. . If the MATLAB Runtime is not installed, do the following:
  6. (1) enter
  7. >>mcrinstaller
  8. at MATLAB prompt. The MCRINSTALLER command displays the
  9. location of the MATLAB Runtime installer.
  10. (2) run the MATLAB Runtime installer.
  11. Or download the Linux 64-bit version of the MATLAB Runtime for R2016b
  12. from the MathWorks Web site by navigating to
  13. http://www.mathworks.com/products/compiler/mcr/index.html
  14. For more information about the MATLAB Runtime and the MATLAB Runtime installer, see
  15. Package and Distribute in the MATLAB Compiler documentation
  16. in the MathWorks Documentation Center.
  17. 2. Files to Deploy and Package
  18. Files to package for Standalone
  19. ================================
  20. -a1_prepare_preprocessing
  21. -run_a1_prepare_preprocessing.sh (shell script for temporarily setting environment
  22. variables and executing the application)
  23. -to run the shell script, type
  24. ./run_a1_prepare_preprocessing.sh <mcr_directory> <argument_list>
  25. at Linux or Mac command prompt. <mcr_directory> is the directory
  26. where version 9.1 of the MATLAB Runtime is installed or the directory where
  27. MATLAB is installed on the machine. <argument_list> is all the
  28. arguments you want to pass to your application. For example,
  29. If you have version 9.1 of the MATLAB Runtime installed in
  30. /mathworks/home/application/v91, run the shell script as:
  31. ./run_a1_prepare_preprocessing.sh /mathworks/home/application/v91
  32. If you have MATLAB installed in /mathworks/devel/application/matlab,
  33. run the shell script as:
  34. ./run_a1_prepare_preprocessing.sh /mathworks/devel/application/matlab
  35. -MCRInstaller.zip
  36. -if end users are unable to download the MATLAB Runtime using the above
  37. link, include it when building your component by clicking
  38. the "Runtime downloaded from web" link in the Deployment Tool
  39. -This readme file
  40. 3. Definitions
  41. For information on deployment terminology, go to
  42. http://www.mathworks.com/help. Select MATLAB Compiler >
  43. Getting Started > About Application Deployment >
  44. Deployment Product Terms in the MathWorks Documentation
  45. Center.
  46. 4. Appendix
  47. A. Linux x86-64 systems:
  48. In the following directions, replace MCR_ROOT by the directory where the MATLAB Runtime
  49. is installed on the target machine.
  50. (1) Set the environment variable XAPPLRESDIR to this value:
  51. MCR_ROOT/v91/X11/app-defaults
  52. (2) If the environment variable LD_LIBRARY_PATH is undefined, set it to the concatenation
  53. of the following strings:
  54. MCR_ROOT/v91/runtime/glnxa64:
  55. MCR_ROOT/v91/bin/glnxa64:
  56. MCR_ROOT/v91/sys/os/glnxa64:
  57. MCR_ROOT/v91/sys/opengl/lib/glnxa64
  58. If it is defined, set it to the concatenation of these strings:
  59. ${LD_LIBRARY_PATH}:
  60. MCR_ROOT/v91/runtime/glnxa64:
  61. MCR_ROOT/v91/bin/glnxa64:
  62. MCR_ROOT/v91/sys/os/glnxa64:
  63. MCR_ROOT/v91/sys/opengl/lib/glnxa64
  64. For more detail information about setting the MATLAB Runtime paths, see Package and
  65. Distribute in the MATLAB Compiler documentation in the MathWorks Documentation Center.
  66. NOTE: To make these changes persistent after logout on Linux
  67. or Mac machines, modify the .cshrc file to include this
  68. setenv command.
  69. NOTE: The environment variable syntax utilizes forward
  70. slashes (/), delimited by colons (:).
  71. NOTE: When deploying standalone applications, it is possible
  72. to run the shell script file run_a1_prepare_preprocessing.sh
  73. instead of setting environment variables. See
  74. section 2 "Files to Deploy and Package".