[poppler] Static build

Ranjan Ghosh ghosh at pw6.de
Tue Dec 4 15:37:06 UTC 2018


Hi all,

I'm desperately trying to create a fully static build without any 
dependencies. I already got pretty far (IMHO) and build lots and lots of 
other dependent libaries statically (cairo, freetype etc.) without 
encountering any major problems.

Now, with poppler, I got a first compilation error but could solve it as 
discussed here:

https://www.mail-archive.com/poppler@lists.freedesktop.org/msg10543.html

With this patch:

https://github.com/mpsuzuki/poppler/commit/3f944ed5dee3496e7a7c661eabc3b16448316d13

Which worked fabulously. This should definitely be included in the main 
poppler branch, I guess, as it looks like it doesnt hurt anyone who isnt 
compiling statically - but OTOH is hugely helpful for those like me who 
dare to try it.

After that, make continues up until 71%:

[ 71%] Linking CXX executable pdftocairo
/usr/bin/ld: /usr/local/lib/libcairo.a(cairo-image-surface.o): in 
function `_cairo_image_surface_finish':
/usr/src/cairo/src/cairo-image-surface.c:846: undefined reference to 
`pixman_image_unref'
/usr/bin/ld: /usr/local/lib/libcairo.a(cairo-image-surface.o): in 
function `_cairo_image_surface_init':
/usr/src/cairo/src/cairo-image-surface.c:164: undefined reference to 
`pixman_image_get_data'
/usr/bin/ld: /usr/src/cairo/src/cairo-image-surface.c:169: undefined 
reference to `pixman_image_get_width'
/usr/bin/ld: /usr/src/cairo/src/cairo-image-surface.c:170: undefined 
reference to `pixman_image_get_height'
/usr/bin/ld: /usr/src/cairo/src/cairo-image-surface.c:171: undefined 
reference to `pixman_image_get_stride'
/usr/bin/ld: /usr/src/cairo/src/cairo-image-surface.c:172: undefined 
reference to `pixman_image_get_depth'
/usr/bin/ld: /usr/local/lib/libcairo.a(cairo-image-surface.o): in 
function `_pixman_format_from_masks':

Any help on how to overcome this problem would be much appreciated.

Thank you / BR

Ranjan





More information about the poppler mailing list