Building using CMake - Windows: Difference between revisions

Jump to navigation Jump to search
Update links to GitLab
(Added FG_ROOT to launch script)
(Update links to GitLab)
Line 17: Line 17:
The commands to run are:
The commands to run are:


{{code|git clone https://git.code.sf.net/p/flightgear/simgear simgear}}
{{#tag:syntaxhighlight|
 
{{repo link
{{code|git clone https://git.code.sf.net/p/flightgear/flightgear flightgear}}
  | site = gitlab
 
  | cmd  = git clone
{{code|git clone https://git.code.sf.net/p/flightgear/fgdata fgdata}}
  | proj = flightgear
 
  | repo = simgear
{{code|git clone https://git.code.sf.net/p/flightgear/windows-3rd-party windows-3rd-party}}
  | type = git
 
  | full = 1
{{code|git clone https://gitlab.com/flightgear/openscenegraph.git osg}}
}} simgear
 
{{repo link
{{caution| Cloning fgdata from SourceForge often fails. Therefore, we suggest you use a GitLab mirror repository. Instead of
  | site = gitlab
 
  | cmd  = git clone
{{code|git clone https://git.code.sf.net/p/flightgear/fgdata fgdata}}
  | proj = flightgear
 
  | repo = flightgear
call:
  | type = git
 
  | full = 1
{{code|git clone https://gitlab.com/flightgear/fgdata.git fgdata}}
}} flightgear
 
{{repo link
and after downloaded all data:
  | site = gitlab
 
  | cmd  = git clone
<syntaxhighlight lang="bash">
  | proj = flightgear
cd fgdata
  | repo = fgdata
git checkout next
  | type = git
git remote set-url origin https://git.code.sf.net/p/flightgear/fgdata
  | full = 1
git pull
}} fgdata
</syntaxhighlight>
{{repo link
  | site = gitlab
  | cmd  = git clone
  | proj = flightgear
  | repo = windows-3rd-party
  | type = git
  | full = 1
}} windows-3rd-party
{{repo link
  | site = gitlab
  | cmd  = git clone
  | proj = flightgear
  | repo = openscenegraph
  | type = git
  | full = 1
}} osg
| lang = "sh"
}}
}}


Line 165: Line 181:
Before starting to use the script, you need to edit the top few lines of the script. You will have to:
Before starting to use the script, you need to edit the top few lines of the script. You will have to:


1. Set the path to your CMake installation.
# Set the path to your CMake installation.
 
# Ensure that the path to your QT SDK is correct for your version of MSVC.
2. Ensure that the path to your QT SDK is correct for your version of MSVC.
# Ensure your toolchain version matches, e.g. "Visual Studio 16 2019" for MSVC 2019 or "Visual Studio 15 2017" for MSVC 2017.
 
# Set ROOT_DIR to the FlightGearBuild folder you created (the above directory structure)
3. Ensure your toolchain version matches, e.g. "Visual Studio 16 2019" for MSVC 2019 or "Visual Studio 15 2017" for MSVC 2017.
 
4. Set ROOT_DIR to the FlightGearBuild folder you created (the above directory structure)


==== Post-compilation: Launching FlightGear ====
==== Post-compilation: Launching FlightGear ====

Navigation menu