Changing default Windows BIOS path from /c/Program Files/Qemu to c:\\Program Files\\Qemu
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
Hello,
Quoted 3 lines · Anthony Liguori
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é
Quoted 1 line · Anthony Liguori
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.
Signature · 4 lines
Mark Cave-Ayland Sirius Corporation - The Open Source Experts http://www.siriusit.co.uk T: +44 870 608 0063
Quoted 4 lines · Mark Cave-Ayland
Quoted 1 line · Anthony Liguori
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
Quoted 6 lines
HTH,
Mark.
Quoted 6 lines · Anthony Liguori
Quoted 4 lines · Mark Cave-Ayland
Quoted 1 line · Anthony Liguori
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).
Quoted 7 lines
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.
Signature · 4 lines
Mark Cave-Ayland Sirius Corporation - The Open Source Experts http://www.siriusit.co.uk T: +44 870 608 0063
2008/9/13 Anthony Liguori <[email protected]>
Quoted 4 lines
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.