Closed Junzki closed 7 years ago
Thanks for the report.
We use zbarlight at worker, and for now none of my co-workers that use MacOS complaint about the installation of zbarlight. I will see with them how they install it.
This is strange. Did you customize the brew install path ?
Everything should have gone into /usr/local/ which should already be in the various PATHs.
I've also run into this on MacOS 10.12.
Here's what clang is trying to do:
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/zbarlight/_zbarlight.c -o build/temp.macosx-10.13-x86_64-2.7/src/zbarlight/_zbarlight.o -std=c99
src/zbarlight/_zbarlight.c:3:10: fatal error: 'zbar.h' file not found
Using @Junzki solution works for me.
Thanks for you comment, I will update the installation instructions to take into account that.
I've installed
zbar
with homebrew, and pip said he couldn't findzbar.h
. Symptom like this below.And here is a possible solution: