Scripted Compilation on Linux Debian/Ubuntu: Difference between revisions

no edit summary
No edit summary
Line 21: Line 21:


==Instructions==
==Instructions==
To run it, just save it in a directory called for example: ~/fg_tools
 
There are two adjustments that may be needed as explained in http://www.flightgear.org/forums/viewtopic.php?f=11&p=53359  Take a look at the Post by jentron on Mon Nov 02, 2009 10:00 am.
 
 
Use these commands to find the files and then edit them to add the lines marked by + in the diffs below.
(don't include the + sign, it just marks the line that must be added... but you knew that didn't you!)
 
find ./ -name AirportBrowser.cxx|grep trunk
find ./ -name wizard_funcs.cxx|grep trunk
 
 
Index: src/wizard_funcs.cxx
===================================================================
--- src/wizard_funcs.cxx  (revision 517)
+++ src/wizard_funcs.cxx  (working copy)
@@ -51,6 +51,7 @@
#include <plib/ul.h>
#include <plib/netSocket.h>
+#include <plib/sg.h>
#include "wizard.h"
#include "advanced.h"
 
Index: src/AirportBrowser.cxx
===================================================================
--- src/AirportBrowser.cxx  (revision 517)
+++ src/AirportBrowser.cxx  (working copy)
@@ -25,6 +25,7 @@
#include <fstream>
#include <sstream>
#include <iomanip>
+#include <math.h>
#include <FL/filename.H>
#include <FL/Fl_Round_Button.H>
 
To run download_and_compile.sh, just save it in a directory called for example: ~/fg_tools
then execute it (no need to execute it as root).
then execute it (no need to execute it as root).


929

edits