Hi again,
Thanks for your long explanations, sorry if I was a little dimwitted...
Unfortunately I didn't get any improvement, and I don't understand some of
the patterns used in the reader (maybe no wonder at 6000 lines ;-)
The StringConvertable and the bHasParent was already set by the *Fields.h
template code, so that point didn't change.
The typedef SField<AudioClipPtr>... goes according to GenericAttPtr, so I
placed that part exactly direct under that in the VRMLNodeDesc.h
The Inlines of OSGSFieldTypeDef.inl and MFieldTypeDef are also already in
the VRMLNodeDesc.cpp, so should be compiled in.
At last the
DataType FieldDataTraits<AudioClipPtr>::_type("AudioClipPtr",
"NodeCorePtr");
I put as the last line right after the same call for GenericAttPtr, so
this should be in the object too and therefore in the lib.
What can I test else? I'm a little short of ideas...
Thanks a lot.
Best regards, Daniel
On Tue, Sep 07, 2004 at 11:56:04AM +0200, Carsten Neumann (D. Stricker) wrote:
> Hi,
>
> Daniel Walz wrote:
> >Hi Carsten,
> >
> >ok, I tried the typedefs, but I get an error at runtime:
> >» ./auxplorer audio.wrl
> >./auxplorer: symbol lookup error:
> >/home/dwalz/prog/OpenSG/Builds/i686-pc-linux-gnu-g++/SystemLib/lib-dbg/libOSGSystem.so:
> >undefined symbol:
> >_ZN3osg6SFieldINS_5FCPtrINS1_INS_22AttachmentContainerPtrENS_8NodeCoreEEENS_9AudioClipEEELi0EE10_fieldTypeE
>
> ok, this demangles to
> osg::SField<osg::FCPtr<osg::FCPtr<osg::AttachmentContainerPtr,
> osg::NodeCore>, osg::AudioClip>, 0>::_fieldType
> which is a static data member, that currently is not defined (only
> declared). See below on how to resolve this.
>
> >The FieldDataTraits I adjusted with the three getType methods:
> > static DataType &getType (void) { return _type; }
> > static Char8 *getSName(void) { return "SFAudioClipPtr"; }
> > static Char8 *getMName(void) { return "MFAudioClipPtr"; }
> >according to the GenericAttachment as you suggested, but that didn't
> >change anything
>
> Anyway it never hurts to have at least "dummy" versions of these things.
> Could you please add the following two enums to the FieldDataTraits as well:
>
> enum { StringConvertable = 0x00 };
> enum { bHasParent = 0x01 };
>
> >I'm also concerned that these changes in OSGAudioClipFields.h don't
> >vanish, as the header says it might be recreated...
>
> You probably want to put these things into seperate files
> OSGAudioClipDataFields.h OSGAudioClipDataFields.cpp
>
> where the .h looks like (untested, probably needs more includes...):
>
> #include "OSGAudioClipFields.h"
>
> OSG_BEGIN_NAMESPACE
>
> template <>
> struct FieldDataTraits<AudioClipPtr> :
> public FieldTraitsRecurseMapper<GenericAttPtr, true>
> {
> static DataType _type;
> enum { StringConvertable = 0x00 };
> enum { bHasParent = 0x01 };
>
> static DataType &getType (void) { return _type; }
> static Char8 *getSName(void) { return "SFAudioClipPtr"; }
> static Char8 *getMName(void) { return "MFAudioClipPtr"; }
> };
>
> OSG_END_NAMESPACE
>
> and the .cpp:
>
> #include "OSGConfig.h"
> #include "OSGAudioClipDataFields.h"
>
>
> // These define the static member _fieldType
> #include "OSGMFieldTypeDef.inl"
> #include "OSGSFieldTypeDef.inl"
>
> OSG_BEGIN_NAMESPACE
>
> DataType FieldDataTraits<AudioClipPtr>::_type("AudioClipPtr",
> "NodeCorePtr");
>
> OSG_END_NAMESPACE
>
> Sorry, I should have been more explicit right away, but actually I
> haven't added types to OpenSG in a long time. The above information was
> pieced together from various files
> (Source/WindowSystem/WIN32/OSGWIN32WindowDataFields.{h,cpp} do basically
> the same for some windows types).
> Final note, I deliberatly left out all the macro stuff to get the
> symbols into dll's so the above will not work on windows, maybe Dirk,
> Gerrit or Andreas can give some advice on that ?
>
> Hope this helps a bit,
> Carsten
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
--
Daniel 'mcJack' Walz
Student at the Otto-von-Guericke Universität Magdeburg
email: [EMAIL PROTECTED] icq#: 70137980
pgp: DAF0B6EF at: wwwkeys.de.pgp.net
http://www.cs.uni-magdeburg.de/~dwalz/
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&opÿick
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users