Re: [poppler] Static build
On Tue, Dec 4, 2018 at 4:44 PM Ranjan Ghosh wrote: > > 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. Have a look at the homebrew formulae, I use those to statically build packages on MacOS. Afaik it works by default in the latest releases, just use cmake -DBUILD_SHARED_LIBS=OFF like here: https://github.com/Homebrew/homebrew-core/blob/master/Formula/poppler.rb#L67 ___ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler
Re: [poppler] Static build
On 2018-12-04, Ranjan Ghosh wrote: > [ 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. Did you link to pixman? It's a dependency of cairo. ___ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler
[poppler] Static build
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 ___ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler