[MATLAB] MATLAB R2018b 安装 mexopencv (VS 2017)

安裝過程噴錯
Error using mex
Unknown MEX argument '-R2017b-largeArrayDims'.

Error in mexopencv.make (line 97)
            if ~opts.dryrun, eval(cmd); end
解決方法,去make.m的第275~281行,註解掉
% real/imaginary storage format for complex arrays
    if ~mexopencv.isOctave() && ~verLessThan('matlab', '9.4')
        % keep using the "separate complex storage", as opposed to the
        % "interleaved complex storage" introduced in R2018a
        % (see MX_HAS_INTERLEAVED_COMPLEX)
        %mex_flags = ['-R2017b' mex_flags];
    end

留言

這個網誌中的熱門文章

[TensorFlow, C++, Visual Studio, Windows] TensorFlow C++ 於 Visual Studio 快速使用 DLL,LIB 流程

[TensorFlow, C++, Visual Studio, Windows] TensorFlow C++ 如何編譯與解決BUG (How to build Tensorflow C++ API with Visual Studio and solve BUG)