Board index FlightGear Support Compiling

download_and_compile - can't find osg libs

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

download_and_compile - can't find osg libs

Postby daveculp » Thu Apr 04, 2013 5:23 pm

I've just built fgfs using brisa's script (thanks brisa!). All appears to be built properly. I start using fgo!, and fgfs stops with the following complaint:

/home/dave/fgfs/install/fgfs/bin/fgfs: error while loading shared libraries: libosgText.so.80: cannot open shared object file: No such file or directory

I looked in /home/dave/fgfs/install/OpenSceneGraph/lib64 and found the lib (which is actually a symlink to libosgText.so.3.0.1). Any ideas as to why fgfs can't find this library? Note: I erased my old OSG libs and headers just to make sure fgfs isn't looking there.

Thanks, dave
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: download_and_compile - can't find osg libs

Postby Hooray » Thu Apr 04, 2013 5:51 pm

Any ideas as to why fgfs can't find this library? Note: I erased my old OSG libs and headers just to make sure fgfs isn't looking there.


Usually, the various dependencies/libs are not installed system-wide, but in a custom location (that makes it possible, to easily use different OSG/SG/FG versions on a single system, i.e. for testing purposes - but also to have separate build trees (optimized/debug) ) - which is why you either need to set LD_LIBRARY_PATH or simply use Brisa's script to run everything (something like run_fgfs.sh, which automatically sets up all environment variables according to your build settings). Please see the wiki for details: http://wiki.flightgear.org/Scripted_Com ... FlightGear

To learn more about using git to make changes and create your own branches, see:
http://wiki.flightgear.org/Howto:Start_using_git
http://wiki.flightgear.org/Git
The cmake build system used in FG now is documented at: http://wiki.flightgear.org/Developing_using_CMake
The wiki has a dedicated "developer" portal with tons of development related articles and pointers: http://wiki.flightgear.org/Portal:Developer
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: 12059
Joined: Tue Mar 25, 2008 8:40 am

Re: download_and_compile - can't find osg libs

Postby daveculp » Fri Apr 05, 2013 4:56 am

Thanks Hooray, that did it. I just needed to set the environment variables. Now, problem number two :)

When fgfs tried to start, it quit with a warning that data version 2.8.0 was needed, whereas I only had 2.10.0. I did the simple fix of changing the version number in data to 2.8.0, so fgfs is happy now, however I get a console message that fgfs is operating in a 2.8.0 backward compatibility mode. That doesn't sound good. Any idea what the proper solution is?

Thanks again,

Dave
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: download_and_compile - can't find osg libs

Postby Hooray » Fri Apr 05, 2013 3:15 pm

that would seem to suggest that your SG/FG source trees are not NEXT, could you check that first ?
a couple of weeks ago, somebody else experienced the same thing. What does the configuration step say exactly ?
You will want to build 2.11 probably, right ?

Besides, the "compatibility mode" thing is totally new to me - never heard of that at all - maybe a recent change.
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: 12059
Joined: Tue Mar 25, 2008 8:40 am

Re: download_and_compile - can't find osg libs

Postby daveculp » Sat Apr 06, 2013 3:53 pm

Thanks Hooray. Looking in the download_and_compile.sh script, I see the following:

Code: Select all
#######################################################
# Last stable revision: currently FlightGear 2.4.0 with 3.0.1
PLIB_STABLE_REVISION="2172"
OSG_STABLE_REVISION="http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1"

# common stable branch for flightgear, simgear and fgdata
FGSG_STABLE_GIT_BRANCH="release/2.8.0"
FGRUN_STABLE_GIT_BRANCH="master"
OPENRTI_STABLE_GIT_BRANCH="release-0.3"

# unstable branch: next for sg/fg, master for fgdata
FGSG_UNSTABLE_GIT_BRANCH="next"
FGDATA_UNSTABLE_GIT_BRANCH="master"
FGRUN_UNSTABLE_GIT_BRANCH="master"
OPENRTI_UNSTABLE_GIT_BRANCH="master"

# stable GIT revision: release tag
SIMGEAR_STABLE_REVISION="version/2.8.0-final"
FGFS_STABLE_REVISION="version/2.8.0-final"
FGFS_DATA_STABLE_REVISION="version/2.8.0-final"
OPENRTI_STABLE_REVISION="OpenRTI-0.3.0"

# FGCOM
FGCOM_UNSTABLE_GIT_BRANCH="master"
FGCOMGUI_STABLE_REVISION="46"

# Current developer revision: latest FlightGear GIT (2.5.0) with OSG 3.0.1
OSG_UNSTABLE_REVISION="http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1"

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


This is script version 1.9.4. So looks like it is fetching FG2.8 code, however it also fetches 2.10 data (don't know why). I'll try editing this part of the script and updating my FG build.
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: download_and_compile - can't find osg libs

Postby chris_blues » Mon Apr 29, 2013 12:10 pm

Hi, my machine couldn't find quite some OSG-libs. Since I don't have them in /usr or sth, only in my home-folder, I don't know, where to fix this...
Code: Select all
chris@chris-simulator:~/git$ ./download_and_compile.sh -a n -p n -i -r y -j 3 SIMGEAR
****************************************
**************** SIMGEAR ***************
****************************************
simgear exists already.
Bereits auf 'next'
Already up-to-date.
-- version is 2 dot 11 dot 0
-- ignoring: ^/home/chris/git/simgear/simgear/.git;\\.gitignore;Makefile.am;~$;
-- Library installation directory: lib/x86_64-linux-gnu
-- additional library directories: /usr/local/lib/x86_64-linux-gnu;/usr/lib/x86_64-linux-gnu;/lib/x86_64-linux-gnu
-- Boost version: 1.49.0
-- SimGear mode: NORMAL
-- Sound support: ENABLED
-- Could NOT find osgText (missing:  OSGTEXT_LIBRARY)
-- Could NOT find osgSim (missing:  OSGSIM_LIBRARY)
-- Could NOT find osgDB (missing:  OSGDB_LIBRARY)
-- Could NOT find osgParticle (missing:  OSGPARTICLE_LIBRARY)
-- Could NOT find osgGA (missing:  OSGGA_LIBRARY)
-- Could NOT find osgUtil (missing:  OSGUTIL_LIBRARY)
-- Could NOT find osg (missing:  OSG_LIBRARY)
-- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY)
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
  Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
  OSGTEXT_FOUND OSGSIM_FOUND OSGDB_FOUND OSGPARTICLE_FOUND OSGGA_FOUND
  OSGUTIL_FOUND OSG_FOUND OPENTHREADS_FOUND) (found suitable version "3.1.5",
  minimum required is "3.0.0")
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:187 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:185 (find_package)


-- Configuring incomplete, errors occurred!
make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden.  Schluss.
make: *** Keine Regel, um »install« zu erstellen.  Schluss.
/home/chris/git/build/simgear

But PLib, OSG and OpenRTI built fine! Any hints are very appreciated!

Anyway, is this supposed to be some kind of joke???
Code: Select all
Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
  OSGTEXT_FOUND OSGSIM_FOUND OSGDB_FOUND OSGPARTICLE_FOUND OSGGA_FOUND
  OSGUTIL_FOUND OSG_FOUND OPENTHREADS_FOUND) (found suitable version "3.1.5",
  minimum required is "3.0.0")


cheers
chris

EDIT:
...found it! I edited build/simgear/CMakeCache.txt and provided the paths by hand there...

which failed! :)
found out, that I had 2 versions of OSG in the same folder! OSG-3.0.1 and OSG-3.1.5, both installed in /install/OpenSceneGraph/ ... no wonder, why it came to that funny message... :)
After deleting the whole OSG-folder, everything worked fine by itself...
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
 
Posts: 1569
Joined: Mon May 03, 2010 1:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest