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

Submit virt-viewer to homebrew-core #200

Open
jeffreywildman opened this issue Mar 25, 2023 · 4 comments
Open

Submit virt-viewer to homebrew-core #200

jeffreywildman opened this issue Mar 25, 2023 · 4 comments

Comments

@jeffreywildman
Copy link
Owner

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

@zsirmo
Copy link

zsirmo commented Mar 28, 2023

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/[email protected]/1.1.1t/lib/pkgconfig/libcrypto.pc /usr/local/lib/pkgconfig/libcrypto.pc
ln -s /usr/local/Cellar/[email protected]/1.1.1t/lib/pkgconfig/libssl.pc /usr/local/lib/pkgconfig/libssl.pc
ln -s /usr/local/Cellar/[email protected]/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
Copy link

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
Copy link

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

Turns out this was already mentioned here: krishjainx@a1c4c9c

@outlander4000
Copy link

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

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

No branches or pull requests

4 participants