Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various compile issues #1

Closed
kamocat opened this issue Mar 24, 2013 · 2 comments
Closed

various compile issues #1

kamocat opened this issue Mar 24, 2013 · 2 comments
Assignees

Comments

@kamocat
Copy link

kamocat commented Mar 24, 2013

I'm getting a handful of errors when I try to compile. I've reproduced them below:

g++ -Wall -O3 -c -o pdf_document.o pdf_document.cpp
In file included from pdf_document.cpp:22:0:
pdf_document.hpp:111:3: error: 'fz_bbox' does not name a type
pdf_document.cpp: In member function 'virtual const Document::PageSize PDFDocument::GetPageSize(int, float, int)':
pdf_document.cpp:74:9: error: 'fz_bbox' does not name a type
pdf_document.cpp:76:19: error: 'bbox' was not declared in this scope
pdf_document.cpp: In member function 'virtual void PDFDocument::Render(Document::PixelWriter_, int, float, int)':
pdf_document.cpp:122:9: error: 'fz_bbox' does not name a type
pdf_document.cpp:123:75: error: 'bbox' was not declared in this scope
pdf_document.cpp:128:56: error: cannot convert 'const fz_matrix' to 'const fz_matrix_ {aka const fz_matrix_s_}' for argument '4' to 'void pdf_run_page(pdf_document_, pdf_page_, fz_device_, const fz_matrix_, fz_cookie_)'
pdf_document.cpp: In member function 'fz_matrix PDFDocument::Transform(float, int)':
pdf_document.cpp:252:39: error: cannot convert 'float' to 'fz_matrix* {aka fz_matrix_s_}' for argument '1' to 'fz_matrix_ fz_scale(fz_matrix_, float, float)'
pdf_document.cpp:253:38: error: invalid conversion from 'int' to 'fz_matrix_ {aka fz_matrix_s_}' [-fpermissive]
pdf_document.cpp:253:38: error: too few arguments to function 'fz_matrix_ fz_rotate(fz_matrix_, float)'
In file included from /usr/include/mupdf.h:4:0,
from pdf_document.hpp:28,
from pdf_document.cpp:22:
/usr/include/fitz.h:957:12: note: declared here
pdf_document.cpp: At global scope:
pdf_document.cpp:257:1: error: 'fz_bbox' does not name a type
pdf_document.cpp: In member function 'virtual const Document::PageSize PDFDocument::GetPageSize(int, float, int)':
pdf_document.cpp:77:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *_* [pdf_document.o] Error 1

@moredhel
Copy link

I too am getting the same compile errors as above

@ghost ghost assigned jichu4n Mar 28, 2013
@jichu4n
Copy link
Owner

jichu4n commented Mar 28, 2013

Looks like the newly released MuPDF 1.2 changed parts of its API again. I've update the code and it should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants