node-quirc icon indicating copy to clipboard operation
node-quirc copied to clipboard

Document how to get working on Apple M1 + Homebrew v3

Open niftylettuce opened this issue 4 years ago • 5 comments

On homebrew v3 the default path is /opt/homebrew, which is not included in clang search paths by default. Therefore this project will fail to build. I added the following to my zshrc/bashrc on my Apple M1 https://github.com/Homebrew/brew/issues/10152#issuecomment-774706744 and it did the trick.

niftylettuce avatar Feb 07 '21 16:02 niftylettuce

Hello @niftylettuce,

We would add the homebrew directories on MacOSX using gyp conditionals, see for example https://stackoverflow.com/a/31112922/7936137. I don't have access to a Mac to test this but I would gladly accept a PR.

kaworu avatar Feb 08 '21 10:02 kaworu

For ubuntu desktop it's the following, correct?

sudo apt install libpng-dev libjpeg-dev

joshxyzhimself avatar Aug 09 '21 14:08 joshxyzhimself

@joshxyzhimself I believe it is yes

kaworu avatar Aug 23 '21 19:08 kaworu

I added the following to my zshrc/bashrc on my Apple M1 Homebrew/brew#10152 (comment) and it did the trick.

@niftylettuce Amazing! Thank you. I was getting png.h not found errors. This worked.

AgileEduLabs avatar Jan 28 '22 03:01 AgileEduLabs

Is this still a valid requirement? I have problems installing node-quirc on my M1 mac

weyert avatar May 19 '22 23:05 weyert