Hi Robert

Just a small heads up that the SimCore project which is an
"addon/extension" of Delta3d is using osgEphemeris, they are building
using Cmake, so their might be a hint to get from that one.

http://delta3d-extras.svn.sourceforge.net/svnroot/delta3d-extras/SimulationCore/trunk/ext

Brgs.

Ralf Stokholm

2009/4/10 Robert Osfield <[email protected]>:
> Hi All,
>
> I'm off doing training next week and one of the topics may well be touch
> upon is osgEphemeris so I've pulled down the CVS from Don's AndesEnginnering
> website and had a bash at getting it, and it's dependency of Producer
> compiling.  I struggled to get things working so ended up having a bash at
> porting osgEphemeris to using CMake and against the latest OSG rev.
>
> To get the build working I've drawn the CMake files from VPB, OSG and
> osgEarth, it's a bit of hack... but it's almost working.  So far the
> osgEphemeris library itself is compiling and linking, and the plugin is
> compiling, but the paths are failing.  So... I was wondering if some helpful
> soul might be able to spot my CMake script error(s).
>
> I've put up by branch of osgEphemeris on the openscenegraph.org subversion
> repository, you can grab it from:
>
>     svn co http://www.openscenegraph.org/svn/osgEphemeris/trunk osgEphemeris
>
> Then to compile it's the usual OSG/Cmake routine, and under unices it looks
> like:
>
>     ./configure
>    make
>
> Which goes pretty sweetly till it tries to link the plugin.  These are the
> errors I get:
>
> [ 86%] Building CXX object
> src/osgEphemeris/CMakeFiles/osgEphemeris.dir/StarField.o
> [ 93%] Building CXX object
> src/osgEphemeris/CMakeFiles/osgEphemeris.dir/sun_image.o
> Linking CXX shared library ../../lib/libosgEphemeris.so
> [ 93%] Built target osgEphemeris
> Scanning dependencies of target osgdb_osgephemeris
> [100%] Building CXX object
> src/osgPlugins/osgEphemeris/CMakeFiles/osgdb_osgephemeris.dir/IO_EphemerisModel.o
> Linking CXX shared module /osgPlugins-2.9.2/osgdb_osgephemeris.so
> /usr/bin/ld: cannot open output file
> /osgPlugins-2.9.2/osgdb_osgephemeris.so: No such file or directory
> collect2: ld returned 1 exit status
> make[2]: *** [/osgPlugins-2.9.2/osgdb_osgephemeris.so] Error 1
> make[1]: ***
> [src/osgPlugins/osgEphemeris/CMakeFiles/osgdb_osgephemeris.dir/all] Error 2
>
> The error seems to be in the path to what should
> osgEmpheris/lib/osgPlugins-2.9.2, but instead it's just got the path
> /osgPlugins-2.9.2/osgdb_osgephemeris.so.  While I've tried to honour how the
> OSG does thing w.r.t plugins something is obviously wrong..   Hopefully what
> is wrong might ring a bell to the OSG/Cmake guru's.
>
> I haven't yet put together an osgViewer based example but this should be
> pretty straight forward.
>
> Cheers,
> Robert.
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to