Building using CMake - Windows: Difference between revisions

Jump to navigation Jump to search
Updates for the build system now being based on VS2015.
(→‎Directory tree: Updated the msvc directories to msvc140*.)
(Updates for the build system now being based on VS2015.)
Line 3: Line 3:
== Required software ==
== Required software ==
* [http://www.cmake.org CMake GUI]
* [http://www.cmake.org CMake GUI]
* [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Microsoft Visual Studio 2010 Express] (MSVC)
* [https://www.visualstudio.com/vs/visual-studio-express/ Microsoft Visual Studio 2015 Express] (MSVC)
* [http://www.microsoft.com/en-us/download/details.aspx?id=8279 Microsoft Windows SDK] (only required for 64-bit builds)
* [http://www.microsoft.com/en-us/download/details.aspx?id=8279 Microsoft Windows SDK] (only required for 64-bit builds)
: If you get an error during the installation of the SDK, try uninstalling MSVC redist packages first, then installing the SDK without compilers and then finally re-installing MSVC.
: If you get an error during the installation of the SDK, try uninstalling MSVC redist packages first, then installing the SDK without compilers and then finally re-installing MSVC.
* [http://www.microsoft.com/en-au/download/details.aspx?id=23691 Visual Studio 2010 SP1] (If you get a linking error during the configure process)
* Qt5 for the [[Integrated Qt5 Launcher]] (optional as of 03/2015)
* Qt5 for the [[Integrated Qt5 Launcher]] (optional as of 03/2015)


Line 77: Line 76:
## Repeat the process from step 5, until [[File:CMake GUI Generate.png]] is enabled.
## Repeat the process from step 5, until [[File:CMake GUI Generate.png]] is enabled.
## Press [[File:CMake GUI Generate.png]].
## Press [[File:CMake GUI Generate.png]].
## Start Visual Studio 2010 and load the SimGear solution (SimGear.sln) located in <tt>"Where to build the binaries"</tt>.
## Start Visual Studio 2015 and open the SimGear solution (SimGear.sln) located in <tt>"Where to build the binaries"</tt>.
## Choose the <tt>"Release"</tt> build in the VS2010 "Generation" toolbar. The right menu should read Win32 for 32-bits or x64 for 64-bits. [[File:MVSC 2010 solution.png|right]]
## Choose the <tt>"Release"</tt> build in the toolbar. The right menu should read Win32 for 32-bits or x64 for 64-bits. [[File:MVSC 2010 solution.png|right]]
## Generate the solution with F7 key or right-click the top level "Solution SimGear" in the Solution Explorer and choose Build.
## Generate the solution with F7 key or right-click the top level "Solution SimGear" in the Solution Explorer and choose Build.
## If there are build errors, return to CMake, clear remaining errors, [[File:CMake GUI Configure.png]] and [[File:CMake GUI Generate.png]].
## If there are build errors, return to CMake, clear remaining errors, [[File:CMake GUI Configure.png]] and [[File:CMake GUI Generate.png]].

Navigation menu