Wine-CE (Chimera Edition, Cross-architecture Emulator) is a compatibility layer capable of running Windows applications on Cross-architecture paltform of Linux. It is base on Wine Project and Qemu Project.
Wine-CE (奇美拉架构, 跨指令架构模拟器) 是在不同指令集架构Linux系统上运行Windows程序的兼容层,它基于Wine项目和Qemu项目。
+---------------------+ \
| Windows EXE | } application
+---------------------+ /
+---------+ +---------+ \
| Windows | | Windows | \ application & system DLLs
| DLL | | DLL | /
+---------+ +---------+ /
+---------+ +---------+ +-----------+ +--------+ \
| GDI32 | | USER32 | | | | | \
| DLL | | DLL | | | | Wine | \
+---------+ +---------+ | | | Server | \ core system DLLs
+---------------------+ | | | | / (on the left side)
| Kernel32 DLL | | Subsystem | | NT-like| /
| (Win32 subsystem) | |Posix, OS/2| | Kernel | /
+---------------------+ +-----------+ | | /
| |
+---------------------------------------+ | |
| NTDLL | | |
+---------------------------------------+ +--------+
+---------------------------------------+ \
| Qemuloader executable | } emulate loader
+---------------------------------------+ /
+---------------------------------------+ \
| QEMU | } special QEMU
+---------------------------------------+ /
+---------------------------------------------------+ \
| Wine drivers | } Wine specific DLLs
+---------------------------------------------------+ /
+------------+ +------------+ +--------------+ \
| libc | | libX11 | | other libs | } unix shared libraries
+------------+ +------------+ +--------------+ / (user space)
+---------------------------------------------------+ \
| Unix kernel (Linux,*BSD,Solaris,OS/X) | } (Unix) kernel space
+---------------------------------------------------+ /
+---------------------------------------------------+ \
| Unix device drivers | } Unix drivers (kernel space)
+---------------------------------------------------+ /
Wine-CE Only Emulator Windows DLLS based on GUEST Instruction Arcitecture and qemuloader. and forward call of Unixlib to Host for executing. Based on the principle of non-essential non-emulation, it has faster performance.
Wine-CE 只模拟基于客端指令架构的Windows动态链接库和qemuloader,并将针对Unix库的调用转发到主端执行。基于非必要不模拟的原则,使它拥有更快的性能。
NOTE:
If you want to run 32-bit windows app On 64-bit host platform, Vulkan-driver must supports VK_EXT_external_memory_host, Otherwise error "returned mapping * does not fit 32-bit pointer" may occur.
如果要在64位宿主机平台运行32位windows应用,Vulkan驱动必须支持VK_EXT_external_memory_host,否则可能出现错误"returned mapping * does not fit 32-bit pointer"
Install dependent packages
然后安装依赖包
sudo apt install fonts-liberation fonts-wine glib-networking libpulse0 gstreamer1.0-plugins-good gstreamer1.0-x libaa1 libaom3 libasound2-plugins libcaca0 libcairo-gobject2 libcodec2-1.0 libdav1d6 libdv4 libgdk-pixbuf-2.0-0 libgomp1 libgpm2 libiec61883-0 libjack-jackd2-0 libmp3lame0 libncurses6 libncursesw6 libnuma1 libodbc2 libproxy1v5 libraw1394-11 librsvg2-2 librsvg2-common libsamplerate0 libshine3 libshout3 libslang2 libsnappy1v5 libsoup2.4-1 libsoxr0 libspeex1 libspeexdsp1 libtag1v5 libtag1v5-vanilla libtwolame0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvkd3d-shader1 libvkd3d1 libvpx7 libwavpack1 libwebpmux3 libx265-199 libxdamage1 libxvidcore4 libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers va-driver-all vdpau-driver-all vkd3d-compiler
Download wine-ce_dlls_{version}.noarch.tar.xz and wine-ce_core_{version}.{host_arch}.tar.xz from release, and decompress to /opt/
从release发行版下载wine-ce_dlls_{version}.noarch.tar.xz 和 wine-ce_core_{version}.{host_arch}.tar.xz并解压到/opt/
sudo tar -Jxvf wine-ce_core_{version}.{host_arch}.tar.xz -C /opt/
sudo tar -Jxvf wine-ce_dlls_{version}.noarch.tar.xz -C /opt/
sudo ln -s /opt/wine-ce/bin/wine /usr/bin/wine
Delete Old and Create New wine prefix directory.
WARNING: DO NOT run emulated program before create or update wine prefix directory. Recommend Running regedit.exe first for update wine prefix directory.
删除旧的并创建新的wine prefix文件夹.
警告:不要在创建或更新wine prefix文件夹前在模拟模式下运行程序,首次运行建议先打开注册表触发更新操作。
rm -rf ~/.wine
wine regedit.exe
git clone https://gitee.com/fanwenjie/wine-ce.git
cd wine-ce
git submodule init
git submodule update
sudo apt install clang lld meson ninja-build gcc flex bison libc6-dev-amd64-cross libgcc-12-dev-amd64-cross libc6-dev-arm64-cross libgcc-12-dev-arm64-cross libasound2-dev libpulse-dev libdbus-1-dev libfontconfig-dev libfreetype6-dev libgnutls28-dev libtiff-dev libgl-dev libunwind-dev libxml2-dev libxslt1-dev libfaudio-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libmpg123-dev libosmesa6-dev libsdl2-dev libudev-dev libvkd3d-dev libvulkan-dev libcapi20-dev liblcms2-dev libcups2-dev libgphoto2-dev libsane-dev libgsm1-dev libkrb5-dev libldap2-dev samba-dev ocl-icd-opencl-dev libpcap-dev libusb-1.0-0-dev libv4l-dev libopenal-dev libxcomposite-dev libglib2.0-dev libnet1-dev
cd wine
i386_CC="clang -fuse-ld=lld --target=i686-pc-windows" \
x86_64_CC="clang -fuse-ld=lld --target=x86_64-pc-windows" \
x86_64_UNIX_CC="clang -fuse-ld=lld --target=x86_64-pc-linux --sysroot=/usr/x86_64-linux-gnu/ -L/usr/lib/gcc-cross/x86_64-linux-gnu/12/" \
aarch64_CC="clang -fuse-ld=lld --target=aarch64-pc-windows" \
aarch64_UNIX_CC="clang -fuse-ld=lld --target=aarch64-pc-linux --sysroot=/usr/aarch64-linux-gnu/ -L/usr/lib/gcc-cross/aarch64-linux-gnu/12/" \
./configure --prefix=/opt/wine-ce --disable-tests --enable-archs=i386,x86_64,aarch64
make -j6
sudo make install
cd ..
NOTE: You can only build Core By below Command and Download and extract wine-ce_dlls_{version}.noarch.tar.xz
提示:如果只编译核心,可以运行以下命令, 然后下载并解压wine-ce_dlls_{version}.noarch.tar.xz
./configure --prefix=/opt/wine-ce --disable-tests --enable-archs=
mkdir build.qemu
cd build.qemu
CC=gcc CC_FOR_BUILD="$CC" CXX="$CC" HOST_CC="$CC" LDFLAGS="-Wl,-Ttext-segment=0x100000000 -Wl,-z,max-page-size=0x1000 -Wl,-Bstatic,-lglib-2.0 -Wl,-Bdynamic" ../qemu/configure --without-default-features --disable-fdt --disable-system --enable-ca11c0de --disable-rcu --meson=meson --target-list=x86_64-linux-user,aarch64-linux-user
ninja -j6
cd ..
sudo cp build.qemu/qemu-x86_64 /opt/wine-ce/bin/
sudo cp build.qemu/qemu-aarch64 /opt/wine-ce/bin/
sudo sh generate_scripts.sh /opt/wine-ce/bin/
For specific steps, please refer to dxvk/README.md
具体步骤可参考dxvk/README.md
Test Platform: VisionFive 2
https://www.bilibili.com/video/BV1ao4y1e7To/
Test Platform: Raspberrypi 400
Test Program:
Warcraft III: https://www.bilibili.com/video/BV1qK411k7mu
Sword and Fairy 3: https://www.bilibili.com/video/BV1Kd4y157Lm
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.