Topic
  • 17 replies
  • Latest Post - ‏2015-07-24T11:42:26Z by Sascha165
Sascha165
Sascha165
16 Posts

Pinned topic Installing Rhapsody - VisualStudio Compiler not found

‏2013-08-01T11:43:09Z |

Hello,

I have a problem that while installing Rhapsody 8.0.1 (Developer Edition -> RT Environment settings), it apparently does not recognize the existing installations of Microsoft Visual Studio C++ Express (2008 nor 2010). The issue exists with multiple installations.

When trying to adapt the installation folder (which is the default one to begin with) I get the failure message that the VS_2008_PATH or VS_2010_PATH is not existing (see attached picture).

Does anyone have an idea if Microsoft Visual Studio C++ Express 2008 or 2010 is supported at all and, if yes, what is going wrong during the installation? What does Rhapsody expect, in order to recognize the installation?

Best regards,

Sascha

  • myrmidon
    myrmidon
    23 Posts
    ACCEPTED ANSWER

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-20T09:15:59Z  

    Hi Sacha,

    Rhapsody works with the express versions. Do the following

    1. Install Visual Studio 2010 Express (or 2008..) and add it in your  PATH  variable e.g. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin (for VS 2010)     OR     C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin (for VS 2008 )

    2. The mcvcmake.bat file, you should modify it yourself. The VC9 option is referring to VS 2008 and the VC10 to VS 2010. So you may have something like this

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

    -- OR --

    2. Leave the mcvcmake.bat file as it is(with %VS_2008_PATH% and %VS_2010_PATH% variables ) and add two system variables

    to the Environmental Parameters > System Variables

    one VS_2008_PATH with the VS 2008 path (e.g. C:\Program Files (x86)\Microsoft Visual Studio 9.0) and one VS_2010_PATH accordingly like in the screenshot

    3. Within Rhapsody CPP_CG::MSVC::IDEVersion select your compiler VC9 (for 2008) or VC10 (for2010)

    Hope it helps!

    Cheers

     

    Attachments

  • SimonMorrishMbda
    SimonMorrishMbda
    6 Posts
    ACCEPTED ANSWER

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-22T06:42:28Z  
    • Sascha165
    • ‏2013-08-20T12:46:52Z

    Hello,

    thanks for your answers. I think we are getting closer. The keywords (%VS_2008_PATH% and %VS_2010_PATH%) are supposed to be replaced during the installation - in fact they are not. Therefore Rhapsody would have to detect VS Express (2008 or 2010) as a valid installation.

    1) What is the expected pre-requsite so Rhapsody sees MS VS Express (2008 or 2010) as a valid compiler during the installation?
    (automatically as well as in the RT settings page)

    2) Is  MS VS Express (2008 or 2010) supposed to be fully supported by Rhapsody at all?
    Or is it - lets say - tolerated to work, after some manual tweaking only?

    Any ideas?

    Best regards,

    Sascha

    Hi Sascha

    When I went through all this about 5 years ago, Telelogic stated that they do not specifically support the Express editions. I do not know if the policy has changed since, but I suspect not. I think it is 'tolerated', as you say.

    The only manual tweaking that's required is the msvcmake batch file, so I would just do that, if I were you. :)

    best regards,

    Simon

  • SimonMorrishMbda
    SimonMorrishMbda
    6 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-02T07:30:56Z  

    Hi Sascha

    Regarding whether it is supported at all: In the past (VS2005) I have found it is necessary to install the Microsoft Platform SDK as well as VC Express, in order to build win32 applications. There is a note about this here:

    http://msdn.microsoft.com/en-us/library/ms235626(v=VS.80).aspx

    You will also need to produce a "vcvars" batch file, to be called from Rhapsody's etc\msvc9make batch file, to set up the environment variables for the compilation. I have included a batch file for VS2005 to start you off.

    As far as the installation problem goes, I'd be tempted to bypass it by not selecting VS at all. I don't think that selecting VS during installation does much more than adjusting the contents of the msvc9make batch file and selecting a build of the framework libraries; you'll have to do both these yourself anyway...

    So, I'd try:

    1. Install VC express and the Platform SDK.

    2. Update my vcvars32.bat.

    3. Adjust Rhapsody's msvc9make.bat.

    4. Rebuild the framework libraries.

    Good luck - i'd be interested to know if you get it working.

    best regards,

    Simon

     

    Attachments

  • Sascha165
    Sascha165
    16 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-02T09:54:43Z  

    Hi Sascha

    Regarding whether it is supported at all: In the past (VS2005) I have found it is necessary to install the Microsoft Platform SDK as well as VC Express, in order to build win32 applications. There is a note about this here:

    http://msdn.microsoft.com/en-us/library/ms235626(v=VS.80).aspx

    You will also need to produce a "vcvars" batch file, to be called from Rhapsody's etc\msvc9make batch file, to set up the environment variables for the compilation. I have included a batch file for VS2005 to start you off.

    As far as the installation problem goes, I'd be tempted to bypass it by not selecting VS at all. I don't think that selecting VS during installation does much more than adjusting the contents of the msvc9make batch file and selecting a build of the framework libraries; you'll have to do both these yourself anyway...

    So, I'd try:

    1. Install VC express and the Platform SDK.

    2. Update my vcvars32.bat.

    3. Adjust Rhapsody's msvc9make.bat.

    4. Rebuild the framework libraries.

    Good luck - i'd be interested to know if you get it working.

    best regards,

    Simon

     

    Hello Simon,

    thanks for your quick answer. For the execution of the HamronySE projects the compiler as such is sufficient, so I do not need the SDK environment.

    With VS2008 Express or VS2010Express installed I today install Rhapsody without any further adjustments (due to the described failure it is not possible anyway). When I try to execute a project I get a failure like: "The current value of the property MSVC::IDEVersion is VC9, which represents Visual Studio 2008.
    If you are using Visual Studio 2010, change the value of the property to VC10
    ." Checking the msvcmake.bat file I see, that it kick me out at the following point: if EXIST  "%VS_PATH%" goto :continueExecution, leading directly to the above failure message.

    I fixed the issue temporarily by adding the VS_PATH and VS_2008_PATH to my environment variables. After that execution runs fine. Since we slowly get a more users using Rhapsody HarmonySE, including model execution, the issue becomes more pressing. I understand that you added a "vcvars" batch file that is called upfront, so the variables are defined that way.

    Even so we (experts) get it somehow to work, I do not feel that it is a good user experience, that model execution is aborded with failure and a specialist then has to adjust batch files or to setup environment variables to get it working. Finally want to our IT guys to be able to provide a silent installation of a working SE-Environment. A SW-engineer migth not be bothered doing so, Systems Engineers are (so my experience).

    Where is the VS_PATH or VS_2008_PATH defined and where is Rhapsody looking for it? To understand the poblem I need to know where the error occurs: I the VS installation possibly incomplete, so data entries are missing? Or does Rhapsody search in the wrong places. Maybe we can analyse the issue a little bit more here, so we can see if it is worth a PMR.

    Best Regards,

    Sascha

     

  • SimonMorrishMbda
    SimonMorrishMbda
    6 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-02T11:03:09Z  
    • Sascha165
    • ‏2013-08-02T09:54:43Z

    Hello Simon,

    thanks for your quick answer. For the execution of the HamronySE projects the compiler as such is sufficient, so I do not need the SDK environment.

    With VS2008 Express or VS2010Express installed I today install Rhapsody without any further adjustments (due to the described failure it is not possible anyway). When I try to execute a project I get a failure like: "The current value of the property MSVC::IDEVersion is VC9, which represents Visual Studio 2008.
    If you are using Visual Studio 2010, change the value of the property to VC10
    ." Checking the msvcmake.bat file I see, that it kick me out at the following point: if EXIST  "%VS_PATH%" goto :continueExecution, leading directly to the above failure message.

    I fixed the issue temporarily by adding the VS_PATH and VS_2008_PATH to my environment variables. After that execution runs fine. Since we slowly get a more users using Rhapsody HarmonySE, including model execution, the issue becomes more pressing. I understand that you added a "vcvars" batch file that is called upfront, so the variables are defined that way.

    Even so we (experts) get it somehow to work, I do not feel that it is a good user experience, that model execution is aborded with failure and a specialist then has to adjust batch files or to setup environment variables to get it working. Finally want to our IT guys to be able to provide a silent installation of a working SE-Environment. A SW-engineer migth not be bothered doing so, Systems Engineers are (so my experience).

    Where is the VS_PATH or VS_2008_PATH defined and where is Rhapsody looking for it? To understand the poblem I need to know where the error occurs: I the VS installation possibly incomplete, so data entries are missing? Or does Rhapsody search in the wrong places. Maybe we can analyse the issue a little bit more here, so we can see if it is worth a PMR.

    Best Regards,

    Sascha

     

    Hi Sascha

    I have not yet tried Rhapsody 8, so I cannot look at these files directly right now. On Rhapsody 7.6.1, the mcvc9make.bat is as follows:

    @echo off
    if "%2"=="" set target=all
    if "%2"=="build" set target=all
    if "%2"=="rebuild" set target=clean all
    if "%2"=="clean" set target=clean
    set MAKEFLAGS=
    set VS2008_PATH=C:\Program Files\Microsoft Visual Studio 8
    if "%3"=="" goto :x86set
    if "%3"=="x86" goto :x86set
    if not %3==x86 call "%VS2008_PATH%\VC\VcVarsall.bat" %3
    goto :doMake
    :x86set
    call "%VS2008_PATH%\VC\bin\VcVars32.bat" x86
    :doMake
    echo ``nmake.exe
    nmake /nologo /S /F %1 %target% MS_VER="VC9" %4 %5 %6 %7 %8 %9

    As you can see, the "set VS2008_PATH" is in this file. If you do not choose VS during Rhapsody installation, it is set to "C:\", and if you do choose VS it is filled in correctly. Anyway, now we know this environment variable belongs to Rhapsody, not to Visual Studio.

    Can you paste the contents of msvcmake.bat so I can take a look? And can you also tell me the value of these properties in Rhapsody 8:

    • CPP_CG::MSVC::InvokeMake
    • CPP_CG::MSVC::buildFrameworkCommand

    (I have presumed the build environment is called "MSVC" in Rhapsody 8 - it was called MSVC9 in Rhapsody 7.x.)

    Best regards,

    Simon

    Updated on 2013-08-02T11:03:45Z at 2013-08-02T11:03:45Z by SimonMorrishMbda
  • Sascha165
    Sascha165
    16 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-02T12:33:39Z  

    Hi Sascha

    I have not yet tried Rhapsody 8, so I cannot look at these files directly right now. On Rhapsody 7.6.1, the mcvc9make.bat is as follows:

    @echo off
    if "%2"=="" set target=all
    if "%2"=="build" set target=all
    if "%2"=="rebuild" set target=clean all
    if "%2"=="clean" set target=clean
    set MAKEFLAGS=
    set VS2008_PATH=C:\Program Files\Microsoft Visual Studio 8
    if "%3"=="" goto :x86set
    if "%3"=="x86" goto :x86set
    if not %3==x86 call "%VS2008_PATH%\VC\VcVarsall.bat" %3
    goto :doMake
    :x86set
    call "%VS2008_PATH%\VC\bin\VcVars32.bat" x86
    :doMake
    echo ``nmake.exe
    nmake /nologo /S /F %1 %target% MS_VER="VC9" %4 %5 %6 %7 %8 %9

    As you can see, the "set VS2008_PATH" is in this file. If you do not choose VS during Rhapsody installation, it is set to "C:\", and if you do choose VS it is filled in correctly. Anyway, now we know this environment variable belongs to Rhapsody, not to Visual Studio.

    Can you paste the contents of msvcmake.bat so I can take a look? And can you also tell me the value of these properties in Rhapsody 8:

    • CPP_CG::MSVC::InvokeMake
    • CPP_CG::MSVC::buildFrameworkCommand

    (I have presumed the build environment is called "MSVC" in Rhapsody 8 - it was called MSVC9 in Rhapsody 7.x.)

    Best regards,

    Simon

    Hello Simon,

    with Rhapsody 8 changed the strategy for VC2008 and VC2010 to have an induvidual execution environment per compiler. Both are grouped together under the MSVC environment and you have to set a property CPP_CG::MSVC::IDEVersion to select VC9 (for 2008) or VC10 (for2010)

    CPP_CG::MSVC::InvokeMake:
           "$OMROOT/etc/Executer.exe" "\"\"$OMROOT\"\etc\msvcmake.bat $makefile $maketarget $CPU $IDEVersion \" "

    CPP_CG::MSVC::buildFrameworkCommand
         "$OMROOT/etc/Executer.exe" "\"\"$OMROOT\"\etc\msvcmake.bat msbuild.mak build $CPU $IDEVersion  \"USE_STL=FALSE\" \"USE_PDB=FALSE\" \"BUILD_SET=$BuildCommandSet\"  \""

    The msvcmake.bat has the following content:

    @echo off
    if "%2"=="" set target=all
    if "%2"=="build" set target=all
    if "%2"=="rebuild" set target=clean all
    if "%2"=="clean" set target=clean
    set MAKEFLAGS=
    if "%4"=="VC9" set VS_PATH=%VS_2008_PATH%
    if "%4"=="VC10" set VS_PATH=%VS_2010_PATH%

    if EXIST  "%VS_PATH%" goto :continueExecution
    if "%4"=="VC9" (
    @echo The current value of the property MSVC::IDEVersion is VC9, which represents Visual Studio 2008.
    @echo If you are using Visual Studio 2010, change the value of the property to VC10.
    ) else (
    @echo The current value of the property MSVC::IDEVersion is VC10, which represents Visual Studio 2010.
    @echo If you are using Visual Studio 2008, change the value of the property to VC9.
    )
    exit /b 1

    :continueExecution
    if "%3"=="x86" goto :x86set
    call "%VS_PATH%\VC\VcVarsall.bat" %3
    goto :doMake
    :x86set
    call "%VS_PATH%\VC\bin\VcVars32.bat" x86
    :doMake
    echo ``nmake.exe
    nmake /nologo /S /F %1 %target% MS_VER="%4" %5 %6 %7 %8 %9

    For me it currently seems, that the highlighted if-clause does not find the %VS_PATH% or the %VS_2008_PATH% does not exist or is not correctly defined. Interestingly the path is specified in the make file you posted. So where were did the specification of the VS_2008_PATH go?

     

    Regards,

    Sascha

  • SimonMorrishMbda
    SimonMorrishMbda
    6 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-05T11:44:59Z  
    • Sascha165
    • ‏2013-08-02T12:33:39Z

    Hello Simon,

    with Rhapsody 8 changed the strategy for VC2008 and VC2010 to have an induvidual execution environment per compiler. Both are grouped together under the MSVC environment and you have to set a property CPP_CG::MSVC::IDEVersion to select VC9 (for 2008) or VC10 (for2010)

    CPP_CG::MSVC::InvokeMake:
           "$OMROOT/etc/Executer.exe" "\"\"$OMROOT\"\etc\msvcmake.bat $makefile $maketarget $CPU $IDEVersion \" "

    CPP_CG::MSVC::buildFrameworkCommand
         "$OMROOT/etc/Executer.exe" "\"\"$OMROOT\"\etc\msvcmake.bat msbuild.mak build $CPU $IDEVersion  \"USE_STL=FALSE\" \"USE_PDB=FALSE\" \"BUILD_SET=$BuildCommandSet\"  \""

    The msvcmake.bat has the following content:

    @echo off
    if "%2"=="" set target=all
    if "%2"=="build" set target=all
    if "%2"=="rebuild" set target=clean all
    if "%2"=="clean" set target=clean
    set MAKEFLAGS=
    if "%4"=="VC9" set VS_PATH=%VS_2008_PATH%
    if "%4"=="VC10" set VS_PATH=%VS_2010_PATH%

    if EXIST  "%VS_PATH%" goto :continueExecution
    if "%4"=="VC9" (
    @echo The current value of the property MSVC::IDEVersion is VC9, which represents Visual Studio 2008.
    @echo If you are using Visual Studio 2010, change the value of the property to VC10.
    ) else (
    @echo The current value of the property MSVC::IDEVersion is VC10, which represents Visual Studio 2010.
    @echo If you are using Visual Studio 2008, change the value of the property to VC9.
    )
    exit /b 1

    :continueExecution
    if "%3"=="x86" goto :x86set
    call "%VS_PATH%\VC\VcVarsall.bat" %3
    goto :doMake
    :x86set
    call "%VS_PATH%\VC\bin\VcVars32.bat" x86
    :doMake
    echo ``nmake.exe
    nmake /nologo /S /F %1 %target% MS_VER="%4" %5 %6 %7 %8 %9

    For me it currently seems, that the highlighted if-clause does not find the %VS_PATH% or the %VS_2008_PATH% does not exist or is not correctly defined. Interestingly the path is specified in the make file you posted. So where were did the specification of the VS_2008_PATH go?

     

    Regards,

    Sascha

    Hi Sascha

    I have a colleague with VS2010 installed, and he has no environment variable called VS_2010_PATH; so the variable must be set during the Rhapsody installation process. Perhaps the Rhapsody installer puts the actual VS 2008 path into the mcvcmake.bat file, in place of the text "%VS_2008_PATH%"? Or perhaps it is set in the Rhapsody.ini file? To know for sure, I suppose we will have to ask IBM or investigate a computer that has the full VS2008 and Rhapsody installed. (Perhaps another forum user has this setup and can answer for us?)

    I think we are close to a suitable solution; when your IT guys install VC 2008 Express, could they also modify/replace the mcvsmake.bat file so that VS_PATH is set properly?

    In the past Telelogic were not interested in specifically supporting the VS Express editions, so I think the price for saving the money will be to modify a batch file: I still think it's a good deal :)

    best regards,

    Simon

  • Yevo
    Yevo
    280 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-15T17:26:31Z  

    Hi Sascha

    I have not yet tried Rhapsody 8, so I cannot look at these files directly right now. On Rhapsody 7.6.1, the mcvc9make.bat is as follows:

    @echo off
    if "%2"=="" set target=all
    if "%2"=="build" set target=all
    if "%2"=="rebuild" set target=clean all
    if "%2"=="clean" set target=clean
    set MAKEFLAGS=
    set VS2008_PATH=C:\Program Files\Microsoft Visual Studio 8
    if "%3"=="" goto :x86set
    if "%3"=="x86" goto :x86set
    if not %3==x86 call "%VS2008_PATH%\VC\VcVarsall.bat" %3
    goto :doMake
    :x86set
    call "%VS2008_PATH%\VC\bin\VcVars32.bat" x86
    :doMake
    echo ``nmake.exe
    nmake /nologo /S /F %1 %target% MS_VER="VC9" %4 %5 %6 %7 %8 %9

    As you can see, the "set VS2008_PATH" is in this file. If you do not choose VS during Rhapsody installation, it is set to "C:\", and if you do choose VS it is filled in correctly. Anyway, now we know this environment variable belongs to Rhapsody, not to Visual Studio.

    Can you paste the contents of msvcmake.bat so I can take a look? And can you also tell me the value of these properties in Rhapsody 8:

    • CPP_CG::MSVC::InvokeMake
    • CPP_CG::MSVC::buildFrameworkCommand

    (I have presumed the build environment is called "MSVC" in Rhapsody 8 - it was called MSVC9 in Rhapsody 7.x.)

    Best regards,

    Simon

    Hi Sascha,

    Rhapsody replaces both keywords (%VS_2008_PATH% and %VS_2010_PATH%) with appropriate full path of VS installation during Installation. Probably VS Express is located in registry in some place, which Rhapsody installer doesn't recognize automatically. In this case it doesn't replace these keywords. Another reason may be if customer didn't check "Real time Settings" checkbox during installation.

    Regards,

    Vladimir

     

  • myrmidon
    myrmidon
    23 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-20T09:12:58Z  
    • Yevo
    • ‏2013-08-15T17:26:31Z

    Hi Sascha,

    Rhapsody replaces both keywords (%VS_2008_PATH% and %VS_2010_PATH%) with appropriate full path of VS installation during Installation. Probably VS Express is located in registry in some place, which Rhapsody installer doesn't recognize automatically. In this case it doesn't replace these keywords. Another reason may be if customer didn't check "Real time Settings" checkbox during installation.

    Regards,

    Vladimir

     

    Hello

    For me, Rhapsody never replaced both keywords (%VS_2008_PATH% and %VS_2010_PATH%) with appropriate full path of VS installation during Installation :S I had to do it manually..

    No it should work fine even  "Real time Settings" checkbox is not checked during installation.

  • myrmidon
    myrmidon
    23 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-20T09:15:59Z  

    Hi Sacha,

    Rhapsody works with the express versions. Do the following

    1. Install Visual Studio 2010 Express (or 2008..) and add it in your  PATH  variable e.g. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin (for VS 2010)     OR     C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin (for VS 2008 )

    2. The mcvcmake.bat file, you should modify it yourself. The VC9 option is referring to VS 2008 and the VC10 to VS 2010. So you may have something like this

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

    -- OR --

    2. Leave the mcvcmake.bat file as it is(with %VS_2008_PATH% and %VS_2010_PATH% variables ) and add two system variables

    to the Environmental Parameters > System Variables

    one VS_2008_PATH with the VS 2008 path (e.g. C:\Program Files (x86)\Microsoft Visual Studio 9.0) and one VS_2010_PATH accordingly like in the screenshot

    3. Within Rhapsody CPP_CG::MSVC::IDEVersion select your compiler VC9 (for 2008) or VC10 (for2010)

    Hope it helps!

    Cheers

     

    Attachments

  • Sascha165
    Sascha165
    16 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-20T12:46:52Z  
    • myrmidon
    • ‏2013-08-20T09:15:59Z

    Hi Sacha,

    Rhapsody works with the express versions. Do the following

    1. Install Visual Studio 2010 Express (or 2008..) and add it in your  PATH  variable e.g. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin (for VS 2010)     OR     C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin (for VS 2008 )

    2. The mcvcmake.bat file, you should modify it yourself. The VC9 option is referring to VS 2008 and the VC10 to VS 2010. So you may have something like this

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

    -- OR --

    2. Leave the mcvcmake.bat file as it is(with %VS_2008_PATH% and %VS_2010_PATH% variables ) and add two system variables

    to the Environmental Parameters > System Variables

    one VS_2008_PATH with the VS 2008 path (e.g. C:\Program Files (x86)\Microsoft Visual Studio 9.0) and one VS_2010_PATH accordingly like in the screenshot

    3. Within Rhapsody CPP_CG::MSVC::IDEVersion select your compiler VC9 (for 2008) or VC10 (for2010)

    Hope it helps!

    Cheers

     

    Hello,

    thanks for your answers. I think we are getting closer. The keywords (%VS_2008_PATH% and %VS_2010_PATH%) are supposed to be replaced during the installation - in fact they are not. Therefore Rhapsody would have to detect VS Express (2008 or 2010) as a valid installation.

    1) What is the expected pre-requsite so Rhapsody sees MS VS Express (2008 or 2010) as a valid compiler during the installation?
    (automatically as well as in the RT settings page)

    2) Is  MS VS Express (2008 or 2010) supposed to be fully supported by Rhapsody at all?
    Or is it - lets say - tolerated to work, after some manual tweaking only?

    Any ideas?

    Best regards,

    Sascha

  • SimonMorrishMbda
    SimonMorrishMbda
    6 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2013-08-22T06:42:28Z  
    • Sascha165
    • ‏2013-08-20T12:46:52Z

    Hello,

    thanks for your answers. I think we are getting closer. The keywords (%VS_2008_PATH% and %VS_2010_PATH%) are supposed to be replaced during the installation - in fact they are not. Therefore Rhapsody would have to detect VS Express (2008 or 2010) as a valid installation.

    1) What is the expected pre-requsite so Rhapsody sees MS VS Express (2008 or 2010) as a valid compiler during the installation?
    (automatically as well as in the RT settings page)

    2) Is  MS VS Express (2008 or 2010) supposed to be fully supported by Rhapsody at all?
    Or is it - lets say - tolerated to work, after some manual tweaking only?

    Any ideas?

    Best regards,

    Sascha

    Hi Sascha

    When I went through all this about 5 years ago, Telelogic stated that they do not specifically support the Express editions. I do not know if the policy has changed since, but I suspect not. I think it is 'tolerated', as you say.

    The only manual tweaking that's required is the msvcmake batch file, so I would just do that, if I were you. :)

    best regards,

    Simon

  • SaiGadi
    SaiGadi
    3 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2015-02-24T12:51:41Z  

    Hi, 

    I am learning Rational Rhapsody tool to genereate models and excute them. When i am executing them i am getting this error.

    Building ------------  TrafficLightEXE.exe   ------------
    Executing: ""C:\ProgramData\IBM\Rational\Rhapsody\8.1.1x64\Share"\etc\msvcmake.bat TrafficLightEXE.mak build x64 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

    Can you please help me with this.

    Thank You,

    With best regards

    Sai Gadi

     
     
    Updated on 2015-02-24T12:52:07Z at 2015-02-24T12:52:07Z by SaiGadi
  • VladYer
    VladYer
    29 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2015-02-24T14:50:45Z  
    • SaiGadi
    • ‏2015-02-24T12:51:41Z

    Hi, 

    I am learning Rational Rhapsody tool to genereate models and excute them. When i am executing them i am getting this error.

    Building ------------  TrafficLightEXE.exe   ------------
    Executing: ""C:\ProgramData\IBM\Rational\Rhapsody\8.1.1x64\Share"\etc\msvcmake.bat TrafficLightEXE.mak build x64 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

    Can you please help me with this.

    Thank You,

    With best regards

    Sai Gadi

     
     

    The answer on your question was already written before.

    Edit your C:\ProgramData\IBM\Rational\Rhapsody\8.1.1x64\Share\etc\msvcmake.bat file so that the lines look like below:

    ...

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

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

    if "%4"=="VC11" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 11.0\
    ...

    Of course, if you don't have Visual Studio 2010 installed, you should set  IDEVersion property value to VC9 (VS 2008) or VC11 (VS2012)

  • SaiGadi
    SaiGadi
    3 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2015-02-24T16:05:39Z  
    • VladYer
    • ‏2015-02-24T14:50:45Z

    The answer on your question was already written before.

    Edit your C:\ProgramData\IBM\Rational\Rhapsody\8.1.1x64\Share\etc\msvcmake.bat file so that the lines look like below:

    ...

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

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

    if "%4"=="VC11" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 11.0\
    ...

    Of course, if you don't have Visual Studio 2010 installed, you should set  IDEVersion property value to VC9 (VS 2008) or VC11 (VS2012)

    Thank You...

  • milankrf
    milankrf
    3 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2015-07-24T06:53:10Z  

    while running I am getting error message 

     current value is "VC10", but no visual studio found in directory/

    I am attaching the screen shot of this.

  • Sascha165
    Sascha165
    16 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2015-07-24T07:31:36Z  
    • milankrf
    • ‏2015-07-24T06:53:10Z

    while running I am getting error message 

     current value is "VC10", but no visual studio found in directory/

    I am attaching the screen shot of this.

    You have to give a bit more information about the compiler you have installed and want to use - CYGWIN, Microsoft Visual Studio (2010/2012/...) professional or Express?

    First of all you have to select the compiler in the component configuration (register settings) - in case of Microsoft Visual Studio : MSVC

    If MSVC is the compiler you have additionally to set in the property of the version of the compiler (e.g. in the project features) CPPCG::MSVC::IDEVersion

     

    As the help reveals, the possible values are:

    * VC9 - to specify that you are using Visual Studio 2008

    * VC10 - to specify that you are using Visual Studio 2010

    * VC11 - to specify that you are using Visual Studio 2012

    Default = VC10

     

    So currently your project is set to Visual Studio 2010 as the compiler. Now you have to check if that is the correct one.

     

    Best Regards,

    Sascha

  • milankrf
    milankrf
    3 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2015-07-24T08:49:05Z  
    • Sascha165
    • ‏2015-07-24T07:31:36Z

    You have to give a bit more information about the compiler you have installed and want to use - CYGWIN, Microsoft Visual Studio (2010/2012/...) professional or Express?

    First of all you have to select the compiler in the component configuration (register settings) - in case of Microsoft Visual Studio : MSVC

    If MSVC is the compiler you have additionally to set in the property of the version of the compiler (e.g. in the project features) CPPCG::MSVC::IDEVersion

     

    As the help reveals, the possible values are:

    * VC9 - to specify that you are using Visual Studio 2008

    * VC10 - to specify that you are using Visual Studio 2010

    * VC11 - to specify that you are using Visual Studio 2012

    Default = VC10

     

    So currently your project is set to Visual Studio 2010 as the compiler. Now you have to check if that is the correct one.

     

    Best Regards,

    Sascha

    Hi In my system I am using Rhapsody 8.1.3 and visual studio 2010 professional. 

    and I am getting the error message as mentioned above.

    could you tell me the how to set the property?

  • Sascha165
    Sascha165
    16 Posts

    Re: Installing Rhapsody - VisualStudio Compiler not found

    ‏2015-07-24T11:42:26Z  
    • milankrf
    • ‏2015-07-24T08:49:05Z

    Hi In my system I am using Rhapsody 8.1.3 and visual studio 2010 professional. 

    and I am getting the error message as mentioned above.

    could you tell me the how to set the property?

    Apparently MSVC and VC10 is set correctly.

    Check in $OMROOT\etc the file msvcmake.bat that the correct installation folder is named:

    If not properly recognized, one entry looks like :

           if "%4"=="VC10" set VS_PATH=%VS_2010_PATH%
    If properly recognized, it looks (with default installation poath) like:

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

    Adjust the drive accordingly.

    As a test execute in Rhapsody Code/Build Framework

     

    Regards,

    Sascha