[poppler] Static build

Ranjan Ghosh ghosh at pw6.de
Tue Dec 4 17:44:05 UTC 2018


Thank you for your answer, Jason. I have to admit I'm not a huge expert 
of all the make/cmake stuff. Well, I did compile (make,make install) a 
static build of pixman. Pixman was already needed for compilation of 
cairo - which compiled successfully. When I compiled cairo, for example, 
it did pick up the existence of pixman (or other dependend libraries, 
for that matter) automatically. I didnt need to specify anything. Do I 
need to specify anything special on the command line for poppler so that 
it recognizes pixman? It seems to pick up all the other stuff 
automatically I guess - that's why it builds up until 71% without a 
problem (except for the one mentioned).

Currently, I'm just doing this:

RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..

Am 04.12.18 um 18:13 schrieb Jason Crain:
> On 2018-12-04, Ranjan Ghosh <ghosh at pw6.de> 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler


More information about the poppler mailing list