Skip to contentSkip to conversation

Windows host: -redir flag, console output, -nographic

Qemu-devel André Braga 2 participants 6 messages Oct 11, 2004

lore
Share & tools
lore
#0 lore raw

If I specify -user-net -redir tcp:6000::6001 (as per the example on the documentation; just wanted to test whether Cygwin X11 would be much faster than X11 under the emulator), QEMU refuses to start.

And since console output (command window) on Windows is broken for quite some time now (since mid-August, I guess; does it have anything to do with linking flags passed to SDL?), qemu -h or any other error messages simply won't show up...

Finally, because I was running an external X11 server, I tried the -nographic flag, to no avail.

Could anyone look those up?

Signature · 2 lines
"A year spent in artificial intelligence is enough to make one believe in God"
Alan J. Perlis
#1 lore raw

Le Mon, 11 Oct 2004 14:52:40 -0300, André Braga a écrit :

Quoted 4 lines

If I specify -user-net -redir tcp:6000::6001 (as per the example on the documentation; just wanted to test whether Cygwin X11 would be much faster than X11 under the emulator), QEMU refuses to start.

I don't use cygwin, sorry if it seems a dumb question. Are you launching X11 server before qemu? If tcp/6000 is already bound on host side, could this prevent qemu to start?

Quoted 9 lines

And since console output (command window) on Windows is broken for quite some time now (since mid-August, I guess; does it have anything to do with linking flags passed to SDL?), qemu -h or any other error messages simply won't show up...

Finally, because I was running an external X11 server, I tried the -nographic flag, to no avail.

Could anyone look those up?

#2 lore raw
Quoted 3 lines · Ronald

I don't use cygwin, sorry if it seems a dumb question. Are you launching X11 server before qemu? If tcp/6000 is already bound on host side, could this prevent qemu to start?

Now I'm feeling stupid ;D

Sorry. Still, the console and -nographic are broken as described. If QEMU ever attempted to tell me that the port was in use, I never got the message...

Cheers,
A.

Signature · 2 lines
"A year spent in artificial intelligence is enough to make one believe in God"
Alan J. Perlis
#3 lore raw

Le Mon, 11 Oct 2004 15:34:35 -0300, André Braga a écrit :

Quoted 11 lines · Ronald
Quoted 3 lines

I don't use cygwin, sorry if it seems a dumb question. Are you launching X11 server before qemu? If tcp/6000 is already bound on host side, could this prevent qemu to start?

Now I'm feeling stupid ;D

Sorry. Still, the console and -nographic are broken as described. If QEMU ever attempted to tell me that the port was in use, I never got the message...

For stdout I think the only way is to redirect output to a file, I know this work for text output like help(perhaps it depends on SDL redirection support). Windows has a something particular, a gui application don't have a console with stdio attached by default, I remember there was a patch to implement console support, kazu's qemu for windows used it.

Quoted 3 lines

Cheers,
A.

#4 lore raw
Quoted 5 lines · Ronald

For stdout I think the only way is to redirect output to a file, I know this work for text output like help(perhaps it depends on SDL redirection support). Windows has a something particular, a gui application don't have a console with stdio attached by default, I remember there was a patch to implement console support, kazu's qemu for windows used it.

Hmm, that's what I meant by "SDL linking flag"...

Maybe this is blocking -nographic?

So I guess everything is there, except that I'll have to enable them manually. Time to ressurrect my building environment on Windows... *sigh*

Still, I don't think this is correct behavior. Not opening the initial console causes QEMU on Windows not to:
1) display console output in case of option misuse, or -h
2) support -nographic

which is evil.

cheers,
A.

Signature · 2 lines
"A year spent in artificial intelligence is enough to make one believe in God"
Alan J. Perlis
#5 lore raw

Le Mon, 11 Oct 2004 16:06:06 -0300, André Braga a écrit :

Quoted 12 lines · Ronald
Quoted 6 lines

For stdout I think the only way is to redirect output to a file, I know this work for text output like help(perhaps it depends on SDL redirection support). Windows has a something particular, a gui application don't have a console with stdio attached by default, I remember there was a patch to implement console support, kazu's qemu for windows used it.

Hmm, that's what I meant by "SDL linking flag"...

Maybe this is blocking -nographic?

Quoted 9 lines

So I guess everything is there, except that I'll have to enable them manually. Time to ressurrect my building environment on Windows... *sigh*

Still, I don't think this is correct behavior. Not opening the initial console causes QEMU on Windows not to: 1) display console output in case of option misuse, or -h 2) support -nographic

which is evil.

I don't know if qemu will works like this, but just to see I've build qemu.exe without the -mwindows flag (like indicated in the patch), qemu -h print the help on the dos prompt.

Quoted 3 lines

cheers,
A.