
A.2 Needed MEX-files for compiling
Additionally to the functions that exist as M-file you would need to include those functions
that are compiled to a MEX-file. The list below gives all MEX-files (if using Linux replace
dll by mexglx) we needed in order to compile our applications:
bwlabelnmex.dll
bwpack.dll
bwunpack.dll
dataread.dll
imfilter mex.dll
imhistc.dll
imlincombc.dll
morphmex.dll
These files are packed within MatLab Runtime DLLs Win32.zip mentioned in Section 3
and can be found within your local MATLAB installation path (standard MATLAB
toolbox, Image Processing Toolb ox).
A.3 Create gcc Libraries (Windows)
Listing 7 shows an example batch-file for generating import libraries that can be used
with gcc for Windows. The created libaries are moved into a seperate folder, that may be
included into the system variable PATH to ensure that the libraries are found at runtime.
d l l t o o l −−d e f l i b e n g . d e f −−dl ln am e l i b e n g . d l l −−out put−l i b l i b e n g . a
d l l t o o l −−d e f l i b f i x e d p o i n t . d e f −−d ll na me l i b f i x e d p o i n t . d l l −−out put−l i b l i b f i x e d p o i n t . a
d l l t o o l −−d e f l i b m a t . d e f −−dll na me li b m a t . d l l −−ou tput−l i b l i b m a t . a
d l l t o o l −−d e f l i b m a t l b . d e f −−dl ln am e l i b m a t l b . d l l −−o utput−l i b l i b m a t l b . a
d l l t o o l −−d e f li bm e x . d e f −−dl ln am e li b me x . d l l −−out put−l i b lib m ex . a
d l l t o o l −−d e f l i b m m f i l e . de f −−dll na me l i b m m f i l e . d l l −−ou tput−l i b l i b m m f i l e . a
d l l t o o l −−d e f libmwmcl . d e f −−d ll na me libmwmcl . d l l −−output−l i b libmwmcl . a
d l l t o o l −−d e f l i b m w s e r v i c e s . de f −−dll na me l i b m w s e r v i c e s . d l l −−ou tput−l i b l i b m w s e r v i c e s . a
d l l t o o l −−d e f libmwsglm . de f −−dll na m e libmwsglm . d l l −−o utput−l i b libmwsglm . a
d l l t o o l −−d e f li bmx . d e f −−d ll na me li bmx . d l l −−ou tput−l i b li bmx . a
d l l t o o l −−d e f l i b u t . d e f −−dl ln am e l i b u t . d l l −−o utput−l i b l i b u t . a
d l l t o o l −−d e f mclcom . d e f −−d ll na me mclcom . d l l −−out put−l i b mclcom . a
d l l t o o l −−d e f mclcommain . d e f −−dll na me mclcommain . d l l −−ou tput−l i b mclcommain . a
d l l t o o l −−d e f mc lxl mai n . de f −−dll na me mc lxl mai n . d l l −−output−l i b mc lxlm ain . a
d l l t o o l −−d e f s g l . d e f −−d ll na me s g l . d l l −−ou tput−l i b s g l . a
md g c c l i b s
move ∗ . a . \ g c c l i b s
Listing 7: gengcclibs.bat
20
Komentarze do niniejszej Instrukcji