Board index FlightGear Support Compiling

osg::GLExtensions has not been declared  Topic is solved

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

Re: osg::GLExtensions has not been declared

Postby yanes » Fri Feb 16, 2018 10:53 pm

I found this ppa in abassign's post in this thread .

my system is 16.04.3 , But I never got to do any additional stuff with QT5 toolkit (It may be already installed discretely along with other packages ) .
User avatar
yanes
 
Posts: 135
Joined: Tue Sep 02, 2014 2:14 pm
Location: Tunisia
Callsign: YANES
Version: 2018.2.2
OS: Linux

Re: osg::GLExtensions has not been declared

Postby wkitty42 » Sat Feb 17, 2018 12:52 am

the Qt version in Ubuntu 16.04 is too old to build FG against... it definitely doesn't have the GLExtensions stuff... that's why i have the one in place that i'm using... ummm... hold on...
Code: Select all
# deb-src http://ppa.launchpad.net/beineri/opt-qt591-trusty/ubuntu trusty main

in my d&c script, i added a QT_BASE_DIR which i point to "/opt/qt59"... then i use it like this when d&c runs through the reconfigure process... you can see where i've included the QT_BASE_DIR variable so that the build system will use it...
Code: Select all
        echo "Using custom Qt installed in $QT_BASE_DIR" | tee -a $LOGFILE
        echo "executing $CMAKE" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
              -DENABLE_FLITE=ON \
              -DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_DIR_FGFS" \
              -DCMAKE_PREFIX_PATH="$INSTALL_DIR_SIMGEAR;$INSTALL_DIR_OSG;$INSTALL_DIR_OPENRTI;$INSTALL_DIR_PLIB;$QT_BASE_DIR" \
              $FG_CMAKEARGS \
              ../../flightgear 2>&1 | tee -a $LOGFILE
        "$CMAKE" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
              -DENABLE_FLITE=ON \
              -DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_DIR_FGFS" \
              -DCMAKE_PREFIX_PATH="$INSTALL_DIR_SIMGEAR;$INSTALL_DIR_OSG;$INSTALL_DIR_OPENRTI;$INSTALL_DIR_PLIB;$QT_BASE_DIR" \
              $FG_CMAKEARGS \
              ../../flightgear 2>&1 | tee -a $LOGFILE

after this, "make" and "make install" are run in each FG packages' directory...
there's more to the above because it is wrapped in an if statement to use the system installed Qt or the custom one in /opt... AFAIK i'm able to run the latest FG code using Qt... that includes the launcher as well as the other stuff that's being worked on... some of the plib->canvas stuff, i think...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Previous

Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests