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

Error while installing the package on macbook M2 Air Ventura 13.3.1 #110

Open
satyajitnayk opened this issue Apr 10, 2023 · 6 comments
Open

Comments

@satyajitnayk
Copy link

The error is as follows :

Package poppler-qt5 was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containing `poppler-qt5.pc'
npm ERR! to the PKG_CONFIG_PATH environment variable
npm ERR! No package 'poppler-qt5' found
npm ERR! gyp: Call to 'pkg-config --cflags cairo poppler-qt5' returned exit status 1 while in binding.gyp. while trying to load binding.gyp

Screenshot 2023-04-10 at 11 03 55 AM

@satyajitnayk
Copy link
Author

Also After fixing PKG_CONFIG_PATH a new error comes.

Screenshot 2023-04-10 at 11 20 54 AM

@lucienbl
Copy link

Hello @satyajitnayk 👋
I have the same issue on a M1 MacBook, did you find out how to fix it ?

Thanks in advance :)

@nabgilby
Copy link

Unfortunately no, sorry,

@lucienbl
Copy link

Hello, I was able to install it by following the steps mentioned in this comment : #104 (comment). Please also note that it will not work with [email protected], [email protected] is required.
However, all these downgrading doesn't seem like a durable solution to me. I'm afraid that I'll have to look for another package 😅

@satyajitnayk
Copy link
Author

satyajitnayk commented Jun 13, 2023

No solution so far @lucienbl . but it working in my production environment which running ubuntu & node version 15.

@EdwardDrapkin
Copy link

EdwardDrapkin commented Feb 8, 2024

  1. brew install qt5 poppler-qt5 pkg-config cairo
  2. export LDFLAGS="-L/opt/homebrew/opt/poppler-qt5/lib -L/opt/homebrew/opt/qt@5/lib"
  3. export CPPFLAGS="-I/opt/homebrew/opt/poppler-qt5/include -I/opt/homebrew/opt/qt@5/include -I/opt/homebrew/Cellar/cairo/1.18.0/include"
  4. export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@5/lib/pkgconfig/:/opt/homebrew/opt/poppler-qt5/lib/pkgconfig:/opt/homebrew/opt/poppler-qt5/share/pkgconfig"
  5. edit binding.gyp: change -std=c++11 to -std=c++17

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

4 participants