[cairo] Error compiling cairo from cvs poppler_page_render_to_pixbuf
Mike Emmel
mike.emmel at gmail.com
Thu Dec 15 04:43:33 PST 2005
Hi all I get the following error compiling a fresh cairo cvs checkout.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -I. -I../pixman/src
-I../src -I../src -I/usr/X11R6/include -I/usr/include/libpng12
-I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-fno-strict-aliasing -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/poppler/glib -I/usr/include/gtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -g -O2 -MT pdf2png-pdf2png.o -MD -MP
-MF ".deps/pdf2png-pdf2png.Tpo" -c -o pdf2png-pdf2png.o `test -f
'pdf2png.c' || echo './'`pdf2png.c; \
then mv -f ".deps/pdf2png-pdf2png.Tpo" ".deps/pdf2png-pdf2png.Po";
else rm -f ".deps/pdf2png-pdf2png.Tpo"; exit 1; fi
pdf2png.c: In function 'main':
pdf2png.c:81: warning: passing argument 8 of
'poppler_page_render_to_pixbuf' makes integer from pointer without a
cast
pdf2png.c:81: error: too few arguments to function
'poppler_page_render_to_pixbuf
I looked in the header poppler-page.h and it has the signature
void poppler_page_render_to_pixbuf (PopplerPage *page,
int src_x,
int src_y,
int src_width,
int src_height,
double scale,
GdkPixbuf *pixbuf,
int dest_x,
int dest_y);
The popular.pc file has
Name: poppler
Description: PDF rendering library
Version: 0.3.2
Mike
More information about the cairo
mailing list