Menu

Installing problem.

Help
2008-06-19
2013-04-25
  • Nobody/Anonymous

    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.

     
    • Shai Ayal

      Shai Ayal - 2008-06-19

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.