I'm aware of preloadSharedObject, but what if the custom types come from a
static library? I'm afraid that's the case.
Thanks again!
Regards,
Thiago
On Wed, Feb 11, 2009 at 9:10 PM, Gerrit Voss <[email protected]>wrote:
>
> Hi,
>
> On Wed, 2009-02-11 at 15:04 -0300, Thiago Bastos wrote:
> > Hi,
> >
> > Newbie question here.
> >
> > We have a couple of custom node types. If we simply link those objects
> > with our clusterserver, they're not "recognized" (the server complains
> > of "unknown types").
> >
> > So, what is the official best way to register custom nodes (that works
> > on both Windows and Linux)?
> >
> > Currently we're creating a dummy instance of the custom node in our
> > main function, to force registration.
>
> either call preloadSharedObject before osgInit with the base so name,
> e.g. preloadSharedObject("OSGFileIO") or set the environment variable
> OSG_LOAD_LIBS to the base so name e.g export OSG_LOAD_LIBS="OSGFileIO".
> You can provide a list of libs to OSG_LOAD_LIBS, elements must be
> separated by the platform dependent character.
>
> Note OpenSG takes care to add any prefix/suffix, e.g on Linux it
> expands to libOSGFileIO.so and on Windows for example to OSGFileIO_d.dll
>
> kind regards,
> gerrit
>
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users