安装MinGW和克隆的“最新的稳定”分支QEMU与
sudo apt-get install -y mingw-w64
cd ~/
git clone -b stable-2.2 git://git.qemu.org/qemu.git
cd ~/qemu
Run Code Online (Sandbox Code Playgroud)
然后从@ http://wiki.qemu.org/Hosts/W32#Building_QEMU_for_W64我试过:
./configure --cross-prefix=amd64-mingw32msvc-
Run Code Online (Sandbox Code Playgroud)
现在我得到:
ERROR: "amd64-mingw32msvc-gcc" either does not exist or does not work
Run Code Online (Sandbox Code Playgroud)
更新:
~/Scripts/qemu$ ./configure --cross-prefix=x86_64-w64-mingw32-
ERROR: pkg-config binary 'x86_64-w64-mingw32-pkg-config' not found
Run Code Online (Sandbox Code Playgroud)
第二次更新:
修复了以前的问题
sudo link /usr/bin/pkg-config /usr/bin/x86_64-w64-mingw32-pkg-config
sudo apt-get --no-install-recommends -y build-dep qemu
Run Code Online (Sandbox Code Playgroud)
但现在我得到:
owner@K53TA:~/qemu$ ./configure --cross-prefix=x86_64-w64-mingw32-
ERROR: zlib check failed
Make sure to have the zlib libs and headers installed.
Run Code Online (Sandbox Code Playgroud)
但已zlib1g-dev安装