不知道是哪里的问题,我以前可以用的现在也无法编译了。
在
### Create sorted PT
### Patch Scope blocks
### Creating untitled.mk from E:\BigTools\MatLab7\toolbox\rtw\targets\xpc\xpc\xpc_vc.tmf
后弹出错误,有两个,分别为:
1
Error using ==...不知道是哪里的问题,我以前可以用的现在也无法编译了。
在
### Create sorted PT
### Patch Scope blocks
### Creating untitled.mk from E:\BigTools\MatLab7\toolbox\rtw\targets\xpc\xpc\xpc_vc.tmf
后弹出错误,有两个,分别为:
1
Error using ==> RTW.makertw.make_rtw
Error using ==> rtw\private\issue_inv_comp_env_val_error
Invalid setting for environment variable MSDevDir or DevEnvDir.
The setting is: 'c:\microsoft visual studio'
You can verify the setting by checking for the existence of:
%MSDevDir%\..\vc\bin\vcvars32.bat (for Visual C/C++ 5.0)
%MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0)
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 7.0)
You must define MSDevDir or DevEnvDir to be:
set %MSDevDir%=\sharedide (for Visual C/C++ 5.0)
set %MSDevDir%=\common\msdev98 (for Visual C/C++ 6.0)
set %DevEnvDir%=\common7\ide (for Visual C/C++ 7.0)
This error may be due to an invalid preference file:
C:\Documents and Settings\yan\Application Data\MathWorks\MATLAB\R14\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct
2
Error building Real-Time Workshop target for block diagram 'untitled'. MATLAB error message:
Error using ==> slbuild
Error using ==> RTW.makertw.make_rtw
Error using ==> rtw\private\issue_inv_comp_env_val_error
Invalid setting for environment variable MSDevDir or DevEnvDir.
The setting is: 'c:\microsoft visual studio'
You can verify the setting by checking for the existence of:
%MSDevDir%\..\vc\bin\vcvars32.bat (for Visual C/C++ 5.0)
%MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0)
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 7.0)
You must define MSDevDir or DevEnvDir to be:
set %MSDevDir%=\sharedide (for Visual C/C++ 5.0)
set %MSDevDir%=\common\msdev98 (for Visual C/C++ 6.0)
set %DevEnvDir%=\common7\ide (for Visual C/C++ 7.0)
This error may be due to an invalid preference file:
C:\Documents and Settings\yan\Application Data\MathWorks\MATLAB\R14\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct
这两个错误我以前都没有见过,运行了mex -setup更改编译器过无效,重装过VC,MATLAB,系统N次,都没有结果。并且我的Visual Studio是完全安装在E:\BigTools\Microsoft Visual Studio目录下的,错误中提到的路径'c:\microsoft visual studio'根本不存在。在别的电脑上可以编译模型,在我这里就不行,比较了一下,可以编译的电脑上根本不存在C:\Documents and Settings\yan\Application Data\MathWorks\MATLAB\R14\mexopts.bat这个文件,我这里的这个文件我改过多次,总是不行。
实在没办法了,悬赏求解决方法。展开 |
|