[virt-tools-list] where is virt-viewer

Tom Robinson tom.robinson at motec.com.au
Tue Nov 15 22:11:02 UTC 2016

On 15/11/16 18:50, Christophe Fergeau wrote:
> On Tue, Nov 15, 2016 at 10:10:16AM +1100, Tom Robinson wrote:
>> On 14/11/16 17:51, Fabiano Fidêncio wrote:
>>> On Mon, Nov 14, 2016 at 4:12 AM, Tom Robinson <tom.robinson at motec.com.au> wrote:
>>>> Ubuntu Xenial (16.04.1 LTS)
>>>> virt-viewer: virt-viewer-4.0.tar.gz
>>>> Hi,
>>>> I feel quite stupid. I've downloaded the src for virt-viewer, configured and run make, make install.
>>>> Everything seems to have compiled and installed without issue but I can't find 'virt-viewer'
>>>> anywhere. Where is virt-viewer? What have I missed?
>>> virt-viewer binary you'll show up in case you have built with libvirt
>>> support. Otherwise you will find "remote-viewer" installed.
>>>> My system does have a packaged version of virt-viewer 1.00 installed already  but I want the latest
>>>> 4.0 to do some testing. Does that packaged version defeat the compilation and install of an
>>>> alternate version?
>>> Nops.
>>> Check for remote-viewer, please, and let us know.
>> Yes, I have remote-viewer.
>> On my Ubuntu box, I've now installed the following:
>> libvirt-dev
>> libvirt-glib-1.0-dev
>> After running configure and make, make install again I have virt-viewer. Thanks!
>> Now virt-viewer connects to VNC enabled guests and it appears to function correctly but I see an
>> error message from GDK on stderr:
>> (virt-viewer:19204): Gdk-CRITICAL **: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
>> Also, I'm unable to connect to spice enabled guests. I see the dialogue box error:
>> Failed to connect: Unsupported graphic type 'spice'
> You need to have a recent enough version of spice-gtk to be installed
> for spice support to be enabled when you build. Make sure this is
> installed, and look at configure output, it should give more details
> about this.

Thanks Christophe

I have found this installed:

# dpkg -l | grep spice | sed -e 's/ \+/ /g' | cut -d' ' -f1,2
ii gir1.2-spice-client-glib-2.0
ii gir1.2-spice-client-gtk-2.0
ii gir1.2-spice-client-gtk-3.0
ii libspice-client-glib-2.0-8:amd64
ii libspice-client-glib-2.0-dev
ii libspice-client-gtk-2.0-4:amd64
ii libspice-client-gtk-2.0-dev
ii libspice-client-gtk-3.0-4:amd64
ii libspice-client-gtk-3.0-dev
ii libspice-protocol-dev
ii libspice-server1:amd64
ii python-spice-client-gtk
ii spice-client-glib-usb-acl-helper
ii spice-client-gtk

./configure --help | grep spice
  --without-spice-gtk     Ignore presence of spice-gtk and disable it

The output from configure sheds little light on what I need:

$ ./configure | tee /tmp/foo | grep -i spice
configure:    SPICE_GTK:

It looks like something is missing or not found as expected as SPICE_GTK remains unset. I'm thinking
I need something like a spice-gtk package but there appears to be none available. I'm not sure where
to look beyond here. Any further help is appreciated.

Here is the entire configure output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make supports nested variables... (cached) yes
checking for native Win32... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format...
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format...
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for icotool... no
checking whether gcc understands -fexceptions... yes
checking whether gcc understands -fstack-protector... yes
checking whether gcc understands --param=ssp-buffer-size=4... yes
checking whether gcc understands -fasynchronous-unwind-tables... yes
checking whether gcc understands -Wall... yes
checking whether gcc understands -Wmissing-prototypes... yes
checking whether gcc understands -std=c99... yes
checking whether gcc understands -Wnested-externs... yes
checking whether gcc understands -Wpointer-arith... yes
checking whether gcc understands -Wextra... yes
checking whether gcc understands -Wshadow... yes
checking whether gcc understands -Wcast-align... yes
checking whether gcc understands -Wwrite-strings... yes
checking whether gcc understands -Waggregate-return... yes
checking whether gcc understands -Winline... yes
checking whether gcc understands -Wredundant-decls... yes
checking whether gcc understands -Wdeprecated-declarations... yes
checking whether gcc understands -Wno-sign-compare... yes
checking what language compliance flags to pass to the C compiler...
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.22.1
checking for XML::Parser... ok
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB2... yes
checking for glib-compile-resources... /usr/bin/glib-compile-resources
checking for LIBXML2... yes
checking for LIBVIRT... yes
checking for virDomainOpenGraphicsFD in -lvirt... yes
checking for GTK... yes
checking for GTK_VNC... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for fork... yes
checking for socketpair... yes
checking for update-mime-database... /usr/bin/update-mime-database
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating data/virt-viewer.wxs
config.status: creating icons/Makefile
config.status: creating icons/16x16/Makefile
config.status: creating icons/22x22/Makefile
config.status: creating icons/24x24/Makefile
config.status: creating icons/32x32/Makefile
config.status: creating icons/48x48/Makefile
config.status: creating icons/256x256/Makefile
config.status: creating man/Makefile
config.status: creating mingw-virt-viewer.spec
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating src/virt-viewer.rc
config.status: creating tests/Makefile
config.status: creating virt-viewer.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
configure: Configuration summary
configure: =====================
configure:  Libraries:
configure:        GLIB2: -pthread -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38
-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -pthread
-Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
configure:          GTK: -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
-I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient
-I/usr/include/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_10
-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_10 -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
configure:      GTK_VNC: -pthread -I/usr/include/gtk-vnc-2.0 -I/usr/include/gvnc-1.0
-I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon
-I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-lgtk-vnc-2.0 -lgvnc-1.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
configure:    SPICE_GTK:
configure:      LIBXML2: -I/usr/include/libxml2 -lxml2
configure:      LIBVIRT: -I/usr/include/libvirt-glib-1.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lvirt -lvirt-glib-1.0 -lglib-2.0
configure:        OVIRT:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20161116/9ebdcd5b/attachment.sig>

More information about the virt-tools-list mailing list