Board index FlightGear Support Compiling

Cmake ignoring path to OSG

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

Re: Cmake ignoring path to OSG

Postby bugman » Fri Dec 04, 2015 5:57 pm

If the OSG files are installed from the package manager (for Linux systems), does the download_and_compile.sh script switch to that version instead? It has to be the OSG development rather than the OSG libraries which are installed.

Regards,
Edward
bugman
Moderator
 
Posts: 1799
Joined: Thu Mar 19, 2015 9:01 am
Version: next

Re: Cmake ignoring path to OSG

Postby wkitty42 » Sat Dec 05, 2015 12:32 am

yes, as far as i can tell, the dnc script does switch over... i can see the paths change in my compile log when i switch between them as previously noted... when switching back to the globally installed package, removal or renaming of the private installed version of the repo built OSG is required... why? i don't know... i'm not a [c]make file guru ;)

FWIW: the dnc script also (currently) applies these packages when allowed to do so... openscenegraph-dev is definitely in there and is installed globally on the machine...

Code: Select all
#######################################################
# Minimum
PKG="build-essential cmake git"
# TG
PKG="$PKG libcgal-dev libgdal-dev libtiff5-dev"
# TGGUI/OpenRTI
PKG="$PKG libqt4-dev"
# SG/FG
PKG="$PKG zlib1g-dev freeglut3-dev libboost-dev libopenscenegraph-dev"
# FG
PKG="$PKG libopenal-dev libudev-dev qt5-default libdbus-1-dev libpng12-dev libplib-dev"
# FGPanel
PKG="$PKG fluid libbz2-dev libfltk1.3-dev libxi-dev libxmu-dev"
# FGAdmin
PKG="$PKG libxinerama-dev libjpeg-dev libxft-dev"
# ATC-Pie
PKG="$PKG python3-pyqt5 python3-pyqt5.qtmultimedia libqt5multimedia5-plugins"
# FGo
PKG="$PKG python-tk"
# FGx (FGx is not compatible with Qt5, however we have installed Qt5 by default)
#PKG="$PKG libqt5xmlpatterns5-dev libqt5webkit5-dev"

if [ "$DOWNLOAD_PACKAGES" = "y" ]; then
  echo "Asking password for apt-get operations..."
  if [ "$APT_GET_UPDATE" = "y" ]; then
    sudo apt-get update
  fi
  sudo apt-get install $PKG
fi

#######################################################


hamzaalloush (i'm sure i got that wrong) knows more about the OSG integration with the dnc script since he was one of those behind getting the repo version integrated with the script... he may know why we have to remove or rename the install directory with OSG to switch back to the machine's global OSG[-dev] installation...
"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: 6966
Joined: Fri Feb 20, 2015 3: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 1 guest