On 31.01.19 12:28, Daniel P. Berrangé wrote: > On Thu, Jan 31, 2019 at 11:19:04AM +0000, Peter Maydell wrote: >> On Thu, 31 Jan 2019 at 10:50, Daniel P. Berrangé <berra...@redhat.com> wrote: >>> >>> On Thu, Jan 31, 2019 at 02:45:13PM +1100, Adam Baxter wrote: >>>> Hi, >>>> How do I gather and include the required DLLs (SDL, zlib etc) in the NSIS >>>> installer? (and also in a standalone build to be zipped up, but that's less >>>> important) >>>> >>>> I noticed the wiki doesn't really mention bundling dependencies anywhere. >>>> >>>> The official unofficial windows builds are documented at >>>> https://qemu.weilnetz.de/FAQ but this doesn't cover building the actual >>>> installer. >>> >>> Yeah, this is a pretty major ommision in QEMU's build rules for the NSIS >>> installer making it pretty much useless as is. We really need to expand >>> it so that it can resolve the dlls that qemu .exe's need, locate them >>> on the host and bundle them into the installer automatically.
The current code already automatically includes all DLL files found in dll/w32 or dll/w64 in the root source directory. I had chosen that very simple solution because I am afraid that a general rule to find the right DLL files for Windows native and cross builds with all kinds of cross build hosts (Debian, Fedora, ...) is impossible to maintain. So currently every developer has to select and provide the DLL files needed. That's how I do it for my installers, too. Each time when I update Debian or the Cygwin packages which I use for the cross build, I also have to update the DLL set. Regards, Stefan Weil