Board index FlightGear Support Compiling

Building using CMake on Windows

Building FlightGear from source, and in the need for help?

Building using CMake on Windows

Postby IndiPal » Sun Aug 16, 2020 9:20 pm

Hey guys,

I'm trying to follow Building using CMake - Windows to build FG from source on Windows 10 but I'm running into some issues.

(I have no clue what I'm doing so please bear with me.)

I seem to have solved most of my issues and I have managed to build SimGear. While building FlightGear however, I'm getting a lot of errors as the one below.

Code: Select all
Cannot open include file 'simgear/scene/material/matlib.hxx': No such file or directory


I get 152 such errors so I'm guessing I've put in the wrong path somewhere or that the files aren't located where they're supposed to be.

I've been trying for several days and would really appreciate some help.
Anyone have any clue how I can solve this?
IndiPal
 
Posts: 14
Joined: Mon Sep 26, 2011 1:32 pm
Location: Sweden

Re: Building using CMake on Windows

Postby zakalawe » Wed Aug 19, 2020 11:59 am

Did you use the same CMAKE_INSTALL_PREFIX for both Simgear and FlightGear? And did you remember to make the 'install' target for SimGear? If everything is in C:\FGFS, your Cmake line would be something like:
> md sgbuild
> cd sgbuild
>cmake ..\simgear -DCMAKE_INSTALL_PREFIX=C:\FGFS\dist -G "Visual Studio 15 2017 x64"
>cmake --build . --target install --config RelWithDebInfo
>cd ..
>md fgbuild
>cd fgbuild
>cmake ..\flightgear -DCMAKE_INSTALL_PREFIX=C:\FGFS\dist -G "Visual Studio 15 2017 x64"
>cmake --build . --target fgfs --config RelWithDebInfo

This assumes flightgear, simgear and windows-3rd-party repositoires are all in C:\FGFS, obviously.
zakalawe
 
Posts: 1259
Joined: Sat Jul 19, 2008 5:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac

Re: Building using CMake on Windows

Postby IndiPal » Thu Oct 01, 2020 10:19 pm

Hi zakalawe,

Sorry for the late response. Unfortunately work has gotten in the way and I haven't had the time to play around with compiling anymore. I'll get back here as soon as I find the time to try again.

Thank you for taking the time to respond! :)
IndiPal
 
Posts: 14
Joined: Mon Sep 26, 2011 1:32 pm
Location: Sweden


Return to Compiling

Who is online

Users browsing this forum: No registered users and 5 guests