From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Did5i-0008Rg-6K for qemu-devel@nongnu.org; Wed, 15 Jun 2005 14:58:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Did5d-0008P6-Im for qemu-devel@nongnu.org; Wed, 15 Jun 2005 14:58:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Did5c-0008OC-Vk for qemu-devel@nongnu.org; Wed, 15 Jun 2005 14:58:17 -0400 Received: from [128.8.10.164] (helo=po2.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Did43-0002cZ-8H for qemu-devel@nongnu.org; Wed, 15 Jun 2005 14:56:39 -0400 Received: from jbrown.mylinuxbox.org (jma-box.student.umd.edu [129.2.237.180]) by po2.wam.umd.edu (8.12.10/8.12.10) with ESMTP id j5FIsxL3028746 for ; Wed, 15 Jun 2005 14:54:59 -0400 (EDT) Date: Wed, 15 Jun 2005 14:54:58 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] Re: Norton Ghost crashes with page fault for me too. Message-ID: <20050615185458.GA27722@jbrown.mylinuxbox.org> References: <20050614224308.GA1488@jbrown.mylinuxbox.org> <004301c571cf$e66ed7c0$334d21d1@organiza3bfb0e> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <004301c571cf$e66ed7c0$334d21d1@organiza3bfb0e> 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 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 15, 2005 at 12:28:35PM -0500, jeebs@yango.us wrote: > Here are the steps I did. > > I follwed the mingw compilation instructions posted in the qemu-user's > forum. Just to make sure that my setup was working. > > >From http://www.gimp.org/win32/ I downloaded the recommended versions of: > > atk-1.8.0.zip > atk-dev-1.8.0.zip > gettext-runtime-0.13.1.zip > glib-2.4.7.zip > glib-dev-2.4.7.zip > gtk+-2.4.14.zip > gtk+-dev-2.4.14.zip > libiconv-1.9.1.bin.woe32.zip > pango-1.4.1.zip > pango-dev-1.4.1.zip > pkgconfig-0.15.zip > > I unzipped those in the msys/mingw directory. > > I then ran the msys program to get a 'linux shell'. > > I did a make clean in qemu. > > I copied all your files to the qemu directory. Looks like you did everything correctly. > > I did "patch use any options? > No. > I did: > > ./configure --target-list=i386-softmmu --static --enable-gtk > > and got: > > Install prefix /c/Program Files/Qemu > BIOS directory /c/Program Files/Qemu > binary directory /c/Program Files/Qemu > Source path /home/Admin/qemu > C compiler gcc > make make > host CPU i386 > host big endian no > target list i386-softmmu > gprof enabled no > static build yes > SDL support yes > SDL static link yes > GTK support yes > GTK FS driver null_fs.c > mingw32 support yes > Adlib support no > FMOD support no > kqemu support no > > Then 'make' and I got this error right at the end... > > H:/MSys/home/Admin/qemu/gdk_set_window_pointer.c:45: undefined reference to > `GDK_WINDOW_HWND' > > (Plus, the usual assortment of warnings in a typical qemu build.) > I don't know how to fix that. GDK_WINDOW_HWND() is defined in a file called gdkwin32.h I've attached a modified version that includes gdkwin32.h directly. Just put this file in qemu's directory (overwriting the old file). If you have gdkwin32.h in your gdk include directory this should fix the error. If this version doesn't work I'll try to write a replacement marco (gtk uses many internal macros - sometimes it can get real ugly). -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection. --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gdk_set_window_pointer.c" /* TODO: figure out how to handle linux framebuffer case - need to call the gdk-fb specific handle_mouse_movement() function in gdkmouse-fb.c ... that gets ugly fast .. */ #ifndef _WIN32 #include #include #include GdkWindow* gdk_window_set_pointer (GdkWindow *window, gint x, gint y) { GdkWindow *return_val; return_val = NULL; XWarpPointer (GDK_WINDOW_XDISPLAY(window), None, GDK_WINDOW_XID(window), 0, 0, 0, 0, x, y); return return_val; } #else /* untested code based on MSDN library code... URL is : http://msdn.microsoft.com/library/default.asp?url=/library/ en-us/winui/winui/windowsuserinterface/resources/cursors/ usingcursors.asp Someone who codes on Windows want to tell me how to actually make this work?? */ #include #include #include GdkWindow* gdk_window_set_pointer (GdkWindow *window, gint x, gint y) { GdkWindow *return_val; POINT pt; pt.x = x; pt.y = y; ClientToScreen(GDK_WINDOW_HWND(window), &pt); SetCursorPos(pt.x, pt.y); return_val = NULL; return return_val; } #endif --ZPt4rx8FFjLCG7dd--