I think I have the same problem as others. Configure step just goes fine and then I have these errors: if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/freetype2 -I/usr/local/include -DFTGL_LIBRARY_STATIC -I/sw2/include -I/usr/X11/include/freetype2 -I/usr/X11/include -U__APPLE__ -I/usr/X11R6/include -I/sw2/include -I/usr/X11/include -g -O2 -MT octplot-patch.o -MD -MP -MF ".deps/octplot-patch.Tpo" -c -o octplot-patch.o `test -f 'patch.cpp' || echo './'`patch.cpp; \ then mv -f ".deps/octplot-patch.Tpo" ".deps/octplot-patch.Po"; else rm -f ".deps/octplot-patch.Tpo"; exit 1; fi patch.cpp: In member function ‘virtual void Patch::draw()’: patch.cpp:149: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’ patch.cpp:149: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’ patch.cpp:151: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’ patch.cpp:151: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’ patch.cpp:153: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’ patch.cpp:153: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’ patch.cpp:155: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’ patch.cpp:155: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’ patch.cpp:157: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’ patch.cpp:157: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’ patch.cpp:159: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’ patch.cpp:159: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’ make[2]: *** [octplot-patch.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Thanks for your help.
I infer that you are on an apple system.
please try the latest svn version to see if this bug persists
if not, please try to change line 23 in src/glutesscb.h to:
typedef void (*GLUTesselatorFunction)(...);
Shai
Log in to post a comment.
I think I have the same problem as others. Configure step just goes fine and then I have these errors:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/freetype2 -I/usr/local/include -DFTGL_LIBRARY_STATIC -I/sw2/include -I/usr/X11/include/freetype2 -I/usr/X11/include -U__APPLE__ -I/usr/X11R6/include -I/sw2/include -I/usr/X11/include -g -O2 -MT octplot-patch.o -MD -MP -MF ".deps/octplot-patch.Tpo" -c -o octplot-patch.o `test -f 'patch.cpp' || echo './'`patch.cpp; \ then mv -f ".deps/octplot-patch.Tpo" ".deps/octplot-patch.Po"; else rm -f ".deps/octplot-patch.Tpo"; exit 1; fi
patch.cpp: In member function ‘virtual void Patch::draw()’:
patch.cpp:149: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’
patch.cpp:149: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’
patch.cpp:151: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’
patch.cpp:151: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’
patch.cpp:153: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’
patch.cpp:153: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’
patch.cpp:155: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’
patch.cpp:155: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’
patch.cpp:157: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’
patch.cpp:157: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’
patch.cpp:159: error: invalid conversion from ‘GLvoid (*)(...)’ to ‘void (*)()’
patch.cpp:159: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, void (*)())’
make[2]: *** [octplot-patch.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Thanks for your help.
I infer that you are on an apple system.
please try the latest svn version to see if this bug persists
if not, please try to change line 23 in src/glutesscb.h to:
typedef void (*GLUTesselatorFunction)(...);
Shai