我的Matlab編碼器在上次使用時(這是2個月前)構建的東西很好,但現在當我嘗試使用它編譯項目時,出現以下錯誤:使用Matlab編碼器構建奇怪的Matlab錯誤
\>> coder -build get_scores.prj
Warning: 'perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = "en_GB",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
VSINSTALLDIR'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'perl: warning: Setting locale failed.
perl: warning: Please che'.
\> In CompilerConfigurationFactory>CompilerConfigurationFactory.determineLocation at 275
In CompilerConfigurationFactory>CompilerConfigurationFactory.process at 130
In getCompilerConfigurations at 56
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\compilerman.p>parse_opts_file at 57
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\compilerman.p>compilerman at 15
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel/getCompilerName at 148
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel/finalizeProject at 711
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel at 36
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\codeProject.p>codeProject/doit at 8
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\codeProject.p>codeProject at 13
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\emlcprivate.p>emlcprivate at 18
The current MEX compiler '`<unknown>`' is not supported.
Use mex -setup to select a supported compiler.
Use help codegen for more information on using this command.
我已經運行了幾次mex -setup,選擇了Visual Studio(這是我以前使用過的並且工作正常),並重新運行Build命令,但同樣的錯誤反覆出現。此外,該部分「超過MATLAB的最大名稱長度爲63個字符,並已被截斷」似乎說Matlab是以某種方式將Perl警告解釋爲一些變量名稱 - 我不知道那裏發生了什麼。
我不知道爲什麼Perl的警告會出現 - LC_ALL先前未設置,現在是en_GB,但同樣的錯誤以任何方式出現。
任何步驟來糾正這將不勝感激。
我會建議你接受你自己的答案,否則問題將保持開放。 –