Results 1 to 4 of 4

Thread: To compile project Stage-master of Playerstage (https://github.com/rtv/Stage)

  1. #1
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default To compile project Stage-master of Playerstage (https://github.com/rtv/Stage)

    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 ?

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: To compile project Stage-master of Playerstage (https://github.com/rtv/Stage)

    this is a forum for Qt programming. Where is your Qt programming question?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: To compile project Stage-master of Playerstage (https://github.com/rtv/Stage)

    Would be to use OpenGL with Qt ... As I said, the entire project is being carried in Qt. At this early stage I try to compile it into Qt IDE and then pass to use fully the Qt libraries in the project

  4. #4
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: To compile project Stage-master of Playerstage (https://github.com/rtv/Stage)

    So, nothing then.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. help,who could help me to compile qt project
    By derekli in forum Qt Programming
    Replies: 3
    Last Post: 13th May 2014, 16:27
  2. Stage active event from QML file
    By AbinaThomas in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2012, 06:05
  3. How to make fewer errors at the stage of code writing. Part N3. QT.
    By Andrey_Karpov in forum General Discussion
    Replies: 0
    Last Post: 13th July 2011, 08:39
  4. Replies: 1
    Last Post: 12th April 2010, 13:00
  5. qmake: add to project but do not compile
    By jesse in forum Newbie
    Replies: 2
    Last Post: 8th November 2007, 17:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.