GNOME Bugzilla – Bug 646947
[regression] build failure
Last modified: 2011-04-21 03:59:23 UTC
I'm trying to build gimp-2.6.11 in a gnome-3 environment. The build dies with: file_pdf-file-pdf.o: In function `get_thumbnail': /home/ronis/Project/notar/GNOME/garnome/fifth-toe/gimp/work/main.d/gimp-2.6.11/plug-ins/common/file-pdf.c:718: undefined reference to `poppler_page_render_to_pixbuf' file_pdf-file-pdf.o: In function `load_image': /home/ronis/Project/notar/GNOME/garnome/fifth-toe/gimp/work/main.d/gimp-2.6.11/plug-ins/common/file-pdf.c:632: undefined reference to `poppler_page_render_to_pixbuf' I'm using poppler-0.17.0 which may be the problem.
Can you provide a patch that replaces the function call with whatever new poppler us providing, conditionally for the poppler version that removed the old function?
I got a bug report in Fedora about the same issue (just in 2.6.11): https://bugzilla.redhat.com/show_bug.cgi?id=698157 I've looked into this a bit and found poppler_page_render() which renders to a cairo surface which might do what we want.
commit 9b3e1c91fd2eac69da6947ec9c7fbf10096ba237 Author: Mukund Sivaraman <muks@banu.com> Date: Wed Apr 20 18:55:44 2011 +0530 file-pdf-load: Don't use deprecated API (bug #646947)
commit 7bdadd80ba479d6ff904e276d805e16f6b940ee2 Author: Mukund Sivaraman <muks@banu.com> Date: Thu Apr 21 07:48:25 2011 +0530 file-pdf-load: Use better API + cleanups * fixes issues with poppler 0.17 completely * uses new libgimp API to pass surfaces instead of pixbufs * uses GTK+ 3 API to convert surfaces to pixbufs where available commit 79f29530bdc61c4cfecfe81314a8dc8616a8b4bd Author: Mukund Sivaraman <muks@banu.com> Date: Thu Apr 21 06:55:21 2011 +0530 Bump poppler required version to 0.12.4 The calls that return cairo surfaces are now required, so the version bump is required.