install error when compiling tesselate.h

3 views
Skip to first unread message

Ummon

unread,
Jun 8, 2009, 11:09:36 PM6/8/09
to G3D Users
After running ./buildg3d all, I get the following errors:


source/tesselate.cpp
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp: In
function 'void G3D::tesselateComplexPolygon(const
G3D::Array<G3D::Vector3, 10, 32ul>&, G3D::Array<G3D::Triangle, 10,
32ul>&)':
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:102:
error: invalid conversion from 'GLvoid (*)()' to 'GLvoid (*)(...)'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:102:
error: initializing argument 3 of 'void gluTessCallback
(GLUtesselator*, GLenum, GLvoid (*)(...))'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:103:
error: invalid conversion from 'GLvoid (*)()' to 'GLvoid (*)(...)'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:103:
error: initializing argument 3 of 'void gluTessCallback
(GLUtesselator*, GLenum, GLvoid (*)(...))'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:104:
error: invalid conversion from 'GLvoid (*)()' to 'GLvoid (*)(...)'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:104:
error: initializing argument 3 of 'void gluTessCallback
(GLUtesselator*, GLenum, GLvoid (*)(...))'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:105:
error: invalid conversion from 'GLvoid (*)()' to 'GLvoid (*)(...)'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:105:
error: initializing argument 3 of 'void gluTessCallback
(GLUtesselator*, GLenum, GLvoid (*)(...))'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:106:
error: invalid conversion from 'GLvoid (*)()' to 'GLvoid (*)(...)'
/Users/karpe/Development/G3D/GLG3D.lib/source/tesselate.cpp:106:
error: initializing argument 3 of 'void gluTessCallback
(GLUtesselator*, GLenum, GLvoid (*)(...))'



What do I need to do to fix this?

corey taylor

unread,
Jun 9, 2009, 2:38:24 PM6/9/09
to g3d-...@googlegroups.com
I think we saw these errors a long time ago. What version of GCC are you using?

corey

Ummon

unread,
Jun 9, 2009, 4:59:34 PM6/9/09
to G3D Users
i686-apple-darwin8-gcc-4.0.1

It is what I had on my Mac OS 10.4 installation. I have the latest
(for 10.4) XCode 2.5, so wouldn't the gcc also be up to date?

Morgan McGuire

unread,
Jun 9, 2009, 11:42:13 PM6/9/09
to g3d-...@googlegroups.com
I think OS X 10.4 had broken OpenGL/GLU headers that used an incorrect definition of gluTessCallback.  You can patch yours to work by just casting the argument on that line to what it wants in the G3D sources.  We removed the patch because there was no easy way to detect 10.4 vs. 10.5 with a #ifdef and our OS X developers had moved to 10.5.

-m
Reply all
Reply to author
Forward
0 new messages