Skip to content
Snippets Groups Projects
Commit 381d55ab authored by Henryk Blasinski's avatar Henryk Blasinski
Browse files

Fixed compilation issues for EXR reader.

parent 50859f3a
No related branches found
No related tags found
No related merge requests found
......@@ -28,11 +28,18 @@ output = '-output ReadMultichannelEXR';
%% Choose library files to include and link with.
INC = '-I/usr/local/include/OpenEXR -I/usr/include/OpenEXR -I/opt/local/include/OpenEXR';
LINC = '-L/usr/local/lib -L/usr/lib -L/opt/local/lib';
if ismac
matlabLinkDir = fullfile(matlabroot,'bin','maci64');
elseif isunix
matlabLinkDir = fullfile(matlabroot,'bin','glnxa64');
end
LINC = sprintf('-L%s -L/usr/local/lib -L/usr/lib -L/opt/local/lib',matlabLinkDir);
LIBS = '-lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -lpthread';
%% Build the function.
mexCmd = sprintf('mex %s %s %s %s %s', INC, LINC, LIBS, output, source);
mexCmd = sprintf('mex -v %s %s %s %s %s', INC, LINC, LIBS, output, source);
fprintf('%s\n', mexCmd);
eval(mexCmd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment