Board index FlightGear Support Compiling

Compile without Installing  Topic is solved

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

Compile without Installing

Postby llsouder » Wed Mar 09, 2016 12:37 am

I am trying to compile FlightGear without installing SimGear. I want to have several versions to work with while I am evaluating some things.

I use cmake -DCMAKE_INSTALL_PREFIX=/home/test/fgtest on simgear and then the same in flightgear but I get a message about setting SIMGEAR_DIR.
I tried to set the SIMGEAR_DIR with export SIMGEAR_DIR=/home/test/fgtest but I cannot get flightgear's cmake to find simgear.

This page describes what I want to do:
http://wiki.flightgear.org/Building_using_CMake

Yes the instructions are for Mac, but I don't think that should matter, should it?
llsouder
 
Posts: 40
Joined: Fri Feb 12, 2016 8:33 pm

Re: Compile without Installing  

Postby FlugHund » Wed Mar 09, 2016 5:43 am

Try cmake option
Code: Select all
-D SIMGEAR_INCLUDE_DIR=
User avatar
FlugHund
 
Posts: 550
Joined: Thu Mar 01, 2007 3:27 pm
Callsign: D-HUND
IRC name: D-HUND / debdog
Version: next
OS: Devuan

Re: Compile without Installing

Postby llsouder » Wed Mar 09, 2016 6:54 pm

That worked!

Code: Select all
cmake -DSIMGEAR_INCLUDE_DIR="../fg-3.4.0/include" -DCMAKE_INSTALL_PREFIX="../fg-3.4.0/" .


note simgear was installed in ../fg-3.4.0 and I needed to tell cmake that simgear includes are found in ../fg-3.4.0/include .
llsouder
 
Posts: 40
Joined: Fri Feb 12, 2016 8:33 pm

Re: Compile without Installing

Postby llsouder » Thu Mar 10, 2016 9:54 pm

My last post was still incomplete because you also need to set the SIMGEAR_DIR for the linker. Without it, make will get to 99% but then fail on the link.

Code: Select all
SIMGEAR_DIR=/home/test/fglatest/ cmake .. -DCMAKE_INSTALL_PREFIX=/home/test/fglatest/ -DSIMGEAR_INCLUDE_DIR=/home/test/fglatest/include/ .
make
make install


I do like that fgfs is statically linked to simgear so I do not need any scripts to start it up.
llsouder
 
Posts: 40
Joined: Fri Feb 12, 2016 8:33 pm

Re: Compile without Installing

Postby Hooray » Thu Mar 10, 2016 9:59 pm

Please do feel free to edit the wiki article and improve it accordingly, thank you!
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12090
Joined: Tue Mar 25, 2008 8:40 am

Re: Compile without Installing

Postby llsouder » Mon Mar 14, 2016 12:29 pm

Hooray wrote in Thu Mar 10, 2016 9:59 pm:Please do feel free to edit the wiki article and improve it accordingly, thank you!


which wiki article? the IG one or the compiling page?
llsouder
 
Posts: 40
Joined: Fri Feb 12, 2016 8:33 pm


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest