Project

General

Profile

Bug #10485

Cannot build on macos with OpenGL enabled

Added by Egor Pugin 6 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
06/13/2022
Due date:
% Done:

0%

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.

#1

Updated by Roel Standaert 5 months ago

  • Target version set to 4.9.0
#2

Updated by Roel Standaert 5 months 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.

#3

Updated by Egor Pugin 5 months ago

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

#4

Updated by Roel Standaert 2 months 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

Also available in: Atom PDF