MATLAB COMPILER 4 Manuel d'utilisateur Page 12

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 21
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 11
Annotation
(i) Libraries under Linux are restricted to the prefix lib in the library name. Using the
second line the library will be linked to the MATLAB C/C++ Graphics Library at
linking stage.
(ii) The -fPIC option is to tell the compiler to create Position Indepe ndent Code (create
libraries that use relative addresses), so a compiled library can be loaded multiple
times at run-time [2].
(iii) Using compiler the flag -shared a shared library will be linked.
4.5 Distribution of MATLAB Executables
To distribute a stand-alone application for Linux, you must create a package containing
these components:
(i) The stand-alone executable
(ii) The contents, if any, of a directory named bin
(iii) Any MEX-files used by the application
(iv) The MATLAB Run-Time Libraries
(v) Any other library that was linked with the application
Annotation
(ii) The directory bin may contain the *.fig files that are required f or correct displaying
the toolbar of a graphical application. This directory must be placed in the same
directory as the executable.
(iii) To determine which MEX-files would be needed, search for C-files called
* mex interface *.c generated by the MATLAB Compiler. T he MEX-files apper-
taining to these C-files must be placed in the subdirectory called bin. MEX-files
installed in a private directory in MATLAB must also be installed in a private di-
rectory within the directory bin. For an example see [10]. If this still does not
work, all those the MEX-files will have to be copied into the same directory as
the executable. Unlike described in [10] this e ven works for functions of the Image
Processing Toolbox.
(iv) The MATLAB Run-Time libraries can be distributed using the executable
mglinstaller
4
, which can be found under matlab dir/extern/lib/glnx86. This ap-
plication installs the MATLAB Math and Graphics Run-Time Libraries.
Once the installer has finished, the directory ma tlab rt dir/bin/glnx86 must be
added to the LD LIBRARY PATH environment variable as well as the parent path
of your own MATLAB libraries.
4
For privacy policy and license agreement for this installer refer to [8].
12
Vue de la page 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 20 21

Commentaires sur ces manuels

Pas de commentaire