WineHQ

Emulation: Difference between revisions

(Initial Emulation page (no Hangover entry yet))
 
(Add hangover section)
Line 9: Line 9:
At least on Linux it is possible to use QEMU to jump out of emulation at syscall level. This means your native kernel is used and there is no need to emulate one. This approach also integrates well into your Desktop and doesn't require a big image file.
At least on Linux it is possible to use QEMU to jump out of emulation at syscall level. This means your native kernel is used and there is no need to emulate one. This approach also integrates well into your Desktop and doesn't require a big image file.
Still you need Wine compiled for x86 and all it's dependencies, which could be done with [[Buildroot]] or tools like [https://wiki.debian.org/Debootstrap debootstrap]. There is an old thread on the Forums on how to setup Wine for User-Space-Emulation:  [http://forum.winehq.org/viewtopic.php?f=2&t=17701 I got Wine/x86 1.5.11 to run on Linux/ARM with qemu!]. If your QEMU is not too old, you most likely don't have to patch and/or compile it yourself. You still might need a x86 WINEPREFIX from a different machine.
Still you need Wine compiled for x86 and all it's dependencies, which could be done with [[Buildroot]] or tools like [https://wiki.debian.org/Debootstrap debootstrap]. There is an old thread on the Forums on how to setup Wine for User-Space-Emulation:  [http://forum.winehq.org/viewtopic.php?f=2&t=17701 I got Wine/x86 1.5.11 to run on Linux/ARM with qemu!]. If your QEMU is not too old, you most likely don't have to patch and/or compile it yourself. You still might need a x86 WINEPREFIX from a different machine.
=== Hangover ===
Similar to User-Space-Emulation, but much faster. Here we jump out of emulation at the win32 API level. This means you only need a native Wine installation, some wrapper DLLs and some Wine DLLs comiled for Windows. It currently only works on [[ARM64]] and x86_64 with Linux or [[Android]]. The code can be found at [https://github.com/AndreRH/hangover GitHub], but it's not quite ready for users yet. If you want to try it anyway, carefully read the README and make sure you understand it. See also [https://wiki.winehq.org/WineConf2017#.22Hangover.22_project_by_Stefan_D.C3.B6singer_and_Andr.C3.A9_Hentschel WineConf2017].

Revision as of 16:00, 2 July 2018

Emulation

Wine can run on different architectures, still most available Windows applications are x86 ones. As Wine Is Not an Emulator, all those applications can't run on other architectures with Wine alone. Here, we want to discuss some options on how to use Wine together with emulators to achieve what Wine can't do alone.

System emulation

The easiest thing, but slowest, is to use an emulator to run a full x86 Linux installation in it. For example you can grab an image from stacklet, this list or somewhere else and run it with QEMU. There are many instructions for that on the Internet and you can also use different emulators, like e.g. [Bochs http://bochs.sourceforge.net/]. Still, this solution involves even booting the system and doesn't integrate very good into your desktop.

User-Space-Emulation

(Or User-Mode Emulation)
At least on Linux it is possible to use QEMU to jump out of emulation at syscall level. This means your native kernel is used and there is no need to emulate one. This approach also integrates well into your Desktop and doesn't require a big image file. Still you need Wine compiled for x86 and all it's dependencies, which could be done with Buildroot or tools like debootstrap. There is an old thread on the Forums on how to setup Wine for User-Space-Emulation: I got Wine/x86 1.5.11 to run on Linux/ARM with qemu!. If your QEMU is not too old, you most likely don't have to patch and/or compile it yourself. You still might need a x86 WINEPREFIX from a different machine.

Hangover

Similar to User-Space-Emulation, but much faster. Here we jump out of emulation at the win32 API level. This means you only need a native Wine installation, some wrapper DLLs and some Wine DLLs comiled for Windows. It currently only works on ARM64 and x86_64 with Linux or Android. The code can be found at GitHub, but it's not quite ready for users yet. If you want to try it anyway, carefully read the README and make sure you understand it. See also WineConf2017.

This page was last edited on 2 July 2018, at 16:00.