Rhapsody FMI中的IOException

时间:2016-06-08 08:19:57

标签: rhapsody fmi

我正在尝试使用它的FMI配置文件在IBM Rational Rhapsody中生成块的FMU,但每次生成de FMU时都会出现以下错误:

FMUPlugin.OnMenuItemSelect ("FMU\Generate FMU")
Export menu
All Checks Terminated Successfully

Checker Done
0  Error(s), 0  Warning(s)

Code generated to directory: C:\Documents and Settings\markel.sainz\workspace_FMI\FMI_test2\block_1_MSVCDLL\FMU
Generating file cash_calculator.h (unmodified)
Generating file cash_calculator.cpp (unmodified)
Generating make file block_1_MSVCDLL.mak (unmodified)

Code Generation Done

0  Error(s), 0  Warning(s), 0  Message(s)
Building ------------  block_1_MSVCDLL.dll   ------------
Executing: ""C:\Archivos de programa\IBM\Rational\Rhapsody\8.1\Share"\etc\msvcmake.bat block_1_MSVCDLL.mak build x86 VC10 "
Value of the property MSVC::IDEVersion corresponds to the version of Visual Studio. 
VC9 - Visual Studio 2008
VC10 - Visual Studio 2010
VC11 - Visual Studio 2012
Current value is "VC10", but no Visual Studio installation was not found in the directory "".

Build Done

FMU generation failed!
FMI plugin cause: IOException thrown: Failed to rename the target file: C:\Documents and Settings\markel.sainz\workspace_FMI\FMI_test2\block_1_MSVCDLL\FMU\cash_calculator.dll

有关正在发生的事情的任何想法?

提前致谢。

1 个答案:

答案 0 :(得分:1)

我多次遇到这个问题,最后根据很多资源解决了这个问题。

首先,转到

C:\ProgramData\IBM\Rational\Rhapsody\8.1.1x64\Share\etc\msvcmake.bat

然后打开文件并更改

if "%4"=="VC10" set VS_PATH=%VS_2010_PATH%

if "%4"=="VC10" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0

该路径是您安装Microsoft Visual Studio 10.0的地方。

最后一步(许多答案错过了这个):转到IBM Rational Rhapsody并打开您的项目,然后单击“代码”菜单底部的“构建框架”。

然后你就可以自由了!