为Matlab安装openexr

问题描述

我正在尝试安装OpenExr以读取.exr文件,但出现一些我不理解的错误。我已经从thisthis链接下载了脚本。在指令文件中,提到了放置正确的路径。 下载的文件位于
D:\ D \ ZJU数据\ HDR \ softwre \ openexr \ OpenEXR
D:\ D \ ZJU数据\ HDR \ softwre \ openexr \ IlmImf
D:\ D \ ZJU数据\ HDR \ softwre \ openexr \ Half
D:\ D \ ZJU数据\ HDR \ softwre \ openexr \ Iex
D:\ D \ ZJU数据\ HDR \ softwre \ openexr \ IlmThread
D:\ D \ ZJU数据\ HDR \ softwre \ openexr \ Imath
修改make.m文件的路径以使其如下所示

clc;
verbose = false;
% -----------------------------------------------
build_files = { 'exrinfo.cpp',...
                'exrread.cpp',...
                'exrreadchannels.cpp',...
                'exrwrite.cpp',...
                'exrwritechannels.cpp'};
             
companion_files = { 'utilities.cpp',...
                    'ImfToMatlab.cpp',...
                    'MatlabToImf.cpp'};
additionals = {};
if(verbose == true)
  additionals = [additionals,{'-v'}];
end
for n = 1:size(build_files,2)
  if(verbose == true)
    clc;
  end
  
  file = cell2mat(build_files(n));
  
  disp(['Building ',file]);
  
  mex(file,companion_files{:},...
    '-D:\D\ZJU Data\HDR\softwre\openexr\OpenEXR',...
    '-D:\D\ZJU Data\HDR\softwre\openexr\',...
          '-IlmImf',...
          '-Iex',...
          '-Imath',...
          '-IHalf',...
          '-IlmThread',...
    '-largeArrayDims',...
    additionals{:});
end
clear;
disp('Finished building OpenEXR for Matlab');

但是,出现以下错误
使用mex时出错 g ++:错误:Files \ MATLAB \ R2018b / extern / include -IC:\ Program:无效的参数 g ++:错误:Files \ MATLAB \ R2018b / simulink / include -fexceptions -fno-omit-frame-pointer -std = c ++ 11 -O2 -fwrapv -DNDEBUG D:\ D \ ZJU:无效的参数 g ++:错误:Data \ HDR \ softwre \ openexr \ exrinfo.cpp -o C:\ Users \ IMRANK〜1 \ AppData \ Local \ Temp \ mex_259897963506650_4660 \ exrinfo.obj:无效的参数 g ++:致命错误:无输入文件 编译终止。

我正在使用MinGW64编译器。
你能告诉我如何解决吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...