jeffreywildman / homebrew-virt-manager

A set of homebrew formulae to install virt-manager and virt-viewer on MAC OSX
1k stars 266 forks source link

Submit virt-viewer to homebrew-core #200

Open jeffreywildman opened 1 year ago

jeffreywildman commented 1 year ago

https://docs.brew.sh/Adding-Software-to-Homebrew

zsirmo commented 1 year ago

I found a problem message: Unsupport graphics type 'spice'

Check manual: meson: meson setup virt-viewer-11.0 virt-viewer-build output: . . Run-time dependency spice-client-glib-2.0 found: NO (tried pkgconfig, framework and cmake) Run-time dependency spice-client-gtk-3.0 found: NO (tried pkgconfig, framework and cmake)

meson (and pkg-config) not found spice installed packages first check pc files in packages, and manual symlink (or brew force linking) and check openssl pc files(spice dependencies, when missing is problem) ln -s /usr/local/Cellar/openssl\@1.1/1.1.1t/lib/pkgconfig/libcrypto.pc /usr/local/lib/pkgconfig/libcrypto.pc ln -s /usr/local/Cellar/openssl\@1.1/1.1.1t/lib/pkgconfig/libssl.pc /usr/local/lib/pkgconfig/libssl.pc ln -s /usr/local/Cellar/openssl\@1.1/1.1.1t/lib/pkgconfig/openssl.pc /usr/local/lib/pkgconfig/openssl.pc ln -s /usr/local/Cellar/spice-gtk/0.42/lib/pkgconfig/spice-client-glib-2.0.pc /usr/local/lib/pkgconfig/spice-client-glib-2.0.pc ln -s /usr/local/Cellar/spice-gtk/0.42/lib/pkgconfig/spice-client-gtk-3.0.pc /usr/local/lib/pkgconfig/spice-client-gtk-3.0.pc

second check gettext package (brew force symlink and overwrite)

hs123org commented 1 year ago

Exactly the same issue happens for me. spice-gtk and other dependencies have been updated, but this happens and makes virt-viewer throw the same "Unsupported graphics type 'spice'" error:

Run-time dependency glib-2.0 found: YES 2.76.1 Run-time dependency gmodule-2.0 found: YES 2.76.1 Run-time dependency gtk+-3.0 found: YES 3.24.37 Run-time dependency libxml-2.0 found: YES 2.9.13 Run-time dependency libvirt found: YES 9.1.0 Run-time dependency libvirt-glib-1.0 found: YES 4.0.0 Run-time dependency gtk-vnc-2.0 found: YES 1.3.1 Did not find CMake 'cmake' Found CMake: NO Run-time dependency spice-client-glib-2.0 found: NO (tried pkgconfig, framework and cmake) Run-time dependency spice-client-gtk-3.0 found: NO (tried pkgconfig, framework and cmake) Run-time dependency spice-protocol found: YES 0.14.4 Run-time dependency govirt-1.0 found: NO (tried pkgconfig, framework and cmake) Run-time dependency rest-0.7 found: NO (tried pkgconfig, framework and cmake) Run-time dependency vte-2.91 found: NO (tried pkgconfig, framework and cmake) Run-time dependency bash-completion found: NO (tried pkgconfig, framework and cmake) Configuring config.h using configuration

hs123org commented 1 year ago

I fixed this by adding gobject-introspection: depends_on "gobject-introspection"

Turns out this was already mentioned here: https://github.com/krishjainx/homebrew-virt-manager/commit/a1c4c9cf78364fb66366dfd2f0816e59989d9c31

outlander4000 commented 1 year ago

I just ran brew reinstall gobject-introspection which fixed the issue with the unsupported graphics type. Thanks for leading me in the right direction.