I found in https://github.com/rtv/Stage (click on tab zip: Stage-master.zip) a beautiful design of a simulator for robot, that must be compiled in both Linux, Windows and Mac. I use as a compiler MinGW 4.6.2 environment in Qt 4.8.3 and QtCreator 2.6.0.
As written in the readme of the project is recommended to use CMake 2.8 to generate the Makefile to compile with make. Running CMake (having installed the various libraries required by the project: OpenGL, FLTK 1.3.1, LTDL, JPEG) can not get the Makefile without errors.
The problem comes when I compile with the make command (I use the dos shell of Qt 4.8.3).
I get the following error messages:
Qt Code:
  1. C:\MinGW\Stage-master\compilato>make -j8
  2. [ 2%] Building CXX object libstage/CMakeFiles/stage.dir/blockgroup.obj
  3. C:\MinGW\Stage-master\libstage\blockgroup.cc: In member function 'void Stg::BlockGroup::BuildDisplayList()':
  4. C:\MinGW\Stage-master\libstage\blockgroup.cc:185:39: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '
  5. _GLUfuncptr {aka void (*)()}' [-fpermissive]
  6. c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/GL/glu.h:270:21: error: initializing argument 3 of 'void glu
  7. TessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
  8. C:\MinGW\Stage-master\libstage\blockgroup.cc:187:38: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '
  9. _GLUfuncptr {aka void (*)()}' [-fpermissive]
  10. c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/GL/glu.h:270:21: error: initializing argument 3 of 'void glu
  11. TessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
  12. C:\MinGW\Stage-master\libstage\blockgroup.cc:189:35: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '
  13. _GLUfuncptr {aka void (*)()}' [-fpermissive]
  14. c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/GL/glu.h:270:21: error: initializing argument 3 of 'void glu
  15. TessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
  16. C:\MinGW\Stage-master\libstage\blockgroup.cc:191:33: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '
  17. _GLUfuncptr {aka void (*)()}' [-fpermissive]
  18. c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/GL/glu.h:270:21: error: initializing argument 3 of 'void glu
  19. TessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
  20. C:\MinGW\Stage-master\libstage\blockgroup.cc:195:41: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '
  21. _GLUfuncptr {aka void (*)()}' [-fpermissive]
  22. c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/GL/glu.h:270:21: error: initializing argument 3 of 'void glu
  23. TessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
  24. C:\MinGW\Stage-master\libstage\blockgroup.cc:197:43: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '
  25. _GLUfuncptr {aka void (*)()}' [-fpermissive]
  26. c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/GL/glu.h:270:21: error: initializing argument 3 of 'void glu
  27. TessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
  28. mingw32-make[2]: *** [libstage/CMakeFiles/stage.dir/blockgroup.obj] Error 1
  29. mingw32-make[1]: *** [libstage/CMakeFiles/stage.dir/all] Error 2
  30. mingw32-make: *** [all] Error 2
To copy to clipboard, switch view to plain text mode 
can you help me to solve the problem ?