GNOME Bugzilla – Bug 795573
Wrong poppler-glib header used
Last modified: 2018-06-21 22:07:37 UTC
When I try to build tracker-miners on NixOS, I get the following error: ../src/tracker-extract/tracker-extract-pdf.c:38:10: fatal error: glib/poppler.h: No such file or directory #include <glib/poppler.h> ^~~~~~~~~~~~~~~~ Apparently, wrong header is used. The documentation suggests <poppler.h>: https://people.freedesktop.org/~ajohnson/docs/poppler-glib/PopplerDocument.html#PopplerDocument.includes
Created attachment 371422 [details] [review] extract/pdf: fix poppler-glib header name The extractor was trying to include <glib/poppler.h> but poppler-glib.pc contains the following: Cflags: -I${includedir}/poppler/glib This resulted in the header not being found on NixOS. This patch switches to the correct header name, congruent with the documentation: https://people.freedesktop.org/~ajohnson/docs/poppler-glib/PopplerDocument.html#PopplerDocument.includes
Pushed to master, thanks! Attachment 371422 [details] pushed as 4b734ab - extract/pdf: fix poppler-glib header name