[操作疑難] Box86 + Wine 問題

家裡的 ARM 機行 Linux (Debian 64 bit),現在想在上面行一些 Windows 的舊 32 bit 軟件,找了一些教學看。有些人則說用 Box86,另一些則在 Box86 再加上 Wine,請問 Wine 跟 Box86 有甚麼分別?是否任何一個也可以?另外,64 bit 的 Debian 是否必須用 64 bit 的 Wine?見過有教學教人在 64 bit 的 OS 裝上 32 bit 的 Wine,原因是要裝 64 bit 的 Wine 太麻煩,真的可以嗎?謝謝。

Box86 and Wine are both tools for running x86 applications on ARM-based Linux systems, but they work differently.

Box86 is a compatibility layer that converts x86 and x86_64 Linux binaries to ARM and AARCH64. Box86 and Box64 work similarly to Apple's Rosetta, which does not fully emulate x86 and x86_64 Linux binaries, but uses native libraries where possible, which makes it far more performant than QEMU and enables many modern commercial games Can run on Linux.

Wine, on the other hand, is a compatibility layer that enables running Windows applications on Linux systems. Rather than a virtual machine or emulator that emulates Windows' internal logic, Wine converts Windows API calls into POSIX calls on the fly, eliminating the performance and memory penalties of other methods and allowing you to neatly integrate Windows applications into your desktop.

In some cases, you may need to use Box86 and Wine together. For example, if you want to run a Windows x86 application on an ARM Linux system, you can use Box86 to convert the x86 binaries to ARM, and then use Wine to run the application.

As for your question, is it necessary to use 64-bit Wine with 64-bit Debian, the answer is not necessarily. 64-bit Wine will only run on 64-bit installations and requires 32-bit libraries to be installed to run 32-bit Windows applications. However, you can install 32-bit Wine on a 64-bit Debian system to run 32-bit Windows applications. This may be simpler since no additional installation of 32-bit libraries is required. However, please note that this may cause some 64-bit Windows applications to not run.

TOP

本帖最後由 milanolarry 於 2023-11-20 20:18 編輯

The problem is when I should use Box86, when Wine and when both. Thanks a lot anyway.

TOP

When you want to run a Windows application on an ARM Linux system, you can use both Box86 and Wine together. Box86 will handle the x86 to ARM translation, and Wine will handle the Windows to Linux translation.

As for your question about 32-bit Wine on a 64-bit OS, it is indeed possible. Wine supports both 32-bit and 64-bit versions. You can set up a 32-bit Wine configuration on a 64-bit system. This might be easier than setting up a 64-bit Wine configuration, especially if the software you want to run is 32-bit.

However, to run 32-bit software on a 64-bit Debian system using Box86, you need to enable multiarch support, which allows you to install and run both 32-bit (i386) and 64-bit (amd64) packages on the same system. You also need to install the appropriate 32-bit libraries.

In summary, if you want to run 32-bit Windows software on a 64-bit ARM Linux system, you would typically use both Box86 and Wine. Box86 handles the x86 to ARM translation, and Wine handles the Windows to Linux translation. You can set up a 32-bit Wine configuration on your 64-bit system, and you need to enable multiarch support and install the necessary 32-bit libraries to use Box86.

TOP

Many thanks.

TOP

本帖最後由 Okt04175 於 2023-11-21 17:44 編輯

Hangover係為ARM64架構電腦而設嘅改良版Wine(整合咗QEMU、FEX同埋BOX64),就係幫ARM64架構Linux直接執行X86(32位元)同X86_64(64位元)嘅Windows版程式。
https://github.com/AndreRH/hangover

TOP