On Fri, May 2, 2008 at 11:53 PM, Daniel Larimer <[EMAIL PROTECTED]>
wrote:

> I got the following error on Mac OS X Leopard 10.5.2 on an Intel Mac with
> case sensitive HFS.
>
> [ 25%] Building CXX object
> src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o
> [ 25%] Building CXX object
> src/osgUtil/CMakeFiles/osgUtil.dir/TransformAttributeFunctor.o
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:
> In member function 'void osgUtil::Tessellator::beginTessellation()':
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:44:
> error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:44:
> error:   initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
> GLenum, GLvoid (*)())'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:45:
> error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:45:
> error:   initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
> GLenum, GLvoid (*)())'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:46:
> error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:46:
> error:   initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
> GLenum, GLvoid (*)())'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:47:
> error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:47:
> error:   initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
> GLenum, GLvoid (*)())'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:48:
> error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()'
> /Users/dlarimer/Downloads/OpenSceneGraph-2.4.0/src/osgUtil/Tessellator.cpp:48:
> error:   initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
> GLenum, GLvoid (*)())'
>
>
> I know how to fix it by changing a #define, but I feel that this should be
> AUTOMATIC.
>
> What's the deal?  Surely someone else has had this problem.


It looks like someone has already tried to address this in the root
CMakeLists.txt?  If you change the OSG_GLU_TESS_CALLBACK_TRIPLEDOT option in
the CMake cache does it fix the problem for you?  What do you need this
option set to in order to get things to work?

Use "make edit_cache" from your build tree and toggle the option, then
running make again.

====

IF(NOT DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT)

    SET(DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT OFF)

    IF   (CMAKE_SYSTEM MATCHES "AIX.*")
        SET(DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT ON)
    ENDIF(CMAKE_SYSTEM MATCHES "AIX.*")

    IF   (APPLE)
        SET(DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT ON)
    ENDIF(APPLE)

ENDIF(NOT DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT)

OPTION(OSG_GLU_TESS_CALLBACK_TRIPLEDOT "Set to ON to build build with (...)
version of GLU tesselator callback" ${DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT})

====


-- 
Philip Lowman
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to