User`s guide
Building Stand-Alone Applications on UNIX
4-13
About the mbuild Script
The mbuild script supports various options that allow you to customize the
building and linking of your code. Many users do not need to know any
additional details of the
mbuild script; they use it in its simplest form. For
complete information about the
mbuild script and its options, see the mbuild
reference page.
Packaging UNIX Applications
To distribute a stand-alone UNIX application, you must create a package
containing these files:
• Your application executable.
• The contents, if any, of a directory named
bin, created by mbuild in the same
directory as your application executable. Note:
mbuild does not create a bin
directory for every stand-alone application.
• Any custom MEX-files your application uses.
• All the MATLAB run-time libraries.
For specific information about packaging these files, see “Distributing
Stand-Alone Applications” on page 4-27.
Distribution Caveats
Locating Shared Libraries. Remember to locate the shared libraries along the
LD_LIBRARY_PATH (SHLIB_PATH on HP) environment variable so that they can
be found and loaded.
Graphics Support on IBM_RS. There is no support for the MATLAB C/C++
Graphics Library on the IBM_RS platform.
C++ and Fortran Support on Digital UNIX. MATLAB users require access to both the
C++ and Fortran run-time shared libraries. These are usually provided as part
of the operating system installation. For Digital UNIX, however, the C++
shared libraries are part of the base installation package, but the Fortran
shared libraries are on a separate disk called the “Associated Products CD.”
MATLAB users running under Digital UNIX should install both the C++ and
Fortran run-time shared libraries.