From: "Jim C. Brown" <jma5@umd.edu>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Norton Ghost crashes with page fault for me too.
Date: Wed, 15 Jun 2005 14:54:58 -0400 [thread overview]
Message-ID: <20050615185458.GA27722@jbrown.mylinuxbox.org> (raw)
In-Reply-To: <004301c571cf$e66ed7c0$334d21d1@organiza3bfb0e>
[-- Attachment #1: Type: text/plain, Size: 2285 bytes --]
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 <qemu-gtk-patch.diff" and "patch <vl.c.diff" Was I supposed to
> 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.
[-- Attachment #2: gdk_set_window_pointer.c --]
[-- Type: text/plain, Size: 1309 bytes --]
/* 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 <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <X11/X.h>
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 <gdk/gdk.h>
#include <gdk/gdkwin32.h>
#include <windows.h>
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
next prev parent reply other threads:[~2005-06-15 18:58 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-13 17:49 [Qemu-devel] Norton Ghost crashes with page fault for me too Jeff Wiegley
2005-06-14 2:37 ` jeebs
2005-06-14 13:43 ` Ishwar Rattan
2005-06-14 16:39 ` Henrik Nordstrom
2005-06-14 17:14 ` jeebs
2005-06-14 17:40 ` Henrik Nordstrom
2005-06-14 18:51 ` jeebs
2005-06-15 4:08 ` Herbert Poetzl
2005-06-14 20:27 ` Jim C. Brown
2005-06-14 20:54 ` [Qemu-devel] " Ronald
2005-06-14 21:15 ` [Qemu-devel] " jeebs
2005-06-14 22:18 ` Jim C. Brown
2005-06-14 23:02 ` jeebs
2005-06-15 9:23 ` Jernej Simončič
2005-06-15 17:30 ` jeebs
2005-06-15 13:36 ` Henrik Nordstrom
2005-06-14 21:46 ` [Qemu-devel] " Heike C. Zimmerer
2005-06-14 22:43 ` Jim C. Brown
2005-06-15 17:28 ` jeebs
2005-06-15 18:54 ` Jim C. Brown [this message]
2005-06-15 18:11 ` Heike C. Zimmerer
2005-06-14 16:30 ` [Qemu-devel] " Henrik Nordstrom
2005-06-14 17:11 ` jeebs
2005-06-15 13:20 ` Henrik Nordstrom
2005-06-14 13:54 ` Elefterios Stamatogiannakis
2005-06-14 15:45 ` Andreas Bollhalder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050615185458.GA27722@jbrown.mylinuxbox.org \
--to=jma5@umd.edu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).