Building using CMake - Windows: Difference between revisions

Jump to navigation Jump to search
Required software, directory tree in wiki markup
m (Add link to readme on Gitorious)
(Required software, directory tree in wiki markup)
Line 1: Line 1:
{{Main article|Building Flightgear}}
{{Main article|Building Flightgear}}


== Building FlightGear with Cmake under Windows ==
== Required software ==
* [http://www.cmake.org CMake GUI]
* [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Microsoft Visual Studio 2010 Express]
* [http://code.google.com/p/msysgit/ msysGit]
 
== Directory tree ==
On Windows, assumptions on the directory structure are made to automate the discovery of dependencies.
On Windows, assumptions on the directory structure are made to automate the discovery of dependencies.
This recommended directory structure is described below:
This recommended directory structure is described below:


${MSVC_3RDPARTY_ROOT} /
<tt>
      3rdParty /                 ( includes plib, fltk, zlib, libpng, libjpeg, libtiff, freetype, libsvn, gdal, ...
: ${MSVC_3RDPARTY_ROOT} /
        bin /
:: [ftp://ftp.ihg.uni-duisburg.de/FlightGear/Win32/MSVC/fgfs-win32-VS100-3rdParty+OSG-20120304.zip 3rdParty] / </tt> ( includes plib, fltk, zlib, libpng, libjpeg, libtiff, freetype, libsvn, gdal, ... ) <tt>
        include /
::: bin /
        lib /
::: include /
      3rdParty.x64 /             ( 64 bit version
::: lib /
        ...
:: 3rdParty.x64 / </tt> ( 64 bit version ) <tt>
      boost_1_44_0 /
::: bin /
        boost /
::: include /
      install /
::: lib /
        msvc100 /               ( for VS2010 32 bits, or msvc90, msvc90-64 or msvc100-64 for VS2008 32, VS2008 64 and VS2010 64
:: boost_1_44_0 /
            OpenSceneGraph /     ( OSG CMake install
::: boost /
              bin /
:: install /
              include /
::: msvc100 / </tt> ( for VS2010 32 bits, or msvc90, msvc90-64 or msvc100-64 for VS2008 32, VS2008 64 and VS2010 64 ) <tt>
              lib /
:::: [http://flightgear.simpits.org:8080/job/OSG-stable-Win/lastSuccessfulBuild/artifact/*zip*/archive.zip OpenSceneGraph] / </tt> ( OSG CMake install ) <tt>
            SimGear /
::::: bin /
              include /
::::: include /
              lib /
::::: lib /
:::: SimGear /
::::: include /
::::: lib /</tt>


If you do not use the recommended structure you will need to enter paths by hand. Source and build directories can be located anywhere.
If you do not use the recommended structure you will need to enter paths by hand. Source and build directories can be located anywhere.
Line 30: Line 38:
       CMAKE_INSTALL_PREFIX : ${MSVC_3RDPARTY_ROOT}/install/msvc100/FlightGear (or any variation for the compiler version described above )
       CMAKE_INSTALL_PREFIX : ${MSVC_3RDPARTY_ROOT}/install/msvc100/FlightGear (or any variation for the compiler version described above )


 
== Building ==
# Set up a work directory as described above.
# Set up a work directory as described above.
# Open the Cmake gui.
# Open the Cmake gui.

Navigation menu