otrv4 / pidgin-otrng

Fork of https://bugs.otr.im/plugins/pidgin-otr. This is a mirror of https://bugs.otr.im/otrv4/pidgin-otrng
GNU General Public License v2.0
16 stars 5 forks source link

OSX: Package 'libffi', required by 'gobject-2.0', not found #104

Closed claucece closed 5 years ago

claucece commented 5 years ago

Currently, I can't run ./configure as it says:

OSX: Package 'libffi', required by 'gobject-2.0', not found. By doing

export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/, it works again.

Unsure if this is local, if the homebrew formula was broken, etc; but I opened it here for reference.

olabini commented 5 years ago

Yes, this is the same problem we had with the CoyIM build on OS X Travis. Something seems to have changed with the libffi package, or something with brew. Not sure. We can't do anything about it though, so my recommendation is that we put this information in the README and close this issue.

claucece commented 5 years ago

Isolating this, this is related to the newer formula of glib in Homebrew (2.60).

lotuc commented 5 years ago

https://github.com/mesonbuild/meson/issues/2273#issuecomment-420412230

This works.

claucece commented 5 years ago

Yes, the same, when I use export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" it works. When working on this I noticed that if I switch the glib version to an older one (2.56.1), everything works correctly. @lotuc

evandrix commented 5 years ago

well, you were warned:

$ brew info libffi
libffi: stable 3.2.1 (bottled), HEAD [keg-only]
Portable Foreign Function Interface library
https://sourceware.org/libffi/
/usr/local/Cellar/libffi/3.2.1 (16 files, 296.8KB)
  Poured from bottle on 2019-01-14 at 03:51:17
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/libffi.rb
==> Options
--HEAD
    Install HEAD version
==> Caveats
libffi is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of libffi.

For compilers to find libffi you may need to set:
  export LDFLAGS="-L/usr/local/opt/libffi/lib"

For pkg-config to find libffi you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"

==> Analytics
install: 120,865 (30 days), 367,289 (90 days), 1,244,416 (365 days)
install_on_request: 3,645 (30 days), 10,974 (90 days), 39,185 (365 days)
build_error: 0 (30 days)
claucece commented 5 years ago

Yes, @evandrix ... that was noted, but for older versions that was not needed. I think that is why people got confused ;)

gaslitbytech commented 4 years ago

OSX: Package 'libffi', required by 'gobject-2.0', not found. By doing

export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/, it works again.

I had this issue while trying pip install pycairo and this solution worked perfectly except I had to let autocomplete find a newer version of libffi

export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/
shiv1m commented 4 years ago

I am facing the same issue, Package 'libffi', required by 'gobject-2.0', not found MACOS-10.12.6 Sierra #113

Tried both export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig", export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/

Not working for me. I am using node version 12.7.0

pkkr commented 4 years ago

I am facing the same issue, Package 'libffi', required by 'gobject-2.0', not found MACOS-10.12.6 Sierra #113

Tried both export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig", export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/

Not working for me. I am using node version 12.7.0

Sam issue not fixed by adding the export

claucece commented 4 years ago

Hey!

This library is not about the brew formula or libffi. Were those logs shown when trying to run this library @shiv1m @pkkr ?

Thanks!

rririanto commented 4 years ago

Yes, the same, when I use export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" it works. When working on this I noticed that if I switch the glib version to an older one (2.56.1), everything works correctly. @lotuc

I fIxed by brew install libffi and adding export PKG_CONFIG_PATH .