tpisto / pdf-fill-form

Fill PDF forms and return either filled PDF or PDF created from rendered page images.
MIT License
230 stars 48 forks source link

Error installing dependencies on Mac #66

Closed Vortec4800 closed 4 years ago

Vortec4800 commented 5 years ago

When running this command: brew install qt5 cairo poppler --with-qt5 I get the error:

Error: invalid option: --with-qt5

Is there a new version of something that doesn't like this flag? I'm not able to install the module without passing this, as the npm install complains about not being able to find the required frameworks.

mhadad commented 5 years ago

I'm having the same error as above

I'm on Mojave running Homebrew 2.1.0

brittbinler commented 5 years ago

Same for me, running Mojave 10.14.4 with Homebrew 2.1.2.

brittbinler commented 5 years ago

These steps eventually got the installation working:

brew rm poppler; brew install -s poppler
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
npm install pdf-fill-form

When running the app, I now see:

Error: .../node_modules/pdf-fill-form/build/Release/pdf_fill_form.node: invalid ELF header

I also tried deleting the package-lock.json file and running npm i again. This upgraded to version "pdf-fill-form": "^4.1.0", but I'm still seeing the ELF header error.

Thanks to @claucece's comment here: https://github.com/otrv4/pidgin-otrng/issues/104#issuecomment-477640242

claucece commented 5 years ago

Oh, nice, it helped here @brittbinler :)