config RelWithDebInfo -target INSTALLĬmake %ROOT_DIR%\simgear -G %CMAKE_TOOLCHAIN% -A 圆4 ^ -DOSG_FSTREAM_EXPORT_FIXED:BOOL=ON ^ -DCMAKE_INSTALL_PREFIX:PATH= %ROOT_DIR%\installĬmake %ROOT_DIR%\flightgear -G %CMAKE_TOOLCHAIN% -A 圆4 ^ -DCMAKE_INSTALL_PREFIX:PATH= %ROOT_DIR%\install ^ -DCMAKE_PREFIX_PATH= %QT5SDK64% ^ -DOSG_FSTREAM_EXPORT_FIXED:BOOL=ONīefore starting to use the script, you need to edit the top few lines of the script. SET CMAKE_TOOLCHAIN = "Visual Studio 17 2022" SET ROOT_DIR =C:\path\to\FlightGearBuildĬmake %ROOT_DIR%\osg -G %CMAKE_TOOLCHAIN% -A 圆4 ^ -DACTUAL_3RDPARTY_DIR= %ROOT_DIR%\windows-3rd-party/msvc140/3rdParty.圆4 ^ -DCMAKE_RELWITHDEBINFO_POSTFIX:STRING= ^ -DOSG_USE_UTF8_FILENAME:BOOL=ON ^ -DWIN32_USE_MP:BOOL=ON ^ -DCMAKE_INSTALL_PREFIX:PATH= %ROOT_DIR%\installĬmake -build. SET PATH = %PATH% %ProgramFiles%\CMake\bin This script will allow you to build OpenSceneGraph, SimGear and FlightGear automatically. It is best to make sure there are no spaces in the path anywhere.įlightGearBuild / (Main root directory) fgdata / (FlightGear data files) flightgear / (FlightGear sources) install / (Directory where you will install the built binaries to) launch.bat / (launch script if desired, see below) osg / (OSG sources) simgear / (SimGear sources) windows-3rd-party / build.bat / (build script, see below) update.bat / (update script, see below) Building Scripted Compilation If you do not use the recommended structure you will need to enter paths by hand and some parts may not input correctly.Ĭaveat - spaces in the directory names will cause errors. The components can be downloaded from the links above. This recommended directory structure is described below. On Windows, assumptions on the directory structure are made to automate the discovery of dependencies. Instead ofĪfter downloading these, I would suggest assembling a folder structure as below: Therefore, we suggest you use a GitLab mirror repository. Git clone -b fgfs-osg-36-1 osg Caution Cloning fgdata from SourceForge often fails. Using an organized directory (see below) will help significantly. Throughout this article it is assumed that you have set up git clones of the various source repositories (FlightGear, SimGear, data.). See FlightGear and Git for the main article about this subject. It also simplifies downloads of components. Leave the default Developer and Designer Tools selection - these are needed for coding and compiling. Any version past 5.9 will be fine latest 5.x recommended. Download the online installer, and choose the version matching your toolchain of Visual Studio e.g. As of, the latest version of the compiler is "MSVC 142 - VS 2019 C++ 圆4/86 build tools (v14.29)". Make sure to have the last version of the Windows SDK and C++ Compiler checked. The one to download is "Desktop Development with C++". You either choose this component during installation or after installation by starting MSVC and trying to create a new C++ project. The C++ compiler will not be installed by default. There is no need for the premium versions none of their features are required to build FlightGear. Download and install the Windows Win64-圆4 Installer. 4.1.1 Post-compilation: Launching FlightGear.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |