Damenly / homebrew-virt-manager

A set of homebrew formulae to install virt-viewer on MacOS
40 stars 2 forks source link

Error in installing virt-viewer on Monterey #12

Open handbye opened 1 year ago

handbye commented 1 year ago

please help me ,thanks!

==> Patching
==> meson setup builddir --prefix=/usr/local/Cellar/virt-viewer/11.0 --libdir=/usr/local/Cellar/virt-viewer/11.0/lib --buildtype=release --wrap-mode=n
Last 15 lines from /Users/darkless/Library/Logs/Homebrew/virt-viewer/01.meson:
Found pkg-config: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/pkg-config (0.29.2)
Run-time dependency glib-2.0 found: YES 2.74.4
Run-time dependency gmodule-2.0 found: YES 2.74.4
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency gtk+-3.0 found: NO (tried framework)

meson.build:401:0: ERROR: Dependency lookup for gtk+-3.0 with method 'pkgconfig' failed: Could not generate cargs for gtk+-3.0:
Package pthread-stubs was not found in the pkg-config search path.
Perhaps you should add the directory containing `pthread-stubs.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pthread-stubs', required by 'xcb', not found

A full log can be found at /private/tmp/virt-viewer-20230112-91681-1yeeufk/virt-viewer-11.0/builddir/meson-logs/meson-log.txt

Do not report this issue to Homebrew/brew or Homebrew/core!
ametis70 commented 1 year ago

I tried to install virt-viewer too Monterrey and Ventura on ARM64 (M1 chip) and have the same issue. Also, before the ==> Patching step I see plenty of warnings related to glib-utils being used instead of glib, but that might be an upstream issue?

brew install virt-viewer

Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
==> Fetching damenly/virt-manager/virt-viewer
==> Downloading https://virt-manager.org/download/sources/virt-viewer/virt-viewer-11.0.tar.xz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/bf35108a459253430e6aa676a19b122b7becf62090a594c47084322c00e17bca--virt-viewer-11.0.tar.xz
==> Installing virt-viewer from damenly/virt-manager
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils
Warning: Use glib instead of deprecated glib-utils