Hi Martin, On 18/05/11 17:53 , Martin Haffner wrote: > I used osgconv and osgviewer for a long time, but suddenly it stopped > working. This is > the output when I try to use osgconv: > >> osgconv part0001_002.flt foo.osrg Warning: dynamic library >> '/usr/local/lib/osgPlugins-2.9.5/osgdb_openflight.so' exists, but an error >> occurred >> while trying to open it: >> /usr/local/lib/osgPlugins-2.9.5/osgdb_openflight.so: wrong >> ELF class: ELFCLASS32 Warning: Could not find plugin to read objects from >> file >> "part0001_002.flt". Error no data loaded. > > I have a 64 Bit machine and osgconv is a 64 Executable. I guess the problem > is that he > tries to load the 32 Bit shared object osgdb_openflight.so. But I don't > understand that > he tries to load this 32 Bit .so, because my 64 bit lib folder comes first in > LD_LIBRARY_PATH: > >> echo $LD_LIBRARY_PATH >> /usr/local/lib64/osgPlugins-2.9.5/:/usr/local/lib/:/usr/local/lib64/:/usr/local/lib/osgPlugins-2.9.5/ > > Shouldn't he first search in /usr/local/lib64/osgPlugins-2.9.5? Anyone knows > how I can fix this?
No, OSG searches for "osgPlugins-<version>/plugin". Since you have "/usr/local/lib" before "/usr/local/lib64" in your LD_LIBRARY_PATH it picks up that version first. Remove any version specific entries from the LD_L_P (they're won't work anyway), put lib64 before lib and you should be fine. /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

