Hi John, The BSP plugin is new so hasn't tweaked for OSX OpenGL problems yet. Apple for some inexplicable reason have changed the type of GLenum from what it is on all other OS's, so if users assume this type then unintentional casting can cause problems.
I don't believe its a gcc 4.0 compile problem as I did the porting to Linux for the BSP plugin using gcc 4.0.2. Robert. On 6/3/06, John Kelso <[EMAIL PROTECTED]> wrote:
Hi, As a way to try and get lucky with some compiler problems I was having, I decided to install the latest nightly tarballs on my OS X system. Before this, I was running with an early 1.0 version. The Mac's a G4 Powerbook, 10.4, with all the updates. My PATH is set to /bin:/sbin:/usr/bin:/usr/sbin After installing OpenThreads and Producer, the OpenScenegraph make crashed with this: ../ReaderWriterQ3BSP.cpp: In member function 'osg::Geode* ReaderWriterQ3BSP::convertFromBSP(BSPLoad&, const osgDB::ReaderWriter::Options*) const': ../ReaderWriterQ3BSP.cpp:250: error: no matching function for call to 'ReaderWriterQ3BSP::createMeshFace(const BSP_LOAD_FACE&, std::vector<osg::Texture2D*, std::allocator<osg::Texture2D*> >&, osg::TemplateArray<osg::Vec3, Vec3ArrayType, 3, 5126>&, std::vector<unsigned int, std::allocator<unsigned int> >&, osg::TemplateArray<osg::Vec2, Vec2ArrayType, 2, 5126>&, osg::TemplateArray<osg::Vec2, Vec2ArrayType, 2, 5126>&) const' ../ReaderWriterQ3BSP.cpp:47: note: candidates are: osg::Geometry* ReaderWriterQ3BSP::createMeshFace(const BSP_LOAD_FACE&, const std::vector<osg::Texture2D*, std::allocator<osg::Texture2D*> >&, osg::Vec3Array&, std::vector<GLuint, std::allocator<GLuint> >&, osg::Vec2Array&, osg::Vec2Array&) const ../ReaderWriterQ3BSP.cpp: In member function 'bool ReaderWriterQ3BSP::loadLightMaps(const BSPLoad&, std::vector<osg::Texture2D*, std::allocator<osg::Texture2D*> >&) const': ../ReaderWriterQ3BSP.cpp:541: warning: unused variable 'whiteidx' ../ReaderWriterQ3BSP.cpp: In member function 'bool BSP_BIQUADRATIC_PATCH::Tesselate(int, osg::Geometry*)': ../ReaderWriterQ3BSP.cpp:637: error: invalid conversion from 'GLuint*' to 'unsigned int*' make[4]: *** [ReaderWriterQ3BSP.o] Error 1 make[3]: *** [osgdb_bsp.so.opt] Error 2 make[2]: *** [default] Error 1 make[1]: *** [default] Error 1 make: *** [default] Error 1 Has anyone seen this? Conincidentally or not, my compiles were also having some problems with GL data types. Has anyone built with the latest tarballs on OS X? These are thge tarballs I'm using: OpenSceneGraph-1.0.0-200605302325.tar.gz OpenThreads-1.4.2-200605302325.tar.gz Producer-1.0.1-200605302325.tar.gz Thanks again, -John _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
