User`s guide

Setting up a Build Environment on Linux and Macintosh Systems
2-19
Setting up a Build Environment on Linux and Macintosh Systems
In this section...
“Required Libraries and Include Files for Adaptor Development” on page 2-19
“Creating a Makefile Based on the Demo Adaptor Makefile” on page 2-20
Setting up the build environment on Linux and Macintosh systems involves specifying
the include file paths, library path, and libraries to link against to create an adaptor. See
“Required Libraries and Include Files for Adaptor Development” on page 2-19 for a
list of the files and paths you need.
The adaptor kit includes a makefile that builds the adaptor kit demo adaptor on Linux
and Macintosh systems. You can use this demo makefile, with only slight modifications,
to create a makefile that builds your own adaptor. See “Creating a Makefile Based on the
Demo Adaptor Makefile” on page 2-20 for more information.
Required Libraries and Include Files for Adaptor Development
The following table lists the include file paths required to build an adaptor on Linux and
Macintosh systems.
Note You must also specify the location of the header files and libraries required by
your device's SDK. Read the documentation that came with the device's SDK to get this
information.
Header Files and
Libraries
Location
Adaptor kit header
files
$(MATLAB)/toolbox/imaq/imaqadaptors/kit/include
a
Image Acquisition
Toolbox engine
library
Linux: $(MATLAB)/bin/<ARCH>/libmwimaqmex.so
Mac: $(MATLAB)/bin/<ARCH>/libmwimaqmex.dylib
a. MATLAB is an environment variable that contains the name of your MATLAB installation folder.