QEMU GUI
Hi,
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Regards,
Fabrice.
Great Idea...
This would be in c++ then, or do You fancy another wxWidget flavour? (I remember You did not like c++ in QEMU)
If people are interested, we could try to port Q as a base, since it's going to be obsolete anyway (either by the new QEMU GUI or leopard)... :)
http://www.kju-app.org
http://www.kju-app.org/proj (trac)
Mike
Quoted 15 lines · Fabrice Bellard
Hi,
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Regards,
Fabrice.
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 5 lines · Fabrice Bellard
Hi,
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
wx is nasty at best.
Signature · 4 lines
Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
Quoted 9 lines · Fabrice Bellard
Hi,
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Do you still want SDL to move out of the project ?
--
Christian
Hi,
Quoted 3 lines
If people are interested, we could try to port Q as a base, since it's going to be obsolete anyway (either by the new QEMU GUI or leopard)... :)
I would be in a GUI that is not specific to QEMU. e.g. Xen/VT, Basilisk II, SheepShaver, etc. ;-)
That could imply the use of an internal configs format with translators to suit various emulators. Some IPC could also be involved to communicate with the application for suspend, resume, fullscreen-switch, etc.
qt4 is also an interesting toolkit and the Open Source edition is available under the GPL license for Linux/Unix, MacOS X and even Windows.
Bye,
Gwenole.
Hi,
Quoted 3 lines
If people are interested, we could try to port Q as a base, since it's going to be obsolete anyway (either by the new QEMU GUI or leopard)... :)
I would be interested in a GUI that is not specific to QEMU. e.g. Xen/VT, Basilisk II, SheepShaver, etc. ;-)
That could imply the use of an internal configs format with translators to suit various emulators. Some IPC could also be involved to communicate with the application for suspend, resume, fullscreen-switch, etc.
qt4 is also an interesting toolkit and the Open Source edition is available under the GPL license for Linux/Unix, MacOS X and even Windows.
Bye,
Gwenole.
Quoted 3 lines · Fabrice Bellard
Hi,
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
I think the first step is to validate whether wxWidgets will be adequate. I've not used it myself but poked around the site a little. It appears there's a gl canvas which should be a reasonable place to start. It seems like overkill for QEMU though.
Does anyone know a wxWidget which provides direct pixel access to something that ends up being a XShmImage? If they're canvas uses a normal XImage performance is going to be pretty crappy.
Regards,
Anthony Liguori
Quoted 11 lines
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Regards,
Fabrice.
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 9 lines · On Thu, 22 Jun 2006 16:50:10 -0500 Anthony Liguori <[email protected]> wrote:
Quoted 5 lines · Fabrice Bellard
Hi,
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
I think the first step is to validate whether wxWidgets will be adequate.
Part of that should be to determine what the GUI will actually do; in particular should it "wrap" the guest window, or should it be a separate window for guest selection, configuration etc (which is my preference). The latter case should allow the guest window to remain SDL, with the guest selection/configuration stuff in wxWidgets.
Quoted 3 lines
I've not used it myself but poked around the site a
little. It appears there's a gl canvas which should be a reasonable place to start. It seems like overkill for QEMU though.
At this point you're talking about embedding the Qemu guest window directly into the wxWidgets GUI, yes? I'm thinking the primitives that the graphics driver in QEMU is emulating are not at the GL level, but at the raw hardware level - I don't know how far apart these things are, but I'd hazard that a GL canvas won't really help.
Quoted 3 lines
Does anyone know a wxWidget which provides direct pixel access to something that ends up being a XShmImage? If they're canvas uses a normal XImage performance is going to be pretty crappy.
I do think the ability to pass through accelerated graphics stuff from the guest to the host should be a big factor. I assume this is what the cirrus emulation currently does through SDL, to some extent at least. This issue would make or break guest graphics performance.
I'm ignorant of details, but from a vague hand-wavy distance it should be simple enough to retain SDL for the emulation windows (and SDL does seem to be the tool for the job there), with a separate wxWidgets frontend GUI to manage the launch and visibility of emulation windows, assist in guest creation etc.
Perhaps it's worth asking the WxWidgets people what they might suggest.
Quoted 23 lines
Regards,
Anthony Liguori
Quoted 5 lines
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Regards,
Quoted 7 lines
Fabrice.
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 1 line
Kevin F. Quinn
Quoted 1 line · Kevin F. Quinn
Part of that should be to determine what the GUI will actually do;
You're getting ahead of yourself. Just getting qemu to start with wxWidgets instead of SDL would be a big step in the right direction.
Quoted 6 lines
At this point you're talking about embedding the Qemu guest window directly into the wxWidgets GUI, yes? I'm thinking the primitives that the graphics driver in QEMU is emulating are not at the GL level, but at the raw hardware level - I don't know how far apart these things are, but I'd hazard that a GL canvas won't really help.
QEMU doesn't expose any real 2d acceleration to the drawing routines. Using GL canvas would be interesting though as you'd get hardware scaling with interpolation. That's a big performance win.
Quoted 5 lines
I do think the ability to pass through accelerated graphics stuff from the guest to the host should be a big factor. I assume this is what the cirrus emulation currently does through SDL, to some extent at least. This issue would make or break guest graphics performance.
Nope, currently SDL is used as one big bitmap viewer.
Quoted 4 lines
I'm ignorant of details, but from a vague hand-wavy distance it should be simple enough to retain SDL for the emulation windows (and SDL does seem to be the tool for the job there), with a separate wxWidgets
Bleh, why would you say that? SDL is pretty crappy on X. It's just a wrapper around XShmImage. You can access the same thing via GTK or any other reasonable toolkit.
SDL is mostly useful because of the number of backend drivers that it supports.
Regards,
Anthony Liguori
Quoted 40 lines
frontend GUI to manage the launch and visibility of emulation windows, assist in guest creation etc.
Perhaps it's worth asking the WxWidgets people what they might suggest.
Quoted 19 lines
Regards,
Anthony Liguori
Quoted 5 lines
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Regards,
Quoted 8 lines
Fabrice.
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-develQuoted 5 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel------------------------------------------------------------------------
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 13 lines · On Thu, 22 Jun 2006 20:53:54 -0500 Anthony Liguori <[email protected]> wrote:
Quoted 1 line · Kevin F. Quinn
Part of that should be to determine what the GUI will actually do;
You're getting ahead of yourself. Just getting qemu to start with wxWidgets instead of SDL would be a big step in the right direction.
Quoted 6 lines
At this point you're talking about embedding the Qemu guest window directly into the wxWidgets GUI, yes? I'm thinking the primitives that the graphics driver in QEMU is emulating are not at the GL level, but at the raw hardware level - I don't know how far apart these things are, but I'd hazard that a GL canvas won't really help.
Quoted 3 lines
QEMU doesn't expose any real 2d acceleration to the drawing routines. Using GL canvas would be interesting though as you'd get hardware scaling with interpolation. That's a big performance win.
And scaling the guest window would be really useful...
Quoted 8 lines
Quoted 5 lines
I do think the ability to pass through accelerated graphics stuff from the guest to the host should be a big factor. I assume this is what the cirrus emulation currently does through SDL, to some extent at least. This issue would make or break guest graphics performance.
Nope, currently SDL is used as one big bitmap viewer.
Quoted 8 lines
Quoted 4 lines
I'm ignorant of details, but from a vague hand-wavy distance it should be simple enough to retain SDL for the emulation windows (and SDL does seem to be the tool for the job there), with a separate wxWidgets
Bleh, why would you say that? SDL is pretty crappy on X. It's just a wrapper around XShmImage. You can access the same thing via GTK or any other reasonable toolkit.
Ok; my ignorance is shining through :) I thought SDL did a lot more than that.
Quoted 2 lines
SDL is mostly useful because of the number of backend drivers that it supports.
Had a rummage through the wxWidgets code. It uses SDL for sound support (or can do so, at any rate) but not for video. With the GTK backend you get an XShm image if XShm is supported (wxGTK asks GTK for GDK_IMAGE_FASTEST). I don't find any references to XShm in the x11 backend, so I guess the raw X11 backend doesn't use it. On X you'd normally go for the GTK backend anyway.
Quoted 22 lines
Regards,
Anthony Liguori
Quoted 18 lines
frontend GUI to manage the launch and visibility of emulation windows, assist in guest creation etc.
Perhaps it's worth asking the WxWidgets people what they might suggest.
Quoted 11 lines
Regards,
Anthony Liguori
Quoted 6 lines
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Regards,
Fabrice.
Signature · 1 line
Kevin F. Quinn
Quoted 3 lines
I would be interested in a GUI that is not specific to QEMU. e.g. Xen/VT, Basilisk II, SheepShaver, etc. ;-)
Gwenole, can you elaborate more on your comments above. Are your comments referring to having a GUI that can both run and manage several virtualization product (QEMU, XEN, etc) from one central GUI interface? If so, I had a similar thought on this BUT was not sure how possible this was. Would like to hear more on what your thoughts are on this. Anyone else thought and comments to this would be appreciated! -joe
Quoted 29 lines · [email protected] wrote:
Hi,
Quoted 4 lines
If people are interested, we could try to port Q as a base, since it's going to be obsolete anyway (either by the new QEMU GUI or leopard)... :)
I would be interested in a GUI that is not specific to QEMU. e.g. Xen/VT, Basilisk II, SheepShaver, etc. ;-)
That could imply the use of an internal configs format with translators to suit various emulators. Some IPC could also be involved to communicate with the application for suspend, resume, fullscreen-switch, etc.
qt4 is also an interesting toolkit and the Open Source edition is available under the GPL license for Linux/Unix, MacOS X and even Windows.
Bye,
Gwenole._______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 9 lines · Joe Lee
Quoted 3 lines
I would be interested in a GUI that is not specific to QEMU. e.g. Xen/VT, Basilisk II, SheepShaver, etc. ;-)
Gwenole, can you elaborate more on your comments above. Are your comments referring to having a GUI that can both run and manage several virtualization product (QEMU, XEN, etc) from one central GUI interface? If so, I had a similar thought on this BUT was not sure how possible this was. Would like to hear more on what your thoughts are on this. Anyone else thought and comments to this would be appreciated!
Its entirely feasible if you have a management API to use which supports the different virtualization backends. That would allow the GUI to be written to a single API, and yet control multiple systems like QEMU, Xen, etc. The libvirt project aims to provide such a backend API, currently supporting Xen, and a 'mock hypervisor' backend for testing purposes, and it would be very desirable to have backends to drive QEMU & VMWare systems. While the GUI would no doubt still have some differences in the area of hardware /device configuration the bulk of it could be shared by using the generic libvirt backend. I've got an early prototype of a Python/GTK based GUI for managing VMs via libvirt:
http://people.redhat.com/berrange/virt-manager/
So if anyone's interested in trying to put together a QEMU backend for
libvirt the project site is http://libvirt.org/
Regards,
Dan.
Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Daniel, thanks for your info and comments below. I really like the concept and work being done with virt-manager using the libvirt API. Question:
Is the virt-manager project run by Redhat or yourself?
In what OS platform will virt-manager run under (Windows, Linux, OS-X) - Essentially, how cross-platform is it? -joe
Quoted 24 lines · Daniel P. Berrange
Quoted 5 lines · Joe Lee
Quoted 3 lines
I would be interested in a GUI that is not specific to QEMU. e.g. Xen/VT, Basilisk II, SheepShaver, etc. ;-)
Gwenole, can you elaborate more on your comments above. Are your comments referring to having a GUI that can both run and manage several virtualization product (QEMU, XEN, etc) from one central GUI interface? If so, I had a similar thought on this BUT was not sure how possible this was. Would like to hear more on what your thoughts are on this. Anyone else thought and comments to this would be appreciated!
Its entirely feasible if you have a management API to use which supports
the different virtualization backends. That would allow the GUI to be written to a single API, and yet control multiple systems like QEMU, Xen, etc. The libvirt project aims to provide such a backend API, currently
supporting Xen, and a 'mock hypervisor' backend for testing purposes, and
it would be very desirable to have backends to drive QEMU & VMWare systems.
While the GUI would no doubt still have some differences in the area of
hardware /device configuration the bulk of it could be shared by using
the generic libvirt backend. I've got an early prototype of a Python/GTK based GUI for managing VMs via libvirt:http://people.redhat.com/berrange/virt-manager/
So if anyone's interested in trying to put together a QEMU backend for libvirt the project site is http://libvirt.org/
Regards,
Dan.
Quoted 4 lines · Joe Lee
Daniel, thanks for your info and comments below. I really like the concept and work being done with virt-manager using the libvirt API. Question:
Is the virt-manager project run by Redhat or yourself?
At the moment its just me working on it - I only put up those web pages a couple of days ago so there isn't anyone else involved. The project was initiated by Red Hat, but as with all our projects we welcome involvement / contribution / feedback from any community members.
Quoted 2 lines
In what OS platform will virt-manager run under (Windows, Linux, OS-X) - Essentially, how cross-platform is it?
My primary target at this time is Linux. The application is written in Python with libvirt and GTK / PyGTK being primary dependancies. All the GTK stuff is portable to Windows, and libvirt should be portable too. I'm not sure what GTK OS-X support is like though. So although I'm not testing it on anything other than Linux, it should be possible to make it portable if there were demand. I honestly couldn't estimate the work to port it though, not having any experiance developing for Windows / OS-X
Regards,
Dan.
Quoted 35 lines
-joe
Quoted 32 lines · Daniel P. Berrange
Quoted 10 lines · Joe Lee
Quoted 3 lines
I would be interested in a GUI that is not specific to QEMU. e.g. Xen/VT, Basilisk II, SheepShaver, etc. ;-)
Gwenole, can you elaborate more on your comments above. Are your comments referring to having a GUI that can both run and manage several virtualization product (QEMU, XEN, etc) from one central GUI interface? If so, I had a similar thought on this BUT was not sure how possible this was. Would like to hear more on what your thoughts are on this. Anyone else thought and comments to this would be appreciated!
Its entirely feasible if you have a management API to use which supports the different virtualization backends. That would allow the GUI to be written to a single API, and yet control multiple systems like QEMU, Xen, etc. The libvirt project aims to provide such a backend API, currently supporting Xen, and a 'mock hypervisor' backend for testing purposes, and it would be very desirable to have backends to drive QEMU & VMWare systems. While the GUI would no doubt still have some differences in the area of hardware /device configuration the bulk of it could be shared by using the generic libvirt backend. I've got an early prototype of a Python/GTK based GUI for managing VMs via libvirt:
http://people.redhat.com/berrange/virt-manager/
So if anyone's interested in trying to put together a QEMU backend for
libvirt the project site is http://libvirt.org/Regards,
Dan.
Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Quoted 8 lines · Christian MICHON
Quoted 6 lines · Fabrice Bellard
Hi,
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
Quoted 15 lines
Quoted 3 lines
If someone is interested, I am ready to try to include such a GUI in the QEMU repository even if it is not usable yet.
Do you still want SDL to move out of the project ?
Signature · 7 lines
Christian _______________________________________________ Qemu-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/qemu-devel
Wouldn't it be a good idea to separate SDL from the actual VM-parts?
If the VM were made as library with a well-defined API that could be either statically linked at compile-time or dynamically linked like a .dll at run-time, then there could be several flavors of GUI:s for different purposes and target systems and all still continuing to support and improve the same VM-core so that the project does not fork into several.
Those who need no graphic output at all (perhaps using Qemu for a vitual server, sandbox or honeypot) wouldn't have to link SDL or anything else, just using the Qemu-VM with minimum overhead and dependences.
Those who want SDL just statically link the SDL-interface code at compile time, similar to the situation today.
Those who want to make a Windows only GUI in Delphi could choose to load Qemu as a DLL at run-time.
Those who want a C++ GUI use either way and Qemu can still be C-code only (which is probably faster, more code-efficient and more compatible with other programming languages than turning Qemu into a C++ class - my quess).
If anyone (like me) would like to try for instance OpenGL as a replacement for SDL and try to implement true hardware assistance for the graphic card emulation it would probably be easier not having to hack up Qemu.
One interesting flavor of GUI could be MONO which should work on most platforms with the same source code and cross networks and still have good graphics performance on any machine having decent OpenGL drivers (which will be the common case soon with more OpenGL-friendly X-window implementations being introduced).
Regards
Dan Sandberg
Hi Luca,
Quoted 6 lines · Luca Barbato
Quoted 3 lines · Fabrice Bellard
Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs.
wx is nasty at best.
I'd be interested to know why you dislike it. I actually find it very nice to code in wx, much easier than GTK or MFC or raw Win32 API.
I do hope that Fabrice will not mind the wx GUI being written in C++, as I don't know Python, which seems to be the most popular scripting language binding for wx.
Cheers, Chris.
Signature · 4 lines
_ ___ __ _ / __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer | \ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
Quoted 2 lines · Chris Wilson
I'd be interested to know why you dislike it.
The library is incompatible with itself depending on the configure time options (see string constructors vs unicode string constructors)
Its ABI/API changes too often (ok, that is the result of they fixing lots of bugs that require radical changes, but they could haven't been on first place...)
Its architecture is a tad old.
Quoted 2 lines
I actually find it very
nice to code in wx, much easier than GTK or MFC or raw Win32 API.
Try Qt or ewl/etk if you don't like the default tcl/tk look, all 4 are quite nicer architecture-wise and less painful to be handled as dependence. MFC and winapi are surely worst than wx, gtk on the other hand is simple and relatively easy to learn.
The main/only point of wx is that mimics quite well some sort of native look&feel, and that is just nice if you have to handle windows users or idiotic managers.
Signature · 4 lines
Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
Hi Luca,
Not wishing to start an argument, just to learn:
Quoted 1 line · Luca Barbato
The library is incompatible with itself depending on the configure time options (see string constructors vs unicode string constructors)
It's perfectly possible to write code that compiles and works fine on Unicode and non-Unicode builds (with wxT() macros).
Quoted 1 line
Its ABI/API changes too often (ok, that is the result of they fixing lots of bugs that require radical changes, but they could haven't been on first place...)
Not sure about ABI changes, but as far as I can see, they work hard to avoid incompatible API changes in stable branches, e.g. wx 2.6.x.
Quoted 1 line
Its architecture is a tad old.
But if you change it, then you break backwards compatibility. You can't have it both ways. Besides, what's wrong with the "old" architecture?
Quoted 3 lines
Try Qt or ewl/etk if you don't like the default tcl/tk look, all 4 are quite nicer architecture-wise and less painful to be handled as dependence.
QT is only now free on Windows, and supports far fewer platforms than wx (no Mac support?). I personally don't like tcl as a language, and prefer to code in C++ for efficiency.
Quoted 2 lines
MFC and winapi are surely worst than wx, gtk on the other hand is simple and relatively easy to learn.
GTK is also specific to Unix (not Mac) and Windows, and looks weird on Windows, not very native.
Quoted 3 lines
The main/only point of wx is that mimics quite well some sort of native look&feel, and that is just nice if you have to handle windows users or idiotic managers.
Or platforms other than Windows and Unix.
Cheers, Chris.
Signature · 4 lines
_ ___ __ _ / __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer | \ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
Hi,
Quoted 2 lines · Chris Wilson
I personally don't like tcl as a language, and prefer to code in C++ for efficiency.
Hmmm. "C++" and "efficiency" _does_ constitute a contradiction. Just think "operator+()". Honestly, the most inefficient code I saw was done in C++. You really should get a weapon's license before coding in C++.
Quoted 2 lines
GTK is also specific to Unix (not Mac) and Windows, and looks weird on Windows, not very native.
Again, hmmm. I do not agree with that "weird" argument. It is no more weird than _every single_ Windows version completely changing the look&feel, let alone the location of menu items. And they still do not provide anything akin to a "Help", because "Windows help" sure does not deserve that name. Rather "Welcome to hell" or something similar.
An important point to make is, GTK is in C, which means that even Microsoft based compilers respect the same ABI as anyone else (that is probably the reason they advertise C++ and C#, and not C, even if everything they produce is still C compatible, which is very visible in their APIs). WxLib is in C++, which means you cannot link with g++ if the lib was compiled with MSVC, and vice-versa. Thank you very much.
Quoted 5 lines
Quoted 3 lines
The main/only point of wx is that mimics quite well some sort of native look&feel, and that is just nice if you have to handle windows users or idiotic managers.
Or platforms other than Windows and Unix.
If in doubt, take Java. At least starting with Mustang, it really does a great job pleasing anyone married to their particular platform's look&feel. Plus, Java code really runs everwhere without recompiling. As opposed to C#, I might add.
Ciao,
Dscho
In message: <Pine.LNX.4.63.0607080435400.29667@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <[email protected]> writes:
: > I personally don't like tcl as a language, and prefer to code in C++ for : > efficiency.
:
: Hmmm. "C++" and "efficiency" _does_ constitute a contradiction. Just think : "operator+()". Honestly, the most inefficient code I saw was done in C++. : You really should get a weapon's license before coding in C++.
You can hunt game or foot with C++. Only one will feed your family :-)
Warner
wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
For the record, we can use wxWidgets in qemu even though we can not use C++ in qemu (something that I would be strongly against).
Requiring this as a dependency would make it easier to deal with issues such as C++ ABI compatibility by avoiding the direct use of C++.
There's a QtC that I considered using for a Qt GUI for qemu.
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 11 lines · Jim C. Brown
For the record, we can use wxWidgets in qemu even though we can not use C++ in qemu (something that I would be strongly against).
Requiring this as a dependency would make it easier to deal with issues such as C++ ABI compatibility by avoiding the direct use of C++.
There's a QtC that I considered using for a Qt GUI for qemu.
How about WX using Python - Is that an option?
-joe
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 10 lines · Joe Lee
Quoted 9 lines · Jim C. Brown
For the record, we can use wxWidgets in qemu even though we can not use C++ in qemu (something that I would be strongly against).
Requiring this as a dependency would make it easier to deal with issues such as
C++ ABI compatibility by avoiding the direct use of C++.
Quoted 6 lines
Quoted 3 lines
There's a QtC that I considered using for a Qt GUI for qemu.
How about WX using Python - Is that an option?
-joe
Good question. I'm not aware of a way to call Python code from inside of C. I suppose if we could compile it into a shared library of some sort, that would do the trick. (I'm assuming the Python lib would compile into something that was callable externally using the C ABI, not the C++ ABI. If it's the latter then using Python would still be a bad idea.)
I'm of the opinion that it would just be easier to use wxc directly instead of trying to use a Python binding in a C project, though.
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 2 lines · On Sat, 8 Jul 2006 11:13:52 -0400 "Jim C. Brown" <[email protected]> wrote:
Good question. I'm not aware of a way to call Python code from inside of C.
See http://docs.python.org/ext/ext.html
However doing this just means yet another language dependency.
Signature · 1 line
Kevin F. Quinn
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
In reply to Jim C. Brown-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Jim C. Brown
For the record, we can use wxWidgets in qemu even though we can not use C++ in qemu (something that I would be strongly against).
Requiring this as a dependency would make it easier to deal with issues such as C++ ABI compatibility by avoiding the direct use of C++.
There's a QtC that I considered using for a Qt GUI for qemu.
Is wxC still under active development? The CVS version seems to be quite old, and I also couldn't find any documentation.
Generally it might be quite difficult to find a GUI toolkit with C bindings (besides GTK), as most toolkits seem to be targeted at an object-oriented language, and many go into the direction of script languages and "rapid application development".
So I think we should either just use GTK, or make Qemu ready for integration of C++ GUI code (and use one of the common GUI toolkits), or add an interface for external GUIs (and run the GUI as an external process, written in Python or Perl or the like).
Regards,
Oliver
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEsCLoTFOM6DcNJ6cRAp4dAJwPa7JW7JJzBkg3GnsP+XskTVtAPwCgzpr1 W9RuT6XdO66GtD8evBXfDKc=
=inA8
-----END PGP SIGNATURE-----
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 3 lines · Oliver Gerlich
Is wxC still under active development? The CVS version seems to be quite old, and I also couldn't find any documentation.
Well it wouldn't be the first unmaintained batch of code added to QEMU... Slirp is the example that comes to mind. In fact I think the QEMU developers are the de facto maintainers of the Slirp codebase.
Quoted 2 lines
So I think we should either just use GTK, or make Qemu ready for integration of C++ GUI code (and use one of the common GUI toolkits), or
It seems pretty clear that C++ is a non-starter.
Quoted 3 lines
add an interface for external GUIs (and run the GUI as an external process, written in Python or Perl or the like).
This is already possible via command line options and accessing the monitor via perl expect or python expect. Of course an API would be easier to use and less likely to break. I'd certainly prefer an out-of-process GUI to admitting C++.
I'm not sure what the issue is with just using GTK. That's what the nonpareil HP calculator emulator uses for the same reason: Eric dislikes C++.
-- John.
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 10 lines · John R.
Quoted 3 lines · Oliver Gerlich
Is wxC still under active development? The CVS version seems to be quite old, and I also couldn't find any documentation.
Well it wouldn't be the first unmaintained batch of code added to QEMU... Slirp is the example that comes to mind. In fact I think the QEMU developers are the de facto maintainers of the Slirp codebase.
I believe that it is still being used in other language bindings such as Eiffel, Haskell, or Ocaml.
Quoted 5 lines
Quoted 2 lines
So I think we should either just use GTK, or make Qemu ready for integration of C++ GUI code (and use one of the common GUI toolkits), or
It seems pretty clear that C++ is a non-starter.
Quoted 9 lines
Quoted 3 lines
add an interface for external GUIs (and run the GUI as an external process, written in Python or Perl or the like).
This is already possible via command line options and accessing the monitor via perl expect or python expect. Of course an API would be easier to use and less likely to break. I'd certainly prefer an out-of-process GUI to admitting C++.
I agree with you here.
Quoted 4 lines
I'm not sure what the issue is with just using GTK. That's what the nonpareil HP calculator emulator uses for the same reason: Eric dislikes C++.
Mainly that GTK works only on X and Windows, and that it lacks native Windows widgets.
Quoted 8 lines
-- John.
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
In reply to John R.Quoted 6 lines · John R.
Quoted 3 lines · Oliver Gerlich
Is wxC still under active development? The CVS version seems to be quite old, and I also couldn't find any documentation.
Quoted 8 lines
Well it wouldn't be the first unmaintained batch of code added to QEMU... Slirp is the example that comes to mind. In fact I think the QEMU developers are the de facto maintainers of the Slirp codebase.
Quoted 2 lines
So I think we should either just use GTK, or make Qemu ready for integration of C++ GUI code (and use one of the common GUI toolkits), or
It seems pretty clear that C++ is a non-starter.
I don't think so. I think the real goal here should be to decide: what are the required features for a Qemu GUI that meets a broad range of needs, and what would be the fastest and most maintainable way to code them? Surely the integration with the Qemu backend would still be decoupled enough that you could compile Qemu without the GUI using only C if you wanted to?
David
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
I know this is a lot different than the discussion so far, but has anyone considered keeping SDL and using an SDL GUI similar to ZSNES? Take a look (for those not familiar) at http://www.zsnes.com and grab a download. Many Linux distro package managers have it also. You don't need a SNES ROM to look at the GUI. It looks like it would be hard to borrow even though it's GPL (parts are in ASM...) but I thought I'd bounce the idea off of the list.
Jason
Quoted 28 lines · David Fraser
Quoted 4 lines · John R.
Quoted 2 lines · Oliver Gerlich
Is wxC still under active development? The CVS version seems to be quite old, and I also couldn't find any documentation.
Quoted 8 lines
Well it wouldn't be the first unmaintained batch of code added to QEMU... Slirp is the example that comes to mind. In fact I think the QEMU developers are the de facto maintainers of the Slirp codebase.
Quoted 2 lines
So I think we should either just use GTK, or make Qemu ready for integration of C++ GUI code (and use one of the common GUI toolkits), or
It seems pretty clear that C++ is a non-starter.
I don't think so. I think the real goal here should be to decide: what are the required features for a Qemu GUI that meets a broad range of needs, and what would be the fastest and most maintainable way to code them? Surely the integration with the Qemu backend would still be decoupled enough that you could compile Qemu without the GUI using only C if you wanted to?
David
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 2 lines · Jason Gress
I know this is a lot different than the discussion so far, but has anyone considered keeping SDL and using an SDL GUI similar to ZSNES?
I did not check the source code, but it looks just like any other self-made bitmap-based SDL menu I have seen. It is like inventing yet another GUI toolkit.
I am new around here, so I am a bit confused. What is this GUI all about? Is it about (a) replacing SDL with something else for drawing the contents of the window, or (b) providing GUI for configuring virtual machine options, just like numerous front-ends already do?
I assume this is (a), as it is beyond me why would anyone want to do (b), when there already are front-ends for Windows, KDE, GTK+, Java, MacOS, etc.
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 10 lines · Linas Žvirblis
Quoted 1 line · Jason Gress
I know this is a lot different than the discussion so far, but has anyone considered keeping SDL and using an SDL GUI similar to ZSNES?
I did not check the source code, but it looks just like any other self-made bitmap-based SDL menu I have seen. It is like inventing yet another GUI toolkit.
Quoted 9 lines
I am new around here, so I am a bit confused. What is this GUI all about? Is it about (a) replacing SDL with something else for drawing the contents of the window, or (b) providing GUI for configuring virtual machine options, just like numerous front-ends already do?
I assume this is (a), as it is beyond me why would anyone want to do (b), when there already are front-ends for Windows, KDE, GTK+, Java, MacOS, etc.
Personally, I'd be interested to have a GUI for controlling a running Qemu instance: change CD-ROM, add/remove USB devices, save/restore VM snapshots (though this would also require to save/restore disk snapshots), and eg. provide buttons to switch between guest Virtual Terminals. Furthermore, I'd like to get information like guest CPU usage and guest hard disk access; this would probably require that the GUI is integrated into Qemu. Whether actual graphics output is done via SDL or GTK or something else is probably not that important.
Configuration could still be done with the current command line flags, but if one of the many config GUIs could be integrated into Qemu, that might be useful as well.
Regards,
Oliver
Re: wxWidgets and C: was Re: [Qemu-devel] QEMU GUI
Quoted 5 lines · Oliver Gerlich
Personally, I'd be interested to have a GUI for controlling a running Qemu instance: change CD-ROM, add/remove USB devices, save/restore VM snapshots (though this would also require to save/restore disk snapshots), and eg. provide buttons to switch between guest Virtual Terminals.
Already exists at <http://qemuctl.sourceforge.net/>. I am not sure if it is developed anymore, but I am going to integrate it into my own project, in the nearest future.
Quoted 3 lines
Furthermore, I'd like to get information like guest CPU usage and guest hard disk access; this would probably require that the GUI is integrated into Qemu.
Not if this data is available via monitor. And I certainly want it to be, as this is one of the coolest features.
Quoted 3 lines
Configuration could still be done with the current command line flags, but if one of the many config GUIs could be integrated into Qemu, that might be useful as well.
None of them (at least the ones I know) are written in C, so integrating them _into_ QEMU is not really possible. And I absolutely fail to see the reason for doing so.
If there is a need for an official GUI, choose one, write yet another, but, please, do not enforce things on users. The current situation works quite well for projects like cdrtools so why should it not work for QEMU?
Quoted 4 lines · Chris Wilson
QT is only now free on Windows, and supports far fewer platforms than wx (no Mac support?). I personally don't like tcl as a language, and prefer to code in C++ for efficiency.
qt/mac exists.
Quoted 3 lines
GTK is also specific to Unix (not Mac) and Windows, and looks weird on Windows, not very native.
gtk/cocoa exists.
Quoted 2 lines
Or platforms other than Windows and Unix.
name them, macosx has X and cocoa mostly supported by major toolkits. tk+tile works everywhere and is also looking good.
=)
lu
Signature · 4 lines
Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
[Qemu-devel] Insert module into kernel
Hi all,
I want to simulate the ARM system and add a simple simulated device with its corresponding module device driver. So:
1. I must run the command "insmod" to insert this module into kernel. But there is not this command in the ARM Linux shell
2. I must run the command "mknod" to make a file (exp: /dev/my_simulated_device) corresponding to the simulated device. But this command is not run because the "read only" property of file system.
3. I must make a small program in which I open the file by the command "fopen("/dev/my_simulated_device","w")" but I think that I have the problem as in the question 2 Do you have any idea?
Thanks
Tieu
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
Re: [Qemu-devel] Insert module into kernel
Quoted 11 lines · Tieu Ma Dau
Hi all,
I want to simulate the ARM system and add a simple simulated device with
its corresponding module device driver. So:
1. I must run the command "insmod" to insert this module into kernel. But there is not this command in the ARM Linux shell
2. I must run the command "mknod" to make a file
(exp:/dev/my_simulated_device) corresponding to the simulated device. But this command is not run because the "read only" property of file system.
3. I must make a small program in which I open the file by the command "fopen("/dev/my_simulated_device","w")" but I think that I have the problem as in the question 2 Do you have any idea?
None of these problems have anything to do with qemu. They are problems with your root FS. Qemu works exactly the same way as a real Arm machine.
The arm_test image on the qemu website is a minimal cut-down test/demo system. It is not not intended to be a full general purpose linux system. Sounds like you need to get yourself a proper linux install. The Debian installers work pretty much out the box.
If you already are using a different linux distro, you need to contact whoever supplied it.
Paul
Re: [Qemu-devel] Insert module into kernel
Hi,
I tried your instruction as below:
+ Download the installer Debian Sarge 3.1r0 on FreeOSZoo project: http://free.oszoo.org/download.php
+ Run the ARM simulated system with the command: " ./qemu-system-arm -kernel my_own_2.6_compiled_kernel sarge.img "
+ But I got the error:
"
VFS: Unable to mount root fs via NFS, trying floppy
VFS: Cannot open root device "<NULL>" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
"
The error arrives because this installer is only used for x86, not for ARM? or because I used wrong this installer? or the installer which Paul introduced is not the Debian Sarge on FreeOSZoo prj website? Do you have any idea?
Tieu
Quoted 11 lines · Tieu Ma Dau
Hi all,
I want to simulate the ARM system and add a simple simulated device with
its corresponding module device driver. So:
1. I must run the command "insmod" to insert this module into kernel. But there is not this command in the ARM Linux shell
2. I must run the command "mknod" to make a file
(exp:/dev/my_simulated_device) corresponding to the simulated device. But this command is not run because the "read only" property of file system.
3. I must make a small program in which I open the file by the command "fopen("/dev/my_simulated_device","w")" but I think that I have the problem as in the question 2 Do you have any idea?
None of these problems have anything to do with qemu. They are problems with your root FS. Qemu works exactly the same way as a real Arm machine.
The arm_test image on the qemu website is a minimal cut-down test/demo system. It is not not intended to be a full general purpose linux system. Sounds like you need to get yourself a proper linux install. The Debian installers work pretty much out the box.
If you already are using a different linux distro, you need to contact whoever supplied it.
Paul
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com