qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu
@ 2008-09-13  1:08 Anthony Liguori
  2008-09-13  7:19 ` Hervé Poussineau
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Anthony Liguori @ 2008-09-13  1:08 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

I'm not really sure where /c/Program Files/Qemu comes from.  Cygwin 
would use /cygdrive/c/Program Files/Qemu and mingw32 would use 
c:\\Program Files\\Qemu.

Changing it to the later seems like what it should be.  Does the current 
default BIOS path actually work for anyone?  If so, what are you 
building QEMU with?

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu
  2008-09-13  1:08 [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu Anthony Liguori
@ 2008-09-13  7:19 ` Hervé Poussineau
  2008-09-13  7:49 ` Mark Cave-Ayland
  2008-09-13 11:20 ` Eduardo Felipe
  2 siblings, 0 replies; 6+ messages in thread
From: Hervé Poussineau @ 2008-09-13  7:19 UTC (permalink / raw)
  To: qemu-devel

Hello,

Anthony Liguori a écrit :
> I'm not really sure where /c/Program Files/Qemu comes from.  Cygwin 
> would use /cygdrive/c/Program Files/Qemu and mingw32 would use 
> c:\\Program Files\\Qemu.
> 
> Changing it to the later seems like what it should be.  Does the current 
> default BIOS path actually work for anyone?  If so, what are you 
> building QEMU with?

Indeed, default path doesn't work for me either.
However, I'm using "-L ." 99% of the times to search BIOS files in the 
same dir as QEMU executable.

Hervé

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu
  2008-09-13  1:08 [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu Anthony Liguori
  2008-09-13  7:19 ` Hervé Poussineau
@ 2008-09-13  7:49 ` Mark Cave-Ayland
  2008-09-13 14:44   ` Anthony Liguori
  2008-09-13 11:20 ` Eduardo Felipe
  2 siblings, 1 reply; 6+ messages in thread
From: Mark Cave-Ayland @ 2008-09-13  7:49 UTC (permalink / raw)
  To: qemu-devel

Anthony Liguori wrote:
> I'm not really sure where /c/Program Files/Qemu comes from.  Cygwin 
> would use /cygdrive/c/Program Files/Qemu and mingw32 would use 
> c:\\Program Files\\Qemu.

I've not tried building the Windows BIOS myself, however /c/Program 
Files/Qemu is a MingW/MSYS path (where the default MSYS bash shell 
provides UNIX-like paths in this format).


HTH,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu
  2008-09-13  1:08 [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu Anthony Liguori
  2008-09-13  7:19 ` Hervé Poussineau
  2008-09-13  7:49 ` Mark Cave-Ayland
@ 2008-09-13 11:20 ` Eduardo Felipe
  2 siblings, 0 replies; 6+ messages in thread
From: Eduardo Felipe @ 2008-09-13 11:20 UTC (permalink / raw)
  To: qemu-devel

2008/9/13 Anthony Liguori <anthony@codemonkey.ws>
>
> I'm not really sure where /c/Program Files/Qemu comes from.  Cygwin would use /cygdrive/c/Program Files/Qemu and mingw32 would use c:\\Program Files\\Qemu.
>
> Changing it to the later seems like what it should be.  Does the current default BIOS path actually work for anyone?  If so, what are you building QEMU with?

Hi,

Default path doesn't work for me either. Running qemu from MSYS
doesn't make any difference.

If this is going to change, maybe it's better to try some kind of
getenv("ProgramFiles") before defaulting back to c:\\Program Files.

Same applies to other hardcoded directories in qemu, like
/tmp/qemu.log, which uses the drive you invoke qemu from, whereas
-snapshots writes to the directory pointed by the %TMP% environment
variable. I think these two should be coherent, and maybe even
user-definable.

Regards,
Edu.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu
  2008-09-13  7:49 ` Mark Cave-Ayland
@ 2008-09-13 14:44   ` Anthony Liguori
  2008-10-13  9:22     ` Mark Cave-Ayland
  0 siblings, 1 reply; 6+ messages in thread
From: Anthony Liguori @ 2008-09-13 14:44 UTC (permalink / raw)
  To: qemu-devel

Mark Cave-Ayland wrote:
> Anthony Liguori wrote:
>> I'm not really sure where /c/Program Files/Qemu comes from.  Cygwin 
>> would use /cygdrive/c/Program Files/Qemu and mingw32 would use 
>> c:\\Program Files\\Qemu.
>
> I've not tried building the Windows BIOS myself, however /c/Program 
> Files/Qemu is a MingW/MSYS path (where the default MSYS bash shell 
> provides UNIX-like paths in this format).

Are you absolutely positive?  Have you confirmed this?  If so, on what 
version of mingw32/msys?

As I said, I've tried this on mingw and it doesn't work.

Regards,

Anthony Liguori

>
>
> HTH,
>
> Mark.
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu
  2008-09-13 14:44   ` Anthony Liguori
@ 2008-10-13  9:22     ` Mark Cave-Ayland
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Cave-Ayland @ 2008-10-13  9:22 UTC (permalink / raw)
  To: qemu-devel

Anthony Liguori wrote:
> Mark Cave-Ayland wrote:
>> Anthony Liguori wrote:
>>> I'm not really sure where /c/Program Files/Qemu comes from.  Cygwin 
>>> would use /cygdrive/c/Program Files/Qemu and mingw32 would use 
>>> c:\\Program Files\\Qemu.
>>
>> I've not tried building the Windows BIOS myself, however /c/Program 
>> Files/Qemu is a MingW/MSYS path (where the default MSYS bash shell 
>> provides UNIX-like paths in this format).
> 
> Are you absolutely positive?  Have you confirmed this?  If so, on what 
> version of mingw32/msys?
> 
> As I said, I've tried this on mingw and it doesn't work.
> 
> Regards,
> 
> Anthony Liguori


Hi Anthony,

Firstly, apologies for the long delay on this one - I've been away for a 
considerable part of this month and I'm afraid this fell off the radar.

MSYS is really just a port of the GNU toolchain to the Windows platform 
so that autoconf and friends can be run. So MSYS allows paths of the 
form /c/Program Files/Qemu to be used with various build tools that 
don't like \s or :s within filenames.

However, the compiled executables run using the standard MS MSVCRT.DLL 
runtime DLL which of course only allows standard Windows paths of the 
form "C:\Program Files\Qemu". So in short, if the above path is needed 
as part of the build process then it will be fine since MSYS will map 
the paths for you; however if it is needed at runtime (i.e. the full 
path is embedded as a string within an executable) then you need to use 
the standard Windows since the MS runtime won't understand it.

I did have a look at SVN trunk and it appears that bios_dir is set to be 
equal to CONFIG_QEMU_SHAREDIR; so yes for this to work at runtime it 
needs to be specified in standard Windows path format. However, you'd 
need to check that doing this wouldn't break the build for MingW elsewhere.


HTH,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-13  9:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-13  1:08 [Qemu-devel] [RFC] Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu Anthony Liguori
2008-09-13  7:19 ` Hervé Poussineau
2008-09-13  7:49 ` Mark Cave-Ayland
2008-09-13 14:44   ` Anthony Liguori
2008-10-13  9:22     ` Mark Cave-Ayland
2008-09-13 11:20 ` Eduardo Felipe

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).