Showing results for 
Search instead for 
Do you mean 

[Tips & tricks] - How to install the SDK 7.1 environment to use the Visual C++ compiler in LMS Amesim

by Community Manager Community Manager on ‎03-01-2016 08:08 AM - edited a month ago

You want to compile your model in LMS Amesim using the Visual C ++ compiler? To proceed you need to installe the SDK 7.1 environment.

Watch this 2-minute video to complete your installation according to your Windows version

 

Or follow the step-by-step guide here below and find the right links here below:

Firstly, you have two ways to verify if the compiler is already installed on your system. Indeed, with the standard installation of LMS Amesim you only have the GNU GCC compiler, the Visual C++ compiler is not delivered.

 

1) Check your programs inside your control panel:

 

Capture.PNG

  

2) In LMS Amesim, go to Tools > Options > Preferences and then access the compilation tab:

 

Compilers.png

 

You will see thanks to the information message if the compiler is installed or not.

 

If you don't have the Visual C++ compiler installed, check with your system administrator to see if you can ask them for the compiler installation.

 

3) Obtain the 64-bit Visual C++ compiler by installing Microsoft SDK.

 

Follow this step guide:

 

  1. Uninstall all Visual Studio programs/compilers/redistributables etc.
  2. Uninstall all .NET Framework programs
  3. Uninstall all Windows SDK packages
  4. Install Windows SDK 7.1 Go to the webpage to download it.                                   GRMSDKX_EN_DVD.iso for 64-bit and GRMSDK_EN_DVD.iso for 32-bit. During installation, keep DEFAULT folder for installation, under the "Installation Options" menu, UNCHECK the "Visual C++ Compilers" and "Microsoft Visual C++ 2010" components.
  1. Install .NET Framework 4.5.2 Click on this link to download it.
  2. Applied the SDK 7.1 Patch (contains the 32 bit and 64 bit compilers) : Go to the webpage to download it.
  3. Reinstall the Microsoft Visual C++ 2010 redistributable packages

x64: Go to the webpage to download it. 

x86: Go to the webpage to download it.  

  1. Copy C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat into $AME
  1. Create vcvars64.bat in $AME with following line:

            CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release

 

Comments
by Siemens Creator Siemens Creator
on ‎01-04-2017 08:10 AM - edited

Hi,

 

what is the best alternative for coming LMS Amesim releases since Mathworks will stop their SDK 7.1 support.

 

Capture.PNG

 

Source: 

https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequire...

 

Thanks,

Emanuel