From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLdQK-0004tB-R7 for qemu-devel@nongnu.org; Thu, 06 May 2004 03:36:04 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLdPn-0004ni-2C for qemu-devel@nongnu.org; Thu, 06 May 2004 03:36:03 -0400 Received: from [203.29.88.42] (helo=gateway.ccdaust.com.au) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLdPm-0004mR-0w for qemu-devel@nongnu.org; Thu, 06 May 2004 03:35:30 -0400 Received: from [192.168.2.80] (helo=wasp.net.au) by gateway.ccdaust.com.au with esmtp (Exim 3.35 #1 (Debian)) id 1BLdds-0000yo-00 for ; Thu, 06 May 2004 15:50:04 +0800 Message-ID: <4099EACA.6090806@wasp.net.au> Date: Thu, 06 May 2004 11:35:38 +0400 From: Brad Campbell MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU RFB (vnc) driver References: <1083291721.28997.11.camel@matt> <4098B29B.5020108@wasp.net.au> <409933A2.3010100@bellard.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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