Skip to contentSkip to conversation

building qemu on windows 11

DISCUSSION Neal Elliott 2 participants 2 messages Jan 12, 2023 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello,              is it possible, or has anyone built qemu from the master branch using visual studio? I attempted to build the code using mingw64, but it failed to build. is there a current build document for windows?

#2 lore raw

Am 12.01.23 um 16:16 schrieb Neal Elliott:

Quoted 4 lines

Hello,
             is it possible, or has anyone built qemu from the master
branch using visual studio? I attempted to
build the code using mingw64, but it failed to build. is there a current build document for windows?

Building with Visual Studio is not supported.

Building on Windows with Mingw64 might fail (see https://gitlab.com/qemu-project/qemu/-/issues/1386), and the current documentation requires an update.

I suggest to run a cross build on Linux which works and is also much faster than building on Windows. Here is an example of such a build running as a GitHub action:
https://github.com/stweil/qemu/actions/runs/3903880614/jobs/6668872989

The related files are win.yml, build.sh and pacman.sh
from https://github.com/stweil/qemu/tree/master/.github/workflows.
The two shell scripts should also work on a typical Debian / Ubuntu or similar Linux host.

Regards
Stefan Weil