User:Legoboyvdlp/Building using CMake - Windows: Difference between revisions

Jump to navigation Jump to search
Line 79: Line 79:
## 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 from building and others will simply invalidate some options without causing 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 from building and others will simply invalidate some options without causing 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 Dependencies foldier in the directory structure that is presented above. Then press [[File:CMake GUI Configure.png]] again.
### 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 Dependencies foldier in the directory structure that is presented above. Then press [[File:CMake GUI Configure.png]] again.
### Set the  <tt>CMAKE_INSTALL_PREFIX</tt> variable to <tt>${MSVC_3RDPARTY_ROOT}/install/msvc140/SimGear</tt> (<tt>msvc140-64</tt> for 64-bit).
### Set the  <tt>CMAKE_INSTALL_PREFIX</tt> variable to <tt>${MSVC_3RDPARTY_ROOT}\install\msvc140-64\Simgear</tt>
### Also check the lines with a checkbox. These are build options and may impact the feature set of the built program.
### Set the Boost_DIR variable to <tt>Dependencies\Boost</tt>
### Also verify the lines with a checkbox. These are build options and may impact the feature set of the built program.
### You may wish to set the CMAKE_BUILD_TYPE to RelWithDebInfo -- this generates a faster FlightGear that still has some debugging capability.
## 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]].
842

edits

Navigation menu