qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] QEMU RFB (vnc) driver


From: Brad Campbell
Subject: Re: [Qemu-devel] QEMU RFB (vnc) driver
Date: Thu, 06 May 2004 11:35:38 +0400
User-agent: Mozilla Thunderbird 0.6+ (X11/20040417)

Johannes Schindelin wrote:
Hi,

First of all: QEMU is wonderful. It is blazingly fast, yet very small!

Second, my sincere apologies to Matthew: I hacked together my own version
of what you did. Attached is a patch which does about the same thing.

A few differences, though:

        - I stole a bit from wine, so I have a compile time choice of a
          keymap. This certainly has room to improve.

        - I actually change the screen resolution. There is support for
          this in LibVNCServer since version 0.4, and a few clients
          support it. If the client does not support the change, a warning
          is issued.

Err. No warning here.

06/05/2004 10:56:02 Got connection from client 192.168.2.80
06/05/2004 10:56:02   other clients:
06/05/2004 10:56:02 Protocol version 3.3
06/05/2004 10:56:02 Pixel format for client 192.168.2.80:
06/05/2004 10:56:02   16 bpp, depth 16, little endian
06/05/2004 10:56:02   true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
06/05/2004 10:56:02 no translation needed
06/05/2004 10:56:02 Using tight encoding for client 192.168.2.80
06/05/2004 10:56:02 Using compression level 1 for client 192.168.2.80
06/05/2004 10:56:02 Using image quality level 6 for client 192.168.2.80
06/05/2004 10:56:02 Enabling X-style cursor updates for client 192.168.2.80
06/05/2004 10:56:02 Enabling full-color cursor updates for client 192.168.2.80
06/05/2004 10:56:02 Enabling cursor position updates for client 192.168.2.80
06/05/2004 10:56:02 Enabling LastRect protocol extension for client 192.168.2.80
06/05/2004 10:56:22 Warning: Client 192.168.2.80 does not support NewFBSize!
Segmentation fault

I upgraded to a later vnc client that supported NewFBSize and this became a 
non-issue


        - It is configurable:
                ./configure --enable-vnc
          will change the output completely to vnc, and
                ./configure --enable-vnc-and-sdl
          will use both simultaneously!

Neato! Only one quirk. --enable-vnc-and-sdl does not compile because it does 
not compile sdl.c


rm -f libqemu.a
ar rcs libqemu.a exec.o translate-all.o cpu-exec.o translate.o op.o helper.o helper2.o translate-copy.o disas.o i386-dis.o gcc -static -Wl,-T,/home/brad/src/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o vnc.o libqemu.a -lm -L/usr/local/libvnc/lib -lvncserver -lnsl -lpthread -ljpeg -lz -lutil
/usr/local/libvnc/lib/libvncserver.a(httpd.o)(.text+0x450): In function 
`httpProcessInput':
/home/brad/src/LibVNCServer-0.7pre/httpd.c:221: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/libvnc/lib/libvncserver.a(sockets.o)(.text+0x1017): In function 
`ConnectToTcpAddr':
/home/brad/src/LibVNCServer-0.7pre/sockets.c:574: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
vnc.o(.text+0x40e): In function `vnc_display_init':
/home/brad/src/qemu/vnc.c:164: undefined reference to `sdl_display_init'
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/brad/src/qemu/i386'
make: *** [all] Error 1

I'll keep playing with this one..

Regards,
Brad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]