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
PKG_CONFIG_PATH and libxml-2.0.pc #9
Comments
I've got a relatively new 10.9 machine that seems quite happy to compile sharp.cc against the version of vips and its dependencies installed via My best guess is this is either a 10.8 upgraded to 10.9 thing or there are conflicting versions of pkgconfig (homebrew vs native). I've added the 10.8 pkgconfig path from your node-vips/binding.gyp example to the sharp/bind.gyp as https://gist.github.com/lovell/9496303 - if you're able, please can you replace sharp/binding.gyp locally with this gist and see how |
It looks /usr/local/Library/ENV/pkgconfig/10.8/libxml-2.0.pc is put there by homebrew itself, which means there's no harm adding that path to PKG_CONFIG_PATH. |
@onetom Please can you verify |
It doesn't work, but if I do a
|
Thanks for the update @onetom. If I understand you correctly, the The gettext formula in homebrew suggests that it can clash with the native Mac OS gettext library. I suspect in your case the compiler is unaware of the native version. I'll add details of this use of |
Hi @onetom, are there any additional comments or problems relating to this issue before I close it? |
Let me check it on another, virgin machine first and I will let you know within a few hours how it went. |
Looks perfect, thanks a lot again! Just for the record: ↪ uname -a ↪ npm install https://github.com/lovell/sharp/archive/master.tar.gz
CXX(target) Release/obj.target/sharp/src/sharp.o |
I'm getting the following compilation error on Mavericks:
I had a similar issue with the node-vips library, which I've ended up fixing like this:
I'm very curious how could it compile without tweaks on others' systems.
brew install homebrew/science/vips
alone is clearly not enough.The text was updated successfully, but these errors were encountered: