Richard W.M. Jones
2021-Jul-17 06:15 UTC
[Libguestfs] [libguestfs/nbdkit] Building Windows Binaries (#14)
On Fri, Jul 16, 2021 at 03:12:42PM -0700, Nathan Shearer wrote:> I am trying to build some windows binaries of nbdkit as I have some files on a > windows host that I need to exported as nbd block devices to another system. > > I first attempted to configure and build nbdkit under cygwin with these > packages installed on a windows 10 computer: > > ? automake 11-1 > ? gcc-core 10.2.0-1 > ? gcc-g++ 10.2.0-1 > ? libtool 2.4.6-7 > ? make 4.3-1 > ? pkg-config 1.6.3-1 > > The autoconf and configure steps work fine, however it fails during the make > step due to some compile-time bugs in the code relating to conflicting > definitions in some included headers. > > Can you please include some more detail on how to cross-compile windows > binaries of nbdkit, on a linux host. I assume your document is referring to > debian/ubuntu? If you used a different distro please include that too as it > will help me reproduce the process.I've only built nbdkit using mingw (not cygwin), and only using cross-compilation from Linux. It ought to work from Windows, but you'd have to use mingw. The full details of how to do that are in the README file under "WINDOWS": https://gitlab.com/nbdkit/nbdkit/-/blob/master/README Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Richard W.M. Jones
2021-Jul-17 06:20 UTC
[Libguestfs] [libguestfs/nbdkit] Building Windows Binaries (#14)
On Sat, Jul 17, 2021 at 07:15:48AM +0100, Richard W.M. Jones wrote:> On Fri, Jul 16, 2021 at 03:12:42PM -0700, Nathan Shearer wrote: > > Can you please include some more detail on how to cross-compile windows > > binaries of nbdkit, on a linux host. I assume your document is referring to > > debian/ubuntu? If you used a different distro please include that too as it > > will help me reproduce the process.On this point, I use Fedora, but Debian or Ubuntu should work fine too. I'd suggest trying to use mingw, either on Windows or from Linux, and if it still fails, then post the error messages you see on the mailing list. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW