0

我正在尝试使用它的 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

关于发生了什么的任何想法?

提前致谢。

4

1 回答 1

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 并打开您的项目,然后单击“代码”菜单底部的“构建框架”。

然后你就可以走了!

于 2016-11-10T02:24:54.733 回答