Does a comprehensive set of instructions on how to compile Libvirt on a Microsoft Vista platform exist? Has this ever been accomplished? I would very much appreciate input from persons who can give me confidence that a Windows client application can be developed on top of Libviet that connects to a QEMU system on an Ubuntu server. The Libvirt Windows Support page (http://libvirt.org/windows.html) implies the exercise is trivial. Over the last three weeks of failure I have come to find this assertion extremely amusing. Tim McLeod Simulamen Limited Registered in England No: 7133731 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100419/f500195b/attachment.htm>
Does a comprehensive set of instructions on how to compile Libvirt on a Microsoft Vista platform exist? Has this ever been accomplished? I would very much appreciate input from persons who can give me confidence that a Windows client application can be developed on top of Libvirt that connects to a QEMU system on an Ubuntu server. The Libvirt Windows Support page (http://libvirt.org/windows.html) implies the exercise is trivial. Over the last three weeks of failure I have come to find this assertion extremely amusing. Tim McLeod Simulamen Limited Registered in England No: 7133731 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100419/12235c27/attachment.htm>
2010/4/19 Tim McLeod <tim.mcleod at simulamen.eu>:> Does a comprehensive set of instructions on how to compile Libvirt on a > Microsoft Vista platform exist?? Has this ever been accomplished?? I would > very much appreciate input from persons who can give me confidence that a > Windows client application can be developed on top of Libviet that connects > to a QEMU system on an Ubuntu server.? The Libvirt Windows Support page > (http://libvirt.org/windows.html) implies the exercise is trivial.? Over the > last three weeks of failure I have come to find this assertion extremely > amusing. >Compiling libvirt for Windows in not very well documented. You can use the mingw32 cross-compile toolchain provided by Fedora. I think several people build libvirt for Windows this way. Another option is to use MinGW and MSYS on Windows to compile libvirt for Windows. I did that successfully. So before I start to describe the setup/compilation process and so on... could you describe what your current setup looks like and what problems you're facing? Matthias
[Let's keep the list involved] 2010/4/20 Tim McLeod <tim.mcleod at simulamen.eu>:> Matthias, > > Thank you for the swift response. ?Now, the current state is the result of following the instructions found a la Web in the attached 'print to PDF' file. ?Situation as follows: > > 1. ?MinGW. ?MinGW-5.1.4.exe installed without error; no issues. > 2. ?MSYS. ?Failed to locate the executable MSYS-1.0.11-2004.04.30-1.exe, but MSYS-1.0.11.exe did install without error. > 3. ?msysDTK. ?msysDTK-1.0.1.exe installed without error; no issues. > 4. ?GTK. ?gtk-dev-2.12.9-win32-2.exe installed without error; no issues. > 5. ?M4. ?Failed to locate compressed file m4-1.4.7-MSYS.tar.bz2, used m4-1.4.13-1-msys-1.0.11-bin.tar.lzma instead. ?Did not understand instruction to extract to the 'root' folder but instead replaced the original M4.exe found in C:\MSYS\1.0\bin with the M4.exe found in the lzma file. > 6. ?Autoconf. ?Failed to 'make' source found in autoconf-2.62.tar.gz due to a '[m4sugar.m4f] Error 1' error, but following a reference found on the Web to this error not occurring in autoconf-2.52.tar.gz, successfully 'made' and installed this version. ?When moving on to step 7, Automake, compilation failed since autoconf 2.6 or newer was required. ?However, autoconf-2.60.tar.gz failed with the 'm4sugar.m4f' error in the same way as v2.62. > > Brick wall; sore head! ?As I'm sure you have guessed my background is MS Windows rather than Linux so I am finding these. Probably minor issues to you, extremely daunting and frustrating to me. ?I am encouraged that you have successfully compiled a Windows Libvirt client, hope you can point me in the right direction. ?Many thanks... > > Tim >Okay, so the problem is setting up a working MinGW/MSYS environment. You used the instructions posted here: https://www.redhat.com/archives/libvir-list/2008-June/msg00145.html I didn't try that, but I wrote a set of scripts to automate the MinGW/MSYS setup and libvirt compliation on Windows. I'll clean them up a bit and post them, so you can try to use them. Probably we should also improve http://libvirt.org/windows.html with more details. Matthias
Ah, sorry. I've the scripts at hand. I just forgot to post them. I attached the scripts and added a readme file. I tested this on Windows XP, but it should work without problem on Windows Vista too. The scripts could still be improved, for example gathering all relevant files for a libvirt Windows SDK into a separate directory would be nice. If you have any problems or questions with/about this scripts please report/ask them. PS: You'll need to rename setup_msys.bat_ to setup_msys.bat. Matthias 2010/4/26 Tim McLeod <tim.mcleod at simulamen.eu>:> Matthias, > > Polite enquiry on the progress of tidying up scripts to automate the MinGW/MSYS setup and libvirt compilation on Windows, if I may? ?Not meaning to appear impatient, but I would like to give my client some indication of when I can meet my deliverables. ?Many thanks... > > Tim > > -----Original Message----- > From: Matthias Bolte [mailto:matthias.bolte at googlemail.com] > Sent: 21 April 2010 08:14 > To: tim.mcleod at simulamen.eu > Cc: libvirt-users at redhat.com > Subject: Re: [libvirt-users] Libvirt Compilation on MS Vista > > [Let's keep the list involved] > > 2010/4/20 Tim McLeod <tim.mcleod at simulamen.eu>: >> Matthias, >> >> Thank you for the swift response. ?Now, the current state is the result of following the instructions found a la Web in the attached 'print to PDF' file. ?Situation as follows: >> >> 1. ?MinGW. ?MinGW-5.1.4.exe installed without error; no issues. >> 2. ?MSYS. ?Failed to locate the executable MSYS-1.0.11-2004.04.30-1.exe, but MSYS-1.0.11.exe did install without error. >> 3. ?msysDTK. ?msysDTK-1.0.1.exe installed without error; no issues. >> 4. ?GTK. ?gtk-dev-2.12.9-win32-2.exe installed without error; no issues. >> 5. ?M4. ?Failed to locate compressed file m4-1.4.7-MSYS.tar.bz2, used m4-1.4.13-1-msys-1.0.11-bin.tar.lzma instead. ?Did not understand instruction to extract to the 'root' folder but instead replaced the original M4.exe found in C:\MSYS\1.0\bin with the M4.exe found in the lzma file. >> 6. ?Autoconf. ?Failed to 'make' source found in autoconf-2.62.tar.gz due to a '[m4sugar.m4f] Error 1' error, but following a reference found on the Web to this error not occurring in autoconf-2.52.tar.gz, successfully 'made' and installed this version. ?When moving on to step 7, Automake, compilation failed since autoconf 2.6 or newer was required. ?However, autoconf-2.60.tar.gz failed with the 'm4sugar.m4f' error in the same way as v2.62. >> >> Brick wall; sore head! ?As I'm sure you have guessed my background is MS Windows rather than Linux so I am finding these. Probably minor issues to you, extremely daunting and frustrating to me. ?I am encouraged that you have successfully compiled a Windows Libvirt client, hope you can point me in the right direction. ?Many thanks... >> >> Tim >> > > Okay, so the problem is setting up a working MinGW/MSYS environment. > You used the instructions posted here: > https://www.redhat.com/archives/libvir-list/2008-June/msg00145.html > > I didn't try that, but I wrote a set of scripts to automate the > MinGW/MSYS setup and libvirt compliation on Windows. I'll clean them > up a bit and post them, so you can try to use them. > > Probably we should also improve http://libvirt.org/windows.html with > more details. > > Matthias > >-------------- next part -------------- A non-text attachment was scrubbed... Name: libvirt_mingw_scripts.zip Type: application/zip Size: 9185 bytes Desc: not available URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100427/66ac4635/attachment.zip>