#129 compile of smooth_opengl3.c fails on Solaris 10/Sparc

open
nobody
moderate (59)
5
2010-04-08
2010-04-08
No

There are compile errors on Solaris 10/Sparc with gcc/4.3.3 because of a missing define (for non-Windows platforms). The attached patch corrects the problem here. But maybe it would be better to use the "FGAPIENTRY" define instead of "APIENTRY"?

Discussion

  • Marek Rouchal

    Marek Rouchal - 2010-04-08

    freeglut-2.6.0.diff

     
  • Marek Rouchal

    Marek Rouchal - 2010-04-08

    Besides that, I just found that this demo does not work on Solaris/Sparc:
    freeglut (./freeglut-2.6.0/progs/demos/smooth_opengl3/.libs/smooth_opengl3): glXCreateContextAttribsARB not found

    This is probably because this GL API does not exist in the Solaris/Sparc header files. It is however present on Linux. Don't know whether this observation will help in any way...

     
  • Diederick C. Niehorster

    We now have the following code in there:
    #ifndef APIENTRY
    #define APIENTRY
    #endif
    which takes care of the problem i hope?

    Would you be willing to test the 2.8 release, or better yet, the current trunk? In current trunk we have switched to CMake, which might help Solaris support. Any patches are very welcome, though if its only a demo failing and significant work is required to fix it, it might not be worth it.. Does solaris have OpenGL 3 support at all? Otherwise this demo is never going to work...

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks