8,805
edits
m (→Building: Button images.) |
|||
Line 43: | Line 43: | ||
## Set <tt>"Where is the source code"</tt> to wherever you put the SimGear sources (from the released tarball or the git repository). | ## Set <tt>"Where is the source code"</tt> to wherever you put the SimGear sources (from the released tarball or the git repository). | ||
## Set <tt>"Where to build the binaries"</tt> to a new empty directory (could be anywhere and any name, for example naming it simgear-build, at the same folder location as your unzipped SimGear source folder was put). | ## Set <tt>"Where to build the binaries"</tt> to a new empty directory (could be anywhere and any name, for example naming it simgear-build, at the same folder location as your unzipped SimGear source folder was put). | ||
## Press | ## Press [[File:CMake GUI Configure.png]]. The first time that the project is configured, CMake will bring up a window asking you to "Specify the generator for this project" i.e. which compiler you wish to use. Select Visual Studio 10, (or Visual Studio 10 Win64 for 64 bit), and press Finish. CMake will now do a check on your system and will produce a preliminary build configuration. | ||
## CMake adds new configuration variables in red. Some have a value ending with <tt>-NOTFOUND</tt>. These variables should receive your attention. Some errors will prevent SimGear to build and others will simply invalidate some options without provoking build errors. | ## CMake adds new configuration variables in red. Some have a value ending with <tt>-NOTFOUND</tt>. These variables should receive your attention. Some errors will prevent SimGear to build and others will simply invalidate some options without provoking build errors. | ||
### First check the <tt>MSVC_3RDPARTY_ROOT</tt> variable. If it is not set, chances are that there will be a lot of <tt>-NOTFOUND</tt> errors. Instead of trying to fix every error individually, set that variable to the location of the directory structure that is presented above. Then press | ### First check the <tt>MSVC_3RDPARTY_ROOT</tt> variable. If it is not set, chances are that there will be a lot of <tt>-NOTFOUND</tt> errors. Instead of trying to fix every error individually, set that variable to the location of the directory structure that is presented above. Then press [[File:CMake GUI Configure.png]] again. | ||
### Also check the lines with a checkbox. These are build options and may impact the feature set of the built program. | ### Also check the lines with a checkbox. These are build options and may impact the feature set of the built program. | ||
### Click [[File:CMake GUI Add entry.png]] to create a new entry with: | ### Click [[File:CMake GUI Add entry.png]] to create a new entry with: | ||
Line 51: | Line 51: | ||
###* '''Type:''' PATH | ###* '''Type:''' PATH | ||
###* '''Value:''' <tt>${MSVC_3RDPARTY_ROOT}/install/msvc100/SimGear</tt> | ###* '''Value:''' <tt>${MSVC_3RDPARTY_ROOT}/install/msvc100/SimGear</tt> | ||
## Repeat the process from step 5, until | ## Repeat the process from step 5, until [[File:CMake GUI Generate.png]] is enabled. | ||
## Press | ## 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> (point 4.) | ## Start Visual Studio 2010 and load the SimGear solution (SimGear.sln) located in <tt>"Where to build the binaries"</tt> (point 4.) | ||
## Choose the <tt>"Release"</tt> build in the VS2010 "Generation" toolbar[[File:MVSC 2010 solution.png|right]] | ## Choose the <tt>"Release"</tt> build in the VS2010 "Generation" toolbar[[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, | ## If there are build errors, return to CMake, clear remaining errors, [[File:CMake GUI Configure.png]] and [[File:CMake GUI Generate.png]]. | ||
## When Visual Studio is able to build everything without errors, build the <tt>INSTALL</tt> project to put the product files in <tt>${CMAKE_INSTALL_PREFIX}</tt> | ## When Visual Studio is able to build everything without errors, build the <tt>INSTALL</tt> project to put the product files in <tt>${CMAKE_INSTALL_PREFIX}</tt> | ||
# '''Building FlightGear''' | # '''Building FlightGear''' |