MATLAB C/C++ Graphics Library | ![]() ![]() |
Configuring the Graphics Library on UNIX Systems
To configure the graphics library on a UNIX system, run the mbuild -setup
command. You can run mbuild
at the MATLAB prompt or at the system prompt.
mbuild
uses options files to specify all the compile and link command line options necessary to create a stand-alone graphics application. When you configure the graphics library, you specify the name of the options file you want to use.
On UNIX systems, mbuild
presents a choice of two options files: mbuildopts.sh
and mbuildsglopts.sh
. To create a stand-alone graphics application, choose the mbuildsglopts.sh
file (selection 2). When you select an options file, mbuild
creates a local copy of the options file in your ~/matlab
directory.
Note
Even though you select the mbuildsglopts.sh options file, when mbuild creates the local copy in ~/matlab , it renames the file to mbuildopts.sh .
|
The following example illustrates running mbuild
on a UNIX system. To link with the graphics library, select option 2
. If you have run mbuild
before, a local copy of the options file exists in your ~/matlab
directory. When mbuild
asks if you want to overwrite this existing version of mbuildopt.sh
, answer yes (y
).
![]() | Configuring the Graphics Library on PCs | Creating Stand-Alone Graphics Applications | ![]() |