User:Callahanp/fg-from-scratch

From FlightGear wiki
< User:Callahanp
Revision as of 14:45, 22 February 2020 by Callahanp (talk | contribs) (Initial Project Description - Improvements to fg-from-scratch to allow building a debug target.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

fg-from-scratch is a windows batch script capable of producing a working release version of flightgear and terragear executables.

As soon as practical, replace this copy of your original e-mail with a link to the thread on the flightgear-developer's list.

I'm about to start working on a debug build, based on fg-from-scratch.cmd

As currently written, the script is fully capable of producing a release build for flightgear and terragear. Currently It leverages vcpkg, and cmake to produce the release executables. As part of its build it produces windows versions of all of the open-source libraries that underlie openscenegraph, simgear, flightgear and terragear. Starting with Cmake, it produces a visual studio project that can be used to rebuild the release version, but currently fails to produce a working debug version.

Before starting, in order to fully understand the existing fg-from-scratch, I'm doing a bit of reading on vcpkg, cmake and visual studio and examining the existing directory structure and files.

As for changes, there's no need to wait. I'll be watching for merge requests to the fg-meta/fg-from-scratch folder. Don't hold back...

I'll be doing a deep dive until I feel ready to propose specific changes to the existing script. If you want to work with me on this you can contact me through a reply to this thread. I have a phone, a gmail account (google hangouts) and an IRC client for real time communication. I'll be posting notes to

In the meantime, anyone with a sense of what needs doing is welcome to respond to this thread with suggestions or direction.


Cmake and Visual Studio: https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=vs-2019

https://www.codeproject.com/Articles/1181455/A-CMake-Tutorial-for-Visual-Cplusplus-Developers

vcxpkg: https://docs.microsoft.com/en-us/cpp/build/vcpkg?view=vs-2019

https://github.com/microsoft/vcpkg/blob/master/docs/index.md

ninja: Task: Find out if ninja is currently used in fg-from-scratch.cmd if it is include it in research. If not, discuss advantages/disadvantages with the wider flightgear development community.

Per target build and install directories: Task: A technique I've observed in use is to provide separate build and install directories for each target build: release, rel-with-debug, debug. Investigate vcpkg-git, scratch-build and scratch-install to determine where this technique is and is not used.

-p callahan