IOException в Rhapsody FMI

Я пытаюсь создать FMU блока в IBM Rational Rhapsody, используя его профиль FMI, но каждый раз, когда я генерирую 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

Любые идеи о том, что происходит?

Заранее спасибо.


person m.dorian    schedule 08.06.2016    source источник
comment
У вас установлена ​​Visual Studio?   -  person sergej    schedule 10.06.2016


Ответы (1)


Я много раз сталкивался с этой проблемой и в конце концов решил ее по многим ресурсам.

Во-первых, перейдите к

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

Затем откройте файл и измените

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

to

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

Путь — это место, где вы установили Microsoft Visual Studio 10.0.

Последний шаг (многие ответы пропустили это): перейдите в IBM Rational Rhapsody и откройте свой проект, затем нажмите «Build Framework» в нижней части меню «Code».

Тогда вы можете идти!

person Zhentao    schedule 10.11.2016