[Poppler-bugs] [Bug 41258] New: pdftocairo util requires freetype

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 27 07:10:46 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=41258

           Summary: pdftocairo util requires freetype
           Product: poppler
           Version: unspecified
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: utils
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: barsnick at gmx.net


Created an attachment (id=51661)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=51661)
patch to add freetype include paths for utils

I encountered an issue building the utils:

g++-4.5 -DHAVE_CONFIG_H -I. -I.. -I../poppler -I.. -I../goo -I../utils
-I../poppler  -I/usr/corp/pkgs/fontconfig/2.7.3-64/include  
-I/usr/corp/pkgs/cairo/1.10.0/include/cairo  
-I/usr/corp/pkgs/X11/R7.5-64/include -I/usr/corp/pkgs/glib/2.24.2/include
-I/usr/corp/pkgs/gtk+/2.20.1/include -I/usr/corp/pkgs/pango/1.28.1/include
-I/usr/corp/pkgs/cairo/1.10.0/include -I/usr/corp/pkgs/pixman/0.19.2/include
-I/usr/corp/pkgs/libpng/1.2.40-64/include -I/usr/corp/pkgs/jpeg/6b-64/include
-I/usr/corp/pkgs/atk/1.30.0/include -I/usr/corp/pkgs/freetype/2.3.7-64/include
-I/usr/corp/pkgs/fontconfig/2.7.3-64/include
-I/usr/corp/pkgs/zlib/1.2.x-64/include
-I/usr/corp/pkgs/libiconv/1.13.1-64/include
-I/usr/corp/pkgs/libexpat/2.0.1-64/include
-I/usr/corp/pkgs/libxml2/2.7.6-64/include -I/usr/corp/pkgs/libqt/4.4.3/include
-I/usr/corp/pkgs/lcms/1.19-64/include -I/usr/corp/pkgs/krb5/1.8.3/include
-I/usr/corp/pkgs/openssl/0.9.8o/include  -Wall -Wno-write-strings
-Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions
-fno-check-new -fno-common -O3 -march=x86-64 -Wall -ansi -MT pdftocairo.o -MD
-MP -MF .deps/pdftocairo.Tpo -c -o pdftocairo.o pdftocairo.cc
In file included from
/usr/corp/pkgs/cairo/1.10.0/include/cairo/cairo-ft.h:46:0,
                 from ../poppler/CairoOutputDev.h:38,
                 from pdftocairo.cc:51:
/usr/corp/pkgs/freetype/2.3.7-64/include/ft2build.h:56:38: fatal error:
freetype/config/ftheader.h: No such file or directory

The command line doesn't have the usual stuff from freetype's pkgconfig, which
would be in $(FREETYPE_CFLAGS). Therefore the freetype dependency can't be
resolved when building pdftocairo. (It appears the other utils don't depend on
freetype.)

I'm attaching a patch which works for me. I hope I analyzed the issue
correctly. :-)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list