-
Notifications
You must be signed in to change notification settings - Fork 2
Install Visual Studio
Install a version of visual studio. 2010 is used by most developers unless you are on windows 10 in which case install 2017 or 2019.
Install Visual Studio 2010
Install SDK 7.1 -The SDK may fail if you have these installed:
- Microsoft Visual C++ 2010 x86 Redistributable
- Microsoft Visual C++ 2010 x64 Redistributable
If these do exist on your computer you need to uninstall them before installing the SDK.
Install:
- Visual Studio 2010 SP1
- Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1
Note: The free version of Visual Studio 2010, Visual Studio 2010 Express, isn't supported by the EPICS build process.
Windows SDK 7 has compatibility issues with newer versions of Windows. In this case, Visual Studio 2013 may be used instead.
During the installation of VS2013, under "Optional Features" make sure to include Microsoft Foundation Classes for C++.
Additionally, download and install the Multibyte MFC Library.
Download installer (Visual Studio Community 2017 exe) from installer page https://my.visualstudio.com using your stfc email address. During install, choose Desktop development with C++ and from the right checkboxes:
- The most recent Windows 10 SDK, Windows 8.1 SDK, and MFC and ATL support
- Windows Universal CRT SDK
If these boxes aren't visible on the right it is most likely because you are trying to install professional rather than community.
Download installer (Visual Studio Community 2019 exe) from installer page https://my.visualstudio.com using your stfc email address. During install, select "Desktop development with C++" with these individual features:
- The most recent Windows 10 SDK
- MFC and ATL support
- Windows Universal CRT SDK
After installing Visual Studio 2019, download the Windows 8.1 SDK from https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/.
If you are installing Visual Studio Community 2019, Windows Universal CRT SDK is listed under the "Compilers, build tools and runtimes" section of the "Individual components tab at the top.
If you are on a new version of visual studio (2019?) then you will need to upgrade various files to take this into account. Below is a list of things we needed to do when upgrading to 2017 your list may be different.
The visual studio compiler environment variables are set up from ...\EPICS\base\master\startup\win32.bat
this calls into the visual studio variable set up. Add your version to this.
To convert tabs to spaces inside of Visual Studio go to
Tools->Options->Text Editor->All Languages->Tabs
Change Tab to use "Insert Spaces" instead of "Keep Tabs".
Note you can also specify this per language if you wish to have different behaviour in a specific language.