MATLAB COMPILER 4 Manual do Utilizador Página 9

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 21
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 8
4 Linux
4.1 Preliminary Notes
All steps described in this section may be done inside the MATLAB environment much
easier. On the one hand side all the paths are set correctly and therefore the system
would find all include files and all necessary libraries and on the other hand side the
MATLAB Compiler would automatically link to needed libraries. Therefore it is more
reasonable to do the generation of C/C++ source code, compiling and linking within
the MATLAB environment if you only need an executable stand-alone application. But
for our intended purpose, distributing C/C++ source files that should be compiled on a
different machine, combined with unresolved problems concerning functions of the Image
Processing Toolbox, there is no way around the following steps.
4.2 Libraries and Include Paths
For some reasons, i.e. for porting the MATLAB code to some other machines where no
MATLAB environment is available, it is necessary to compile and link the M-files outside
the MATLAB environment. Therefore the (relative) paths of libraries and include files
must be passed to the compiler manually at compile stage. The include files needed for
compilation are located in
matlab dir/extern/inlcude
and the MATLAB Libraries needed for linking are located in
matlab dir/extern/lib/glnx86
matlab dir/bin/glnx86
matlab dir/sys/os/glnx86.
The libraries located in the sys/os branch are are only needed if the Motif
2
-libraries on the
local machine are missing or if the libstdc++-libc library on the local machine is different
from the version included in the installed MATLAB system. For reasons of portability
this libraries should be included in the linker path anyway. I f the correct libraries are
installed on the local machine, the locally installed libraries would be linked.
If the C source code generated by the mcc compiler should be compiled and linked on
different machines the include files and the 3 library directories must be included in the
distribution package.
2
Motif is the standard library for graphical user interface for the MATLAB system under Linux.
9
Vista de página 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... 20 21

Comentários a estes Manuais

Sem comentários