Incorrect OpenGL ES includes in libglfw3-dev

Bug #1737496 reported by Tuetuopay
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
glfw3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

1. Release: Ubuntu 16.04 LTS (armhf)

2. Package version: 3.1.2-3

3. Expected: Application builds when specifying both GLFW_INCLUDE_ES3 and GLFW_INCLUDE_GLEXT

4. Happens: Build fails at preprocessor, stating that `GLES3/gl2ext.h` does not exists.

This bug only impacts applications making use of OpenGL ES.

The currently packaged GLFW 3 version is 3.1.2-3, which has incorrect includes. In `GLFW/glfw3.h`, specifying both to include the GLES 3.x headers and GLEXT headers, the file will attempt to include `GLES3/gl2ext.h` which does not exists. The correct path is `GLES2/gl2ext.h`.

The problem was fixed by the maintainer in release 3.2.1 in the following commit: https://github.com/glfw/glfw/commit/ca21a5c7b40310bab420818c827c986865dbbd0d

Attached is the patch from the above commit.

Thanks!

Revision history for this message
Tuetuopay (tuetuopay) wrote :
Revision history for this message
James Cowgill (jcowgill) wrote :

This is already fixed in 16.10 which has glfw 3.2.1.

Changed in glfw3 (Ubuntu):
status: New → Fix Released
Revision history for this message
Sam (sam-rfc1149-deactivatedaccount) wrote :

We are using a LTS (long term support) release because we do not want to upgrade to intermediate releases while still getting bug fixes. Isn't that the whole point of LTS releases of Ubuntu?

Revision history for this message
James Cowgill (jcowgill) wrote :

I don't think I said anything about 16.04. This bug may or may not get a fix there.

Revision history for this message
kenn (whatnext) wrote :

Bug still exists on Ubuntu 16.04.6. I simply opened the header file /usr/include/GLFW/glfw3.h and modified the corresponding lines according to patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.