Re: [osg-users] [osgPlugins] OpenFlight plugin and static linking

2009-05-27 Thread Gregory Jaegy
I have submitted the patch. I guess one could add a macro in one of the OpenFlight headers to group all the USE_FLTRECORD macros, something like: #define REGISTER_FLT_RECORDS USE_FLTRECORD(Comment, COMMENT_OP); \ USE_FLTRECORD(LongID, LONG_ID_OP); \ USE_FLTRECORD(Matrix, MATRIX_OP); \ ..

Re: [osg-users] [osgPlugins] OpenFlight plugin and static linking

2009-05-26 Thread Gregory Jaegy
OK, I found a way to solve this issue: in src/osgPlugins/OpenFlight/Registry.h add the following lines before the closing namespace bracket: Code: extern C { typedef void (* CRecordFunction) (void); } struct RecordFunctionProxy { RecordFunctionProxy(CRecordFunction function) {

Re: [osg-users] [osgPlugins] OpenFlight plugin and static linking

2009-05-26 Thread Chris 'Xenon' Hanson
Gregory Jaegy wrote: Finally, in your own project, include the OpenFlight plugin record.h file, and after the USE_PLUGIN macros add the following ones (one per record type): Code: USE_FLTRECORD(Comment, COMMENT_OP); ... USE_FLTRECORD(NormalVertex, OLD_NORMAL_VERTEX_OP); This you'd

[osg-users] [osgPlugins] OpenFlight plugin and static linking

2009-05-25 Thread Gregory Jaegy
Hi, I am trying to use the OSG OpenFlight plugin. I have build and linked everything statically. Like in the osgstaticviewer example, I have added the Code: USE_OSGPLUGIN(OpenFlight); line, in order to for the symbols to be included. However, when I try to import a .flt file, I get a lot

Re: [osg-users] [osgPlugins] OpenFlight plugin and static linking

2009-05-25 Thread Chris 'Xenon' Hanson
Gregory Jaegy wrote: Hi, I am trying to use the OSG OpenFlight plugin. I have build and linked everything statically. Like in the osgstaticviewer example, I have added the Code: USE_OSGPLUGIN(OpenFlight); line, in order to for the symbols to be included. However, when I try to import a