Menu

#757 OpenGL detection for macOS

SDL
open
nobody
None
5
2016-10-01
2016-10-01
No

In macOS, OpenGL libraries are packaged in a framework (OpenGL.framework) and headers are in unsual path (OpenGL instead of GL) and not deceted by CheckLibWithHeader('GL', 'GL/gl.h', ...) in SConstruct.

As OpenGL should be always present in macOS, we could just end up with something like env.Append(LINKFLAGS = ["-framework OpenGL"]) for darwin platform.

Discussion

  • zeromus

    zeromus - 2016-10-01

    I am extremely confident that nobody's going to pay attention to these bugs. I suggest you submit a patch when you're done fixing all the bugs, and someone may will probably pay attention to whether it breaks compiling on linux.

     
  • Lukas Sabota

    Lukas Sabota - 2016-10-01

    Concur with zeromus. I'm all for portability, but can only put so much effort into portability for a system that I can't even run in a VM. Patches are welcome on this front.

     

    Last edit: Lukas Sabota 2016-10-01
  • Kyungdahm Yun

    Kyungdahm Yun - 2016-10-01

    Okay, I'll try and submit a patch if it works. It's not a show-stopper since fceux still works without OpenGL support. By the way, I just wondered what advantages we could expect from enabling OpenGL here.

     
    • zeromus

      zeromus - 2016-10-01

      likely to be nil, unless theres a way to go fullscreen at 1080p using software instead of opengl, in which case the advantage would be your toaster-computer can achieve it at 60fps

       

Log in to post a comment.