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

Build error #38

Closed
msageryd opened this issue Apr 6, 2021 · 3 comments
Closed

Build error #38

msageryd opened this issue Apr 6, 2021 · 3 comments

Comments

@msageryd
Copy link
Contributor

msageryd commented Apr 6, 2021

I'm trying to install poppler-simple on Mac OS Catalina (10.15.7) with Node 12.21 (via NVM).

npm i poppler-simple@latest
gives me the following error. What should I do to dig deeper into this?

> poppler-simple@0.10.0 install /Users/michaelsageryd/dev/plantrail/client/pdf2jpg/node_modules/poppler-simple
> (node-gyp rebuild) || (exit 1)

  CXX(target) Release/obj.target/poppler/src/poppler.o
  CXX(target) Release/obj.target/poppler/src/NodePopplerDocument.o
../src/NodePopplerDocument.cc:60:11: error: assigning to 'PDFDoc *' from incompatible type 'std::unique_ptr<PDFDoc>'
    doc = PDFDocFactory().createPDFDoc(*fileNameA, ownerPassword, userPassword);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/poppler/src/NodePopplerDocument.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
@blackbeam
Copy link
Owner

Hi.
I believe this is due to a breaking change introduced in popper 21.03. I'll look into it.

@blackbeam
Copy link
Owner

Fixed in v0.10.1.

@msageryd
Copy link
Contributor Author

msageryd commented Apr 7, 2021

Thanks.
I can confirm that it works.
Really speedy response.

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

2 participants