Project

General

Profile

Actions

Bug #10485

closed

Cannot build on macos with OpenGL enabled

Added by Egor Pugin over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
06/13/2022
Due date:
% Done:

100%

Estimated time:

Description

src/Wt/WServerGLWidget.C:24:10: fatal error: GL/gl.h: No such file or directory
   24 | #include <GL/gl.h>
      |          ^~~~~~~~~
compilation terminated.

Google says that there is not GL/gl.h on apple platform.
That file contains also following code


#ifdef APPLE_GL
#include <OpenGL/OpenGL.h>
...

Commenting that include helps.
So include must be under some ifdef.

Actions #1

Updated by Roel Standaert over 2 years ago

  • Target version set to 4.9.0
Actions #2

Updated by Roel Standaert over 2 years ago

Do you need OpenGL? Because it should work if you use -DENABLE_OPENGL=OFF.

I did come up with a fix to make it compile, but even then I'm noticing some issues (even on Linux) when using WGLWidget in server-side rendering mode.

Actions #3

Updated by Egor Pugin over 2 years ago

No, I don't need opengl.
The file is just in the build rules, so it throws such error.

Actions #4

Updated by Roel Standaert about 2 years ago

  • Subject changed from Cannot build on macos to Cannot build on macos with OpenGL enabled
  • Target version changed from 4.9.0 to 4.10.0
Actions #5

Updated by Roel Standaert over 1 year ago

  • Status changed from New to InProgress
  • Assignee set to Matthias Van Ceulebroeck
Actions #6

Updated by Matthias Van Ceulebroeck over 1 year ago

  • Status changed from InProgress to Review
  • Assignee deleted (Matthias Van Ceulebroeck)
Actions #7

Updated by Roel Standaert over 1 year ago

  • Status changed from Review to Implemented @Emweb
  • Assignee set to Matthias Van Ceulebroeck
  • % Done changed from 0 to 100
Actions #8

Updated by Matthias Van Ceulebroeck over 1 year ago

  • Status changed from Implemented @Emweb to Resolved
Actions #9

Updated by Matthias Van Ceulebroeck over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF