Re: [Flightgear-devel] Building Simgear with OSG 3.0.0
On Sat, 2011-11-12 at 12:55 +0100, ThorstenB wrote: Am 12.11.2011 11:03, schrieb Chris Marr: trying to build the latest GIT version of FG, when cmake'ing simgear it complains that OSG 2.9.7 is installed, even though I've just downloaded and compiled OSG 3.0.1 can someone provide some pointers as to how to fix this? Or is there's quick fix in the cmake system I can do? Indeed, =OSG3.0.0 is required now. Make sure you also install OSG3.0.1 after compiling it. Obviously cmake still finds your 2.9.7 OSG installation, so either remove the old OSG installation, or provide the path to your OSG3.0.1 _installation_ folder to cmake directly, i.e. using environment variables as described here: http://wiki.flightgear.org/Building_using_CMake cheers, Thorsten Cheers, I found the problem. It's due to the FindOpenSceneGraph rules for cmake - it specifies to look in /usr/lib, /usr/include etc. Specifically, making openscenegraph doesn't overwrite the find rules for cmake (in the /usr/share/cmake/Modules location) I'm using the build instructions here: http://wiki.flightgear.org/Building_FlightGear_-_Debian I don't know enough about this to fix or correct the problem, but perhaps the instruction on the wiki page needs an update, I've used the following (there's a GIT copy of the SVN source as well) and it's working fine (it's ok for me, I have nothing else on my system that can be impacted by changing OSG - but what if two versions of OSG need to co-exist?): cd $srcdir git clone git://github.com/openscenegraph/osg.git openscenegraph mkdir osg-build cd osg-build cmake -D CMAKE_BUILD_TYPE=Release $srcdir/OpenSceneGraph make sudo make install I think a better fix is either to allow a single definition (OSG_BASE_DIR) to define where _ALL_ the osg components can be found, rather than defining each of the OSG_ components for building simgear (I counted 18 of them and I really can't be arsed to type that much - I just want to specify the base and find all the OSG components relative to that base) Chris -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Building Simgear with OSG 3.0.0
Chris Marr wrote: I'm using the build instructions here: http://wiki.flightgear.org/Building_FlightGear_-_Debian If you happen to be on Debian/AMD64 stable, then you might consider using the 3.0.1 packages available from here - they're a simple backport by building the source packages for Sid on Squeeze: ftp://ftp.uni-duisburg.de/FlightGear/OSG/Debian/ Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Building Simgear with OSG 3.0.0
Hi guys, trying to build the latest GIT version of FG, when cmake'ing simgear it complains that OSG 2.9.7 is installed, even though I've just downloaded and compiled OSG 3.0.1 can someone provide some pointers as to how to fix this? Or is there's quick fix in the cmake system I can do? Ta, Chris -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Building Simgear with OSG 3.0.0
Am 12.11.2011 11:03, schrieb Chris Marr: trying to build the latest GIT version of FG, when cmake'ing simgear it complains that OSG 2.9.7 is installed, even though I've just downloaded and compiled OSG 3.0.1 can someone provide some pointers as to how to fix this? Or is there's quick fix in the cmake system I can do? Indeed, =OSG3.0.0 is required now. Make sure you also install OSG3.0.1 after compiling it. Obviously cmake still finds your 2.9.7 OSG installation, so either remove the old OSG installation, or provide the path to your OSG3.0.1 _installation_ folder to cmake directly, i.e. using environment variables as described here: http://wiki.flightgear.org/Building_using_CMake cheers, Thorsten -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel