Hi Michael, Michael Schwier wrote: > > I compiled following the instructions to build under mac: http:// > opensg.vrsource.org/trac/wiki/BuildMacOSX > The only thing I omitted was including the Jasper library, but since > I am not loading/using any picture files, that shouldn't be a problem > I guess!?
Nope, that should be ok. > Yep, they run. But here I just found out a curious thing: If I > compile the tutorials with the provided makefile in the terminal the > 05Geometry example (which basicly uses the same functions I am having > trouble with) is running. If I create a project of the 05Geometry.cpp > in xCode it compiles, but crashes with exactly the same NullFC > problem. So I was thinking that maybe I am missing some compile/link > options or a #define? Because in the last case (05Geometry under > xCode) I also had to define OSG_WITH_GLUT to make it at least compile. Compile is different from link is different from run. ;) Can you compare the actual options passed to the compiler from the Makefile to the ones passed by xCode? It sounds like you haven't set up some flags that are needed. > >> - Near the point where your program crashes, can you insert the >> following: >> >> GeoPTypesUI8::getClassType().dump(); >> FieldContainerPtr proto = GeoPTypesUI8::getClassType().getPrototype(); >> if(proto != NullFC) >> { >> proto->dump(); >> } >> else >> { >> std::cerr << "Prototype for GeoPTypesUI8 is NullFC" >> << std::endl; >> } > > Did that. The additional output I get now is this: > > LOG: FieldContainerType: GeoPTypesUI8, Id: 375, parentP: GeoPTypes, > groupId: 45, abstract: false 3 > LOG: Desc : parents > LOG: Desc : internal > LOG: Desc : types > Attachment(45) : GeoPTypesUI8(0x28142708) > [ > Parents : > ] > { > } Hm, that looks ok. > I was hoping that too, but no change for that ... Might be me and my > lack of MAC/xCode knowledge but might be, that this debugger is just > not so helpful :-/ Too bad. :( > PS: If I don't respond in the next days it's due to a little vacation > I planned and not because I solved the bug or hung myself ;) That's comforting, I was about to get worried. ;) Dirk ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users