giddie / poppler-cairo-backend

A patchset to enable subpixel rendering of fonts via Cairo in Poppler's Qt wrapper
19 stars 2 forks source link

Fails to build on debian #4

Closed AladW closed 10 years ago

AladW commented 10 years ago

Hi,

When applying the patches to the debian package (poppler 0.24-5), the build fails with the following error:

../../poppler/CairoOutputDev.h:38:22: fatal error: cairo-ft.h: No such file or directory

include

                 ^

compilation terminated.

However, the necessary header is available libcairo2-dev: /usr/include/cairo/cairo-ft.h

I've found this:

http://www.seppemagiels.com/blog/building-poppler-windows-using-mingw

so the file is mislocated? Where could I change the reference?

Regards,

Alad

giddie commented 10 years ago

I'm not sure if the Debian package is doing something strange. Could you try compiling Poppler directly from source, with the patch applied?

AladW commented 10 years ago

Well the original source gave the same error message. So what I did was create symbolic links

/usr/include/cairo for a in * ; do ln -s /usr/include/cairo/$a /usr/include/$a ; done

/usr/include/freetype2 for a in * ; do ln -s /usr/include/freetype2/$a /usr/include/$a ; done

but hit another wall

Making all in tests
make[3]: Map '/home/alad/source/poppler-qt4-cairo-backend/qt4/tests' wordt binnengegaan
  CXX      test-poppler-qt4.o
  CXXLD    test-poppler-qt4
../../qt4/src/.libs/libpoppler-qt4.so: undefined reference to `CairoOutputDev::startDoc(PDFDoc*, CairoFontEngine*)'
../../qt4/src/.libs/libpoppler-qt4.so: undefined reference to `cairo_image_surface_create_for_data'
../../qt4/src/.libs/libpoppler-qt4.so: undefined reference to `cairo_surface_destroy'
../../qt4/src/.libs/libpoppler-qt4.so: undefined reference to `cairo_create'
../../qt4/src/.libs/libpoppler-qt4.so: undefined reference to `CairoOutputDev::CairoOutputDev()'
../../qt4/src/.libs/libpoppler-qt4.so: undefined reference to `cairo_destroy'
../../qt4/src/.libs/libpoppler-qt4.so: undefined reference to `CairoOutputDev::setCairo(_cairo*)'
collect2: error: ld returned 1 exit status
giddie commented 10 years ago

When you say the "original source", do you mean unpatched Poppler? Or does this only happen with my patches applied?

AladW commented 10 years ago

With the patches applied (qt4-lcd branch)

giddie commented 10 years ago

Are you building with autotools? If you're are, I'm afraid I'm not maintaining that in the patchset, as autotools is a real pain. You'll have to build with cmake, as described in the patchset readme. (Patches are welcome to fix the autotools build!)