错误:\ cimgnbmap_lower.cpp的编译失败

时间:2015-07-22 15:32:45

标签: matlab mex toolbox

  
    

我使用的是Matlab代码,用于Timothee Cour(INRIA),Stella Yu(波士顿学院),Jianbo Shi的多尺度图像分割     (UPENN)(c)2004年宾夕法尼亚大学计算机与信息学院     科学系。

  
     

     

> http://timotheecour.com/software/ncut_multiscale/ncut_multiscale.html

     

当我尝试运行CompileDir函数时,我遇到了这个错误:

     

我正在使用Matlab R2013a

     
    

compileDir         如果需要,您可以更改家庭,图像和结果目录;请参阅startup / definePaths         *********************************         错误:\ cimgnbmap_lower.cpp的编译失败:用法:                 MEX [option1 ... optionN] sourcefile1 [... sourcefileN]                     [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

  
    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_XindicatorTimesX.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_affinity_option.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_computeRowSum.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_constraint_classes.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_extractMaxima.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_istril.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_neighborW.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_normalizeColumns.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_projection_QR_symmetric.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \mex_w_times_x_symmetric_tril.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.


*********************************
Error: compilation of \spmtimesd.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    Use the -help option for more information, or consult the MATLAB API Guide.


  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.



There were 0 files compiled

Error: There were 12 erroneous files during compilation
\cimgnbmap_lower.cpp
\mex_XindicatorTimesX.cpp
\mex_affinity_option.cpp
\mex_computeRowSum.cpp
\mex_constraint_classes.cpp
\mex_extractMaxima.cpp
\mex_istril.cpp
\mex_neighborW.cpp
\mex_normalizeColumns.cpp
\mex_projection_QR_symmetric.cpp
\mex_w_times_x_symmetric_tril.cpp
\spmtimesd.cpp

ans = 

1x12 struct array with fields:

    isErrorDuringCompilation
    isCompilationFailed
    message
    compiledFilename
    file
    isError

>> 

1 个答案:

答案 0 :(得分:0)

我安装了Matlab R2015a,问题解决了。