* [Qemu-devel] QEMU without X11 support
@ 2017-10-12 20:25 hanji unit
2017-10-13 7:00 ` Gerd Hoffmann
0 siblings, 1 reply; 7+ messages in thread
From: hanji unit @ 2017-10-12 20:25 UTC (permalink / raw)
To: qemu-discuss, qemu-devel
Hello, is it possible to run (or rebuild modifying build flags) QEMU
without support for X11 window system integration? I keep seeing XSync
in libX11 being called, so i know QEMU is trying to talk to X. I am
running QEMU using Xvfb since I still need the SDL rendering to work.
Here is how i am running QEMU from a script:
export DISPLAY=:1
Xvfb :1 -screen 0 1024x768x16 &
Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU without X11 support
2017-10-12 20:25 [Qemu-devel] QEMU without X11 support hanji unit
@ 2017-10-13 7:00 ` Gerd Hoffmann
2017-10-13 16:08 ` Peter Maydell
2017-10-14 16:38 ` Philippe Mathieu-Daudé
0 siblings, 2 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2017-10-13 7:00 UTC (permalink / raw)
To: hanji unit, qemu-discuss, qemu-devel
On Thu, 2017-10-12 at 16:25 -0400, hanji unit wrote:
> Hello, is it possible to run (or rebuild modifying build flags) QEMU
> without support for X11 window system integration?
./configure --disable-gtk --disable-sdl --disable-opengl
cheers,
Gerd
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU without X11 support
2017-10-13 7:00 ` Gerd Hoffmann
@ 2017-10-13 16:08 ` Peter Maydell
2017-10-15 14:01 ` Michal Suchánek
2017-10-14 16:38 ` Philippe Mathieu-Daudé
1 sibling, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2017-10-13 16:08 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: hanji unit, qemu-discuss, QEMU Developers
On 13 October 2017 at 08:00, Gerd Hoffmann <kraxel@redhat.com> wrote:
> On Thu, 2017-10-12 at 16:25 -0400, hanji unit wrote:
>> Hello, is it possible to run (or rebuild modifying build flags) QEMU
>> without support for X11 window system integration?
>
> ./configure --disable-gtk --disable-sdl --disable-opengl
You can also use the runtime -display options (assuming
your development environment has the libraries
and your runtime environment has them installed, there's
no harm in having a QEMU that was built with gtk support
and not using the gtk UI.)
There are a couple of parts to this:
(1) does your guest OS require a graphics device?
(eg typically Windows does, ARM Linux will happily use
a serial port)
(2) if you do need a graphics device, where does the
output go?
(eg you can tell QEMU to just not show graphics at
all with -display none, use -display vnc to for a VNC
server, etc. Some of the -display options will use
X11, and some won't.)
(3) do you want to specifically avoid any dynamic
library dependency between QEMU and the X11 libs,
or do you just not want to have to use X11 to
display?
(see above about compiling out if necessary)
thanks
-- PMM
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU without X11 support
2017-10-13 7:00 ` Gerd Hoffmann
2017-10-13 16:08 ` Peter Maydell
@ 2017-10-14 16:38 ` Philippe Mathieu-Daudé
2017-10-14 17:18 ` Peter Maydell
1 sibling, 1 reply; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-10-14 16:38 UTC (permalink / raw)
To: Gerd Hoffmann, hanji unit, Peter Maydell; +Cc: qemu-discuss, qemu-devel
>> Hello, is it possible to run (or rebuild modifying build flags) QEMU
>> without support for X11 window system integration?
>
> ./configure --disable-gtk --disable-sdl --disable-opengl
Is there some interest in adding a simpler --disable-x11 option?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU without X11 support
2017-10-14 16:38 ` Philippe Mathieu-Daudé
@ 2017-10-14 17:18 ` Peter Maydell
0 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2017-10-14 17:18 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Gerd Hoffmann, hanji unit, qemu-discuss, QEMU Developers
On 14 October 2017 at 17:38, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>>> Hello, is it possible to run (or rebuild modifying build flags) QEMU
>>> without support for X11 window system integration?
>>
>> ./configure --disable-gtk --disable-sdl --disable-opengl
>
> Is there some interest in adding a simpler --disable-x11 option?
We don't directly link to X11, so it wouldn't fit with
our other options.
The --disable-foo options aren't very often necessary --
only if your build environment has support for linking
against foo but for some reason you don't want it
linked in.
thanks
-- PMM
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU without X11 support
2017-10-13 16:08 ` Peter Maydell
@ 2017-10-15 14:01 ` Michal Suchánek
2017-10-15 15:39 ` Paolo Bonzini
0 siblings, 1 reply; 7+ messages in thread
From: Michal Suchánek @ 2017-10-15 14:01 UTC (permalink / raw)
To: Peter Maydell; +Cc: Gerd Hoffmann, hanji unit, QEMU Developers, qemu-discuss
On Fri, 13 Oct 2017 17:08:49 +0100
Peter Maydell <peter.maydell@linaro.org> wrote:
> On 13 October 2017 at 08:00, Gerd Hoffmann <kraxel@redhat.com> wrote:
> > On Thu, 2017-10-12 at 16:25 -0400, hanji unit wrote:
> >> Hello, is it possible to run (or rebuild modifying build flags)
> >> QEMU without support for X11 window system integration?
> >
> > ./configure --disable-gtk --disable-sdl --disable-opengl
>
> You can also use the runtime -display options (assuming
> your development environment has the libraries
> and your runtime environment has them installed, there's
> no harm in having a QEMU that was built with gtk support
> and not using the gtk UI.)
>
> There are a couple of parts to this:
> (1) does your guest OS require a graphics device?
> (eg typically Windows does, ARM Linux will happily use
> a serial port)
> (2) if you do need a graphics device, where does the
> output go?
> (eg you can tell QEMU to just not show graphics at
> all with -display none, use -display vnc to for a VNC
> server, etc. Some of the -display options will use
> X11, and some won't.)
iirc you also need to specify -nographic so qemu does not try to use the
X11 GUI to display your serial output.
HTH
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU without X11 support
2017-10-15 14:01 ` Michal Suchánek
@ 2017-10-15 15:39 ` Paolo Bonzini
0 siblings, 0 replies; 7+ messages in thread
From: Paolo Bonzini @ 2017-10-15 15:39 UTC (permalink / raw)
To: Michal Suchánek, Peter Maydell
Cc: hanji unit, qemu-discuss, Gerd Hoffmann, QEMU Developers
On 15/10/2017 16:01, Michal Suchánek wrote:
>>> ./configure --disable-gtk --disable-sdl --disable-opengl
>> You can also use the runtime -display options (assuming
>> your development environment has the libraries
>> and your runtime environment has them installed, there's
>> no harm in having a QEMU that was built with gtk support
>> and not using the gtk UI.)
>>
>> There are a couple of parts to this:
>> (1) does your guest OS require a graphics device?
>> (eg typically Windows does, ARM Linux will happily use
>> a serial port)
>> (2) if you do need a graphics device, where does the
>> output go?
>> (eg you can tell QEMU to just not show graphics at
>> all with -display none, use -display vnc to for a VNC
>> server, etc. Some of the -display options will use
>> X11, and some won't.)
> iirc you also need to specify -nographic so qemu does not try to use the
> X11 GUI to display your serial output.
Right. -nographic's effects can be described in terms of other
command-line options, but it is pretty hairy. The effects fall in two
categories:
1) -nographic is a shortcut for "-display none -machine graphics=off"
2) it changes the default character device backend from "vc:80Cx24C"
(80x24 graphical console) to either "mon:stdio" or "stdio", except for
the parallel port whose default becomes simply "null".
Paolo
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-10-15 15:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-12 20:25 [Qemu-devel] QEMU without X11 support hanji unit
2017-10-13 7:00 ` Gerd Hoffmann
2017-10-13 16:08 ` Peter Maydell
2017-10-15 14:01 ` Michal Suchánek
2017-10-15 15:39 ` Paolo Bonzini
2017-10-14 16:38 ` Philippe Mathieu-Daudé
2017-10-14 17:18 ` Peter Maydell
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).