View Single Post
Old 02-12-2012, 09:26 AM   #34
traycold
Connoisseur
traycold doesn't littertraycold doesn't litter
 
Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
hi,
i tried to compile from source.
But i got the following error when launched the "make":
Spoiler:
Code:
arm-none-linux-gnueabi-gcc -c -O0 -g -Ilua/src -Imupdf/ -Iluafilesystem/src kpdfview.c -o kpdfview.o
arm-none-linux-gnueabi-gcc -c -O0 -g -Ilua/src -Imupdf/  einkfb.c -o einkfb.o
arm-none-linux-gnueabi-gcc -c -O0 -g -Ilua/src -Imupdf/ -Iluafilesystem/src pdf.c -o pdf.o
pdf.c:25: error: expected specifier-qualifier-list before 'pdf_xref'
pdf.c: In function 'openDocument':
pdf.c:55: error: 'PdfDocument' has no member named 'context'
pdf.c:55: warning: passing argument 2 of 'fz_new_context' makes pointer from integer without a cast
pdf.c:55: error: too few arguments to function 'fz_new_context'
pdf.c:59: error: 'PdfDocument' has no member named 'context'
pdf.c:59: error: 'PdfDocument' has no member named 'context'
pdf.c:59: error: 'PdfDocument' has no member named 'context'
pdf.c:59: error: 'PdfDocument' has no member named 'context'
pdf.c:59: error: 'PdfDocument' has no member named 'context'
pdf.c:60: error: 'PdfDocument' has no member named 'xref'
pdf.c:60: error: 'PdfDocument' has no member named 'context'
pdf.c:62: error: 'PdfDocument' has no member named 'context'
pdf.c:62: error: 'PdfDocument' has no member named 'context'
pdf.c:66: error: 'PdfDocument' has no member named 'xref'
pdf.c:67: error: 'PdfDocument' has no member named 'xref'
pdf.c:67: warning: passing argument 2 of 'pdf_authenticate_password' discards qualifiers from pointer target type
pdf.c:70: error: 'PdfDocument' has no member named 'pages'
pdf.c:70: error: 'PdfDocument' has no member named 'xref'
pdf.c: In function 'closeDocument':
pdf.c:76: error: 'PdfDocument' has no member named 'xref'
pdf.c:77: error: 'PdfDocument' has no member named 'xref'
pdf.c:78: error: 'PdfDocument' has no member named 'xref'
pdf.c:80: error: 'PdfDocument' has no member named 'context'
pdf.c:81: error: 'PdfDocument' has no member named 'context'
pdf.c:82: error: 'PdfDocument' has no member named 'context'
pdf.c: In function 'getNumberOfPages':
pdf.c:88: error: 'PdfDocument' has no member named 'pages'
pdf.c: In function 'openPage':
pdf.c:169: error: 'PdfDocument' has no member named 'pages'
pdf.c:170: error: 'PdfDocument' has no member named 'pages'
pdf.c:178: error: 'PdfDocument' has no member named 'context'
pdf.c:178: error: 'PdfDocument' has no member named 'context'
pdf.c:178: error: 'PdfDocument' has no member named 'context'
pdf.c:178: error: 'PdfDocument' has no member named 'context'
pdf.c:178: error: 'PdfDocument' has no member named 'context'
pdf.c:179: error: 'PdfDocument' has no member named 'xref'
pdf.c:181: error: 'PdfDocument' has no member named 'context'
pdf.c:181: error: 'PdfDocument' has no member named 'context'
pdf.c: In function 'getUsedBBox':
pdf.c:218: error: 'PdfDocument' has no member named 'context'
pdf.c:218: error: 'PdfDocument' has no member named 'context'
pdf.c:218: error: 'PdfDocument' has no member named 'context'
pdf.c:218: error: 'PdfDocument' has no member named 'context'
pdf.c:218: error: 'PdfDocument' has no member named 'context'
pdf.c:219: error: 'PdfDocument' has no member named 'context'
pdf.c:220: error: 'PdfDocument' has no member named 'xref'
pdf.c:225: error: 'PdfDocument' has no member named 'context'
pdf.c:225: error: 'PdfDocument' has no member named 'context'
pdf.c: In function 'closePage':
pdf.c:240: error: 'PdfDocument' has no member named 'context'
pdf.c: In function 'drawPage':
pdf.c:260: error: 'PdfDocument' has no member named 'context'
pdf.c:267: error: 'PdfDocument' has no member named 'context'
pdf.c:278: error: 'PdfDocument' has no member named 'xref'
pdf.c:282: warning: passing argument 1 of 'fz_gamma_pixmap' from incompatible pointer type
pdf.c:282: error: incompatible type for argument 2 of 'fz_gamma_pixmap'
pdf.c:282: error: too few arguments to function 'fz_gamma_pixmap'
pdf.c:300: error: 'PdfDocument' has no member named 'context'
make: *** [pdf.o] Error 1

Do you have any clue about it?

Moreover, on "Makefile" there is a small typo, preventing LUA lib to be made: $(LUALIB) becomes $(LUALIBS).

Regards.

UPDATE: maybe i find the root issue of the compilation error: a commit on MUPDF made some weeks ago; i suppose, a refactoring needs to be done on kindlepdfreader, too; i'm not so expert in C to do it by myself.

Last edited by traycold; 02-12-2012 at 11:47 AM.
traycold is offline   Reply With Quote