Hi Gerrick, We spent near on a week trying to resolve this for 2.2 and basically couldn't solve it in an elegant way - one either broke the cmake build on some OSX machines or broke the XCode build on all OSX machines.
The hack to solve this has been to introduce a couple of variables into the CMake build. Run ccmake and then scroll down to the OSG_GLU_TESS_CALLBACK_TRIPLEDOT entry and switch it to ON. You can also set this on by default by setting DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT the var i.e. cmake . -DDEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT -DCMAKE_BUILD_TYPE=Release Robert. On 10/23/07, Gerrick Bivins <[EMAIL PROTECTED]> wrote: > I've seen posts about this but haven't really seen a solution. I'm > receiving the following errors trying to compile osg from the cmd > line: > > > [ 21%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp: > In member function 'void osgUtil::Tessellator::beginTessellation()': > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:45: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:45: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:46: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:46: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:47: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:47: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:48: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:48: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp: > In member function 'void osgUtil::Tessellator::beginTessellation()': > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:45: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:45: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:46: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:46: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:47: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:47: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:48: > error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' > /Users/gbivins/devEnv/research/APIs/OpenSceneGraph/src/osgUtil/Tessellator.cpp:48: > error: initializing argument 3 of 'void > gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > lipo: can't figure out the architecture type of: /var/tmp//ccLf3cDX.out > make[2]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o] Error 1 > make[1]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/all] Error 2 > make: *** [all] Error 2 > > > Has this been resolved? How do I get around this? > biv > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

