Skip to content
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

Couldn't find include 'Gtk-3.0.gir' (search path: '['.', u'gir-1.0', u'/usr/local/Cellar/gobject-introspection/1.54.1/share/gir-1.0', u'/usr/local/share/gir-1.0', u'/usr/local/Cellar/gobject-introspection/1.54.1/share/gir-1.0']') #86

Closed
a1exus opened this issue Oct 7, 2017 · 4 comments

Comments

@a1exus
Copy link

a1exus commented Oct 7, 2017

I tried to execute:

brew install virt-manager virt-viewer

and after a while I've got following output:

Error: You have MacPorts or Fink installed:
  /opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

  sudo mv /opt/local ~/macports
mbp:~ alexus$ sudo mv /opt/local ~/macports
Password:
mbp:~ alexus$ brew install virt-manager virt-viewer
==> Installing virt-manager from jeffreywildman/virt-manager
==> Installing dependencies for jeffreywildman/virt-manager/virt-manager: spice-gtk, pcre2, vte3
==> Installing jeffreywildman/virt-manager/virt-manager dependency: spice-gtk
==> Downloading https://www.spice-space.org/download/gtk/spice-gtk-0.31.tar.bz2
Already downloaded: /Users/alexus/Library/Caches/Homebrew/spice-gtk-0.31.tar.bz2
==> ./configure --disable-silent-rules --with-gtk=3.0 --enable-introspection --enable-vala --with-audio=no --with-coroutine=gthread --prefix=/usr/local/Cellar/spice-gtk/0.31
==> make install
Last 15 lines from /Users/alexus/Library/Logs/Homebrew/spice-gtk/02.make:
libtool: link: (cd ".libs" && rm -f "libspice-client-gtk-3.0.dylib" && ln -s "libspice-client-gtk-3.0.4.dylib" "libspice-client-gtk-3.0.dylib")
libtool: link: ( cd ".libs" && rm -f "libspice-client-gtk-3.0.la" && ln -s "../libspice-client-gtk-3.0.la" "libspice-client-gtk-3.0.la" )
/bin/sh ../libtool  --tag=CC   --mode=link clang  -g -O2   -o spicy spicy-spicy.o spicy-spicy-connect.o spicy-spice-cmdline.o  libspice-client-gtk-3.0.la libspice-client-glib-2.0.la -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -lgthread-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/cairo/1.14.10/lib -L/usr/local/Cellar/gdk-pixbuf/2.36.11/lib -L/usr/local/Cellar/atk/2.26.0/lib -L/usr/local/Cellar/pango/1.40.12/lib -L/usr/local/Cellar/gtk+3/3.22.24/lib -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation   
libtool: link: clang -g -O2 -o .libs/spicy spicy-spicy.o spicy-spicy-connect.o spicy-spice-cmdline.o -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreFoundation  ./.libs/libspice-client-gtk-3.0.dylib -L/usr/local/Cellar/pixman/0.34.0_1/lib -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/openssl/1.0.2l/lib -L/usr/local/Cellar/libusb/1.0.21/lib -L/usr/local/Cellar/usbredir/0.7.1/lib -L/usr/local/Cellar/cairo/1.14.10/lib -L/usr/local/Cellar/gdk-pixbuf/2.36.11/lib -L/usr/local/Cellar/atk/2.26.0/lib -L/usr/local/Cellar/pango/1.40.12/lib -L/usr/local/Cellar/gtk+3/3.22.24/lib -L/usr/local/Cellar/libepoxy/1.4.3/lib /private/tmp/spice-gtk-20171007-99317-v56ru1/spice-gtk-0.31/src/.libs/libspice-client-glib-2.0.dylib -lepoxy ./.libs/libspice-client-glib-2.0.dylib -ljpeg -lz -lpixman-1 -lssl -lcrypto -lusb-1.0 -lusbredirhost -lusbredirparser -lgthread-2.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC clang -o /private/tmp/spice-gtk-20171007-99317-v56ru1/spice-gtk-0.31/src/tmp-introspectahaGIA/SpiceClientGLib-2.0 -export-dynamic -g -O2 /private/tmp/spice-gtk-20171007-99317-v56ru1/spice-gtk-0.31/src/tmp-introspectahaGIA/SpiceClientGLib-2.0.o -L. libspice-client-glib-2.0.la -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation
libtool: link: clang -o /private/tmp/spice-gtk-20171007-99317-v56ru1/spice-gtk-0.31/src/tmp-introspectahaGIA/.libs/SpiceClientGLib-2.0 -g -O2 /private/tmp/spice-gtk-20171007-99317-v56ru1/spice-gtk-0.31/src/tmp-introspectahaGIA/SpiceClientGLib-2.0.o -Wl,-framework -Wl,CoreFoundation  -L. ./.libs/libspice-client-glib-2.0.dylib -L/usr/local/Cellar/pixman/0.34.0_1/lib -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/openssl/1.0.2l/lib -L/usr/local/Cellar/libusb/1.0.21/lib -L/usr/local/Cellar/usbredir/0.7.1/lib -ljpeg -lz -lpixman-1 -lssl -lcrypto -lusb-1.0 -lusbredirhost -lusbredirparser -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
usb-device-manager.c:1583: Warning: SpiceClientGLib: spice_usb_device_manager_disconnect_device: invalid return annotation
/usr/local/Cellar/gobject-introspection/1.54.1/bin/g-ir-compiler --includedir=. --includedir=. SpiceClientGLib-2.0.gir -o SpiceClientGLib-2.0.typelib
CPPFLAGS="" CFLAGS="-g -O2" LDFLAGS="" CC="clang" PKG_CONFIG="/usr/local/opt/pkg-config/bin/pkg-config" DLLTOOL="false"  /usr/local/Cellar/gobject-introspection/1.54.1/bin/g-ir-scanner  --warn-all --accept-unprefixed --add-include-path=. --symbol-prefix=spice --identifier-prefix=Spice --namespace=SpiceClientGtk --nsversion=3.0 --libtool="/bin/sh ../libtool"  --include=GObject-2.0 --include=Gtk-3.0 --include=SpiceClientGLib-2.0 --pkg-export=spice-client-gtk-3.0   --library=libspice-client-gtk-3.0.la --library=libspice-client-glib-2.0.la --c-include="spice-widget.h" --cflags-begin -DSPICE_COMPILATION -DG_LOG_DOMAIN=\"GSpice\" -DSPICE_NO_DEPRECATED -DSPICE_GTK_LOCALEDIR=\"/usr/local/Cellar/spice-gtk/0.31/share/locale\" -DPNP_IDS=\""/pnp.ids"\" -DUSB_IDS=\"""\" -DSPICE_DISABLE_ABORT -I.. -I ../spice-common/ -I/usr/local/Cellar/spice-protocol/0.12.12/include/spice-1 -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1  -D_REENTRANT -I/usr/local/Cellar/libpng/1.6.32/include/libpng16 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.12.6/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.54.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/cairo/1.14.10/include/cairo -I/usr/local/Cellar/gdk-pixbuf/2.36.11/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/atk/2.26.0/include/atk-1.0 -I/usr/local/Cellar/libepoxy/1.4.3/include -I/usr/local/Cellar/graphite2/1.3.10/include -I/usr/local/Cellar/harfbuzz/1.5.1/include/harfbuzz -I/usr/local/Cellar/pango/1.40.12/include/pango-1.0 -I/usr/local/Cellar/gtk+3/3.22.24/include/gtk-3.0 -I/usr/local/Cellar/libpng/1.6.32/include/libpng16 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.12.6/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/cairo/1.14.10/include/cairo -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -D_REENTRANT -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.54.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/openssl/1.0.2l/include    -I/usr/local/Cellar/libusb/1.0.21/include/libusb-1.0 -I/usr/local/Cellar/usbredir/0.7.1/include      --cflags-end  spice-client-gtk.h spice-gtk-session.h spice-widget.h spice-grabsequence.h usb-device-widget.h spice-widget-enums.h spice-gtk-session.c spice-widget.c spice-grabsequence.c usb-device-widget.c libspice-client-gtk-3.0.la SpiceClientGLib-2.0.gir --output SpiceClientGtk-3.0.gir
Couldn't find include 'Gtk-3.0.gir' (search path: '['.', u'gir-1.0', u'/usr/local/Cellar/gobject-introspection/1.54.1/share/gir-1.0', u'/usr/local/share/gir-1.0', u'/usr/local/Cellar/gobject-introspection/1.54.1/share/gir-1.0']')
make[4]: *** [SpiceClientGtk-3.0.gir] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/jeffreywildman/homebrew-virt-manager/issues

These open issues may also help:
Error installing spice-gtk: No package 'spice-client-glib-2.0' found https://github.com/jeffreywildman/homebrew-virt-manager/issues/56
enable audio/video streaming; overhaul build https://github.com/jeffreywildman/homebrew-virt-manager/pull/83
Error: configure: error: libjpeg not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/49
make install fails https://github.com/jeffreywildman/homebrew-virt-manager/issues/52
Create new virtual machine OS types missing https://github.com/jeffreywildman/homebrew-virt-manager/issues/64
after brew update  , the same error https://github.com/jeffreywildman/homebrew-virt-manager/issues/55
Missing type converters: unsigned long long *:1 ERROR: failed virDomainMigrateGetMaxDowntime error: command '/usr/bin/python' failed with exit status 1 https://github.com/jeffreywildman/homebrew-virt-manager/issues/84
 libvirt-glib wont build - OSError: [Errno 1] Operation not permitted: g-ir-scanner/ https://github.com/jeffreywildman/homebrew-virt-manager/issues/82
Install error: [LibvirtGLib-1.0.gir] Error 1 https://github.com/jeffreywildman/homebrew-virt-manager/issues/77
ERROR: failed virDomainMigrateGetMaxDowntime error: command '/usr/bin/python' failed with exit status 1 https://github.com/jeffreywildman/homebrew-virt-manager/issues/81
brew install virt-manager issue https://github.com/jeffreywildman/homebrew-virt-manager/issues/58
Install error: failed virConnectNodeDeviceEventRegisterAny https://github.com/jeffreywildman/homebrew-virt-manager/issues/57
Error: jeffreywildman/virt-manager/libvirt-glib 1.0.0 did not build https://github.com/jeffreywildman/homebrew-virt-manager/issues/79
mbp:~ alexus$ 

Please advise.

@lunixbochs
Copy link
Contributor

lunixbochs commented Oct 8, 2017

Can you try with PR #83?

@aristofanio
Copy link

In my case, I installed gtk+3 (3.24.2_1) and linked Gtk-3.0.gir and Gdk-3.0.gir in /usr/local/share/gir-1.0

$ cd /usr/local/share/gir-1.0
$ ln -s ../../Cellar/gtk+3/3.24.2_1/share/gir-1.0/Gtk-3.0.gir .
$ ln -s ../../Cellar/gtk+3/3.24.2_1/share/gir-1.0/Gdk-3.0.gir .

This is working!!

@easonjim
Copy link

easonjim commented Feb 20, 2019

I'm working is use:

cd /usr/local/share/gir-1.0
ln -s /usr/local/Cellar/gtk+3/3.24.5/share/gir-1.0/Gdk-3.0.gir .
ln -s /usr/local/Cellar/gtk+3/3.24.5/share/gir-1.0/Gtk-3.0.gir .
brew install spice-gtk

@jeffreywildman
Copy link
Owner

Closing, appears to be resolved. Plus, spice-gtk recipe has been moved to homebrew-core and is now at 0.37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants