Submitted by ndl303 on
Body:

This information is intended for members of the USASK-ARG in the Department of Physics and Engineering Physics so they can compile our software with Visual Studio 2015. It is not intended as a generic guide to Visual Studio 2015.

### Install Boost for VS2015

Download and install the precompiled 64 bit VS2015 windows version of Boost, eg Boost 1.60 .  If you plan to do 32 bit development then you must also download and install the precompiled 32 bit VS2015 windows version of Boost, eg Boost 1.60.  Note that the 32bit and 64 bit precompiled installations can be installed in the same directory. Record the installation directory you choose for Boost as you will need to insert  this information in your user defined VS2015 property sheet.

### Environment Variable SK_SVN_DIR

Set Windows environment variable SK_SVN_DIR to point to the base directory of the subversion repository.

### Environment Variable SK_OBJ_DIR

Set Windows environment variable SK_OBJ_DIR to point to the location where you want windows to save all of the intermediate compilation output files.  This should be a fast local drive  (e.g. 100 GB or greater ). You should avoid choosing network drives

### Update the following SVN repositories

• Repos_Libs
• Repos_BaseCode
• Repos_skclimatology
• Repos_skopticalproperties

### Edit your personal VS2015 Property Sheet

Visual Studio 2015 needs to be configured to compile the ARG software. Most of the compiler configuration is automatically managed  through custom Visual Studio Property Sheets stored in ARG repository Repos_Libs in folder Repos_libs\VS2015\PropertySheets.  However,  each user must edit their own personal property sheet to configure Visual Studio 2015 for other third party software packages suchas Boost etc. You can look at the Property Sheets by opening an ARG  solution, e.g.  Repos_BaseCode\nxbase\CompilerIDE\VS2015\nxbase.sln for example, and selecting the Property Manager tab next to the Class View and Solution Explorer. See the example below

### Edit file Microsoft.Cpp.x64.user and/or Microsoft.Cpp.win32.user

Your user specific property sheet is called Microsoft.Cpp.x64.user for x64 projects and Microsoft.Cpp.win32.user for win32 projects. You should edit these files to modify the follwoing 3 items:

#### 1. User Macros

• VSXXXX = VS2015

The VSXXXX macro is extensively used by the ARG property sheets to create different obj, lib and exe output directories for different Visual Studio editions. You may have to set other macros if you wish to develop matlab or python code.

#### 2. Include Directories

Set the include directories to include all necessary third party software include files e.g.

• C:\Users\nickl\Documents\Work\software\boost\VS2015\boost_1_60_0
• C:\Users\nickl\Documents\Work\software\Repos_3rdParty\Eigen\include\eigen3
• C:\Program Files\Microsoft SQL Server\110\SDK\Include;

### Save Microsoft.Cpp.x64.user

After making all of the necessary changes, press Apply, in the dialog box, then right-click the filename Microsoft.Cpp.x64.user in the left hand tree view and choose to Save the file.  We have found that Visual Studio does not always automatically save the changes and you need to explicitly save the file.