quirc icon indicating copy to clipboard operation
quirc copied to clipboard

Document how to get working on Apple M1 + Homebrew v3

Open niftylettuce opened this issue 4 years ago • 2 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

Ref: https://github.com/kaworu/node-quirc/issues/16

niftylettuce avatar Feb 07 '21 16:02 niftylettuce

Hello @niftylettuce, thanks for opening this issue!

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.

If I understand correctly, this problem will arise with any project. In other words, this is an environment issue unrelated to quirc.

In my humble opinion, based on the fact that we're only providing a Makefile rather than using a build system (e.g. autotools or CMake), users of this library are expected to understand the basic of their compiler toolchain.

kaworu avatar Feb 08 '21 09:02 kaworu