-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Update 'Getting Started' to include non-Node libs #12018
Conversation
Moreover, why are these necessary? PDF.js doesn't rely on them, and we have contributors working on Mac as well and never heard about these being required. I can only see |
Do you mean why are these libraries necessary, or why are these instructions necessary? RE Instructions, I found that, on an almost new Mac system (MacOS 10.15.5), the instructions in the README did not work. I couldn't RE libraries, I can't comment :P I was only focusing on making the README more useful to new contributors. |
Added details on installing pango, cairo and pixman through brew, to avoid node-gyp installation problems.
Related to Automattic/node-canvas/issues/1587. Adding the package |
OK, so the only reason we need these extra steps here that were not necessary before is because upstream does not provide valid prebuilt I think a better solution here would be to do neither or the two, and instead do something like https://github.com/mozilla/pdf.js/pull/11964/files where we mention in the |
The pdf.js/test/unit/test_utils.js Lines 65 to 69 in ac4a5c3
|
Hm, I'm wondering if adding the |
Another solution is executing the following explicitly:
Then, prebuilt binaries and required libraries are installed in One thing making things complicated is that the package The following is my configuration.
|
Versions of `needle` prior to `2.5.0` cannot cope with redirects (as documented: tomas/needle#312). This prevents prebuilt `canvas` binaries from being downloaded on MacOS, requiring the global install of its dependencies. Updating Needle restores it to functionality, addressing this. It also avoids the need to add `request` to `package.json`; it also obsoletes mozilla#12018.
I was surprised that the Which was a bit odd, until I compared the checkout I made directly from the project 2 days ago (instead of my fork), and found that "But Dylan, get to the point!" you reasonably cry: #12024 forces |
List details of libraries needed on MacOS when installing from scratch.