build fails when poppler is not installed in /usr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
In Progress
|
Low
|
Unassigned |
Bug Description
I'm using Ubuntu 12.04 with poppler 0.18.4 in /usr. I've compiled and installed poppler 0.20.0 to /usr/local. Building inkscape fails due to a conflict between the 0.18.4 headers and the 0.20.0 headers. The conflict is caused by #includes that have a "poppler/" prefix. The POPPLER_CFLAGS provided by pkg-config already includes the "poppler/" prefix.
ie
$ pkg-config --cflags poppler
-I/usr/
The problem is the #includes that include the "poppler/" prefix will include the header from /usr/include while the includes without the "poppler/" prefix will include the header from /usr/local/
While it is easy to fix the includes in the inkscape source that have the "poppler/" prefix there is also at least once include of this form in the poppler headers:
$ grep poppler /usr/local/
#include "poppler/
tags: | added: build |
Changed in inkscape: | |
assignee: | nobody → Adrian Johnson (ajohnson-redneon) |
status: | New → In Progress |
Changed in inkscape: | |
importance: | Undecided → Low |
This patch fixes the problem by modifying POPPLER_CFLAGS to also include the parent directory of the poppler include directory.