← Back to team overview

dx-packages team mailing list archive

[Bug 1577218] Re: includedir is specified incorrectly in glew.pc v1.13.0

 

To clarify the intended behavior.

$ pkg-config --cflags glew
-I/usr/include/GL -I/usr/include/libdrm

ought to be:

$ pkg-config --cflags glew
-I/usr/include -I/usr/include/libdrm

In other words, headers are supposed to include GLEW via <GL/glew.h>

As a workaround perhaps:

$ pkg-config --cflags glew
-I/usr/include -I/usr/include/libdrm -I/usr/include/GL

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to glew in Ubuntu.
https://bugs.launchpad.net/bugs/1577218

Title:
  includedir is specified incorrectly in glew.pc v1.13.0

Status in glew package in Ubuntu:
  New

Bug description:
  On Ubuntu 15.10, "glew.pc" version 1.10.0 had the following "includedir" entry:
  includedir=/usr/include/GL

  On Ubuntu 16.04, "glew.pc" version 1.13.0 has such entry changed to:
  includedir=$(prefix)/include

  As a result, after installing libglew-dev package on Ubuntu Xenial, the following command:
  pkg-config --cflags glew

  prints: "-I/usr/include/libdrm" instead of "-I/usr/include/GL
  -I/usr/include/libdrm". So, C/C++ projects using GLEW can no longer
  find necessary headers when using "pkg-config".

  As a workaround, on Xenial, "/usr/lib/x86_64-linux-gnu/pkgconfig/glew.pc" can be edited and the problematic line changed to:
  includedir=$(prefix)/include/GL

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glew/+bug/1577218/+subscriptions


References