Hi,

On Tue, 2009-06-02 at 15:36 +0200, Andreas Zieringer wrote:
> Hi Volker,
> 
> > Volker Settgast wrote:
> >> Gerrit Voß wrote:
> >>   
> >>>> ....
> >>>>       
> >>> from: http://opensg.vrsource.org/trac/wiki/Building #After building
> >>>
> >>> If it looks like elements are missing as you run your programs,
> >>> especially the scene file and image loaders, this unfortunately is a
> >>> 'feature' of the microsoft linker. Add
> >>> OSG_LOAD_LIBS=OSGFileIO;OSGImageFileIO to your environment so that the
> >>> loader dlls are pulled. Add other libraries if other elements are
> >>> missing.
> >>>   
> >>>     
> >> Ah, thank You, I missed that info.
> >> Hm, so is there another way of doing that? Like loading the dlls 
> >> manually? Otherwise it will be quite difficult to distribute OpenSG 
> >> software...
> >>
> >>   
> > Okay, to answer my own question: It is possible to set the environment 
> > before calling osginit (I found the code in OSGBaseInitFunctions.cpp)
> > Still: is this the only way of doing it or am I missing something (again)?
> > 
> > Cheers,
> > Volker
> 
> just load the dll/so via LoadLibrary()/dlopen()

be careful with that one, it might only work as expected if called
before osgInit and you have to make sure to provide the correct library
name in case the variants come with different names. So going through
the OpenSG infrastructure (e.g. SharedObjectHandler or
OSG::preloadSharedObject) is the safer option as you only have
to supply the base name from which the correct variant is derived.

kind regards,
  gerrit




------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to