Hello Victor, On 04/25/2012 03:29 AM, Victor Haefner wrote: > The codeblocks full commandline: > g++ -L/usr/lib/qt3/lib64 -L/usr/local/lib/dbg -L/usr/X11R6/lib64 > -L/usr/local/lib -L/usr/include/pango-1.0 -L/usr/lib > -Lsrc/devices/virtuose/VIRTx32 -Lsrc/devices/virtuose/VIRTx64 > -L/usr/lib/i386-linux-gnu -L/usr/local/lib/debug > -L/usr/local/lib/debug/ -o bin/Debug/VRFramework obj/Debug/src/main.o > obj/Debug/src/tracking/DTrack.o -lOSGBase -lOSGCluster -lOSGDrawable > -lcollada14dom -lOSGFileIO -lOSGGroup -lOSGImageFileIO -lOSGState > -lOSGSystem -lOSGUtil -lOSGText -lOSGWindow -lOSGWindowGLUT -lOSGWindowX > -ljpeg -lpng -lz -lglut -lGLU -lGL -lXmu -lXi -lXt -lX11 -lpango-1.0 > -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lpangoft2-1.0 -lfreetype > -lfontconfig -lpangocairo-1.0 -lcairo -lpthread -lboost_thread-mt > -lboost_program_options-mt -lboost_system-mt -lvirtuose -lm -lfann -ldl
ok, here the linker is told to link with OSGFileIO. > and the ldd output: > my program: [SNIP] > You were right, it does not include the OSGFileIO lib,I have no idea > why, when compiling it does not complain that it can not find -lOSGFileIO > the ldd of the FileIO.so strange. Almost looks like the linker is doing the same thing the windows linker does: if no symbol from a library is used the library gets removed from the link - that can be the case here since OSGFileIO essentially only registers a bunch of types with a factory in OSGSystem so there is no direct use of symbols from OSGFileIO. Perhaps the windows work-around is also effective: Before calling osgInit add these lines: OSG::preloadSharedObject("OSGFileIO"); OSG::preloadSharedObject("OSGImageFileIO"); (ImageFileIO essentially has the same issue). [SNIP - ldd OSGFileIO] ok, this looks like Collada support was compiled into the library. You can also use: std::list<const OSG::Char8*> suffixList; OSG::SceneFileHandler::the()->getSuffixList(suffixList); to get the list of file types that are recognized. Cheers, Carsten ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users