build fails when poppler is not installed in /usr

Bug #1022549 reported by Adrian Johnson
4
This bug affects 1 person
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/local/include/poppler

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/include/poppler. This causes problems due to the difference versions in /usr and /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/goo/gmem.h
#include "poppler/poppler-config.h"

Tags: build
Revision history for this message
Adrian Johnson (ajohnson-redneon) wrote :

This patch fixes the problem by modifying POPPLER_CFLAGS to also include the parent directory of the poppler include directory.

su_v (suv-lp)
tags: added: build
jazzynico (jazzynico)
Changed in inkscape:
assignee: nobody → Adrian Johnson (ajohnson-redneon)
status: New → In Progress
Changed in inkscape:
importance: Undecided → Low
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.