On Fri, Apr 10, 2009 at 11:33 AM, Robert Osfield
<robert.osfi...@gmail.com>wrote:

> 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


Hmm, server appears down for me so I can't have a look at this right now.
I'm guessing that the problem has something to do with setting the PREFIX
target property which I think is what OSG uses to force the plugins into an
osgPlugins-x.y.z folder?

Could you add the following after the declaration of
add_library(osgephemeris MODULE...)

message("CMAKE_LIBRARY_PATH = ${CMAKE_LIBRARY_PATH}")
message("CMAKE_LIBRARY_OUTPUT_DIRECTORY =
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
get_target_properties(the_prefix osgephemeris PREFIX)
message("the prefix is = ${the_prefix}")

-- 
Philip Lowman
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to