git clone https://gitee.com/winehq/wine.git
git checkout wine-9.1
x86_64
注意(没有--enable-win32选项!)
sudo apt install build-essential git libtool m4 autoconf automake pkg-config libc6-dev-i386 zlib1g-dev libncurses5-dev libssl-dev libpulse-dev libasound2-dev
sudo ln -s -v asm-generic asm
./configure --enable-win64
make -j6
sudo make install
没有wine32,只有wine64
测试启动notepad
先删除~/.wine 目录(防止以前的版本冲突)
启动了记事本,但是菜单中文乱码(应该需要安装字体,还不清楚方法)
测试安装WeChatSetup.exe
yeqiang@yeqiang-MS-7B23:~/Downloads/src/wine$ /usr/local/bin/wine64 /home/yeqiang/Downloads/WeChatSetup.exe
0074:err:vulkan:get_vulkan_driver Wine was built without Vulkan support.
0074:err:vulkan:get_vulkan_driver Wine was built without Vulkan support.
0118:err:environ:init_peb starting L"Z:\\home\\yeqiang\\Downloads\\WeChatSetup.exe" in experimental wow64 mode
wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
无法启动程序,或者没有为指定文件关联应用程序。
ShellExecuteEx 失败: 内部错误。
cp WeChatSetup.exe ~/.wine/drive_c/
从win10虚拟机中靠背syswow64下的文件到wine虚拟空间
故障依旧。
windows10的dll不行?
测试源中的wine启动WeChatSetup.exe
apt install wine
yeqiang@yeqiang-MS-7B23:~$ sudo apt install wine wine32 wine64
[sudo] yeqiang 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
dctrl-tools dkms golang-1.18-go golang-1.18-src golang-src libnvidia-container-tools libnvidia-container1
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
avahi-daemon avahi-utils cups cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-ipp-utils
cups-server-common fonts-wine glib-networking:i386 gstreamer1.0-plugins-base gstreamer1.0-plugins-base:i386
gstreamer1.0-plugins-good:i386 gstreamer1.0-x gstreamer1.0-x:i386 libaa1:i386 libapparmor1 libapparmor1:i386
libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libavahi-client3 libavahi-client3:i386 libavahi-common-data
libavahi-common-data:i386 libavahi-common3 libavahi-common3:i386 libavahi-core7 libavahi-glib1 libavahi-ui-gtk3-0
libavc1394-0:i386 libblkid1:i386 libbrotli1:i386 libbz2-1.0:i386 libcaca0:i386 libcairo-gobject2:i386 libcairo2:i386
libcap2 libcap2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0:i386 libcups2 libcups2:i386 libcupsimage2
libcurl4:i386 libdatrie1:i386 libdb5.3:i386 libdbus-1-3:i386 libdecor-0-0:i386 libdecor-0-plugin-1-cairo:i386
libdeflate0:i386 libdv4:i386 libdw1:i386 libexif12:i386 libfaudio0 libfaudio0:i386 libflac8 libflac8:i386
libfontconfig1:i386 libfreetype6:i386 libfribidi0:i386 libgbm1:i386 libgcrypt20:i386 libgd3:i386
libgdk-pixbuf-2.0-0:i386 libglib2.0-0:i386 libgmp10:i386 libgnutls-dane0 libgnutls30 libgnutls30:i386
libgpg-error-l10n libgpg-error0:i386 libgphoto2-6:i386 libgphoto2-port12:i386 libgpm2:i386 libgraphite2-3:i386
libgsm1:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer-plugins-good1.0-0:i386 libgstreamer1.0-0:i386
libgudev-1.0-0:i386 libharfbuzz0b:i386 libhogweed6:i386 libiec61883-0:i386 libjack-jackd2-0:i386 libjbig0:i386
libjpeg-turbo8:i386 libjpeg8:i386 liblcms2-2:i386 libldap-2.5-0 libldap-2.5-0:i386 libltdl7:i386 liblz4-1:i386
libmount1:i386 libmp3lame0:i386 libmpg123-0:i386 libncurses6:i386 libncursesw6:i386 libnettle8:i386 libnghttp2-14
libnghttp2-14:i386 libnghttp2-dev libnss-mymachines libnss-systemd libodbc2:i386 libogg0:i386 libopenal1:i386
libopus0:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpam-systemd libpango-1.0-0:i386
libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcap0.8:i386 libpcre2-8-0:i386 libpcre3:i386 libpixman-1-0:i386
libpng16-16:i386 libproxy1v5:i386 libpsl5:i386 libpulse-mainloop-glib0 libpulse0 libpulse0:i386 libpulsedsp
libraw1394-11:i386 librtmp1:i386 libsamplerate0:i386 libsasl2-2 libsasl2-2:i386 libsasl2-modules
libsasl2-modules:i386 libsasl2-modules-db libsasl2-modules-db:i386 libsasl2-modules-gssapi-mit libsdl2-2.0-0:i386
libselinux1:i386 libshout3:i386 libslang2:i386 libsndfile1 libsndfile1:i386 libsndio7.0:i386 libsoup2.4-1:i386
libspeex1:i386 libsqlite3-0 libsqlite3-0:i386 libsqlite3-dev libssh-4 libssh-4:i386 libstb0 libstb0:i386
libsystemd-dev libsystemd0 libsystemd0:i386 libtag1v5:i386 libtag1v5-vanilla:i386 libtasn1-6:i386 libthai0:i386
libtheora0:i386 libtiff-dev libtiff5 libtiff5:i386 libtiffxx5 libtwolame0:i386 libudev-dev libudev1 libudev1:i386
libunwind8:i386 libusb-1.0-0:i386 libuuid1:i386 libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386 libvkd3d1
libvkd3d1:i386 libvorbis0a:i386 libvorbisenc2:i386 libvpx7 libvpx7:i386 libvulkan1:i386 libwavpack1:i386
libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386 libwayland-server0:i386 libwebp7:i386 libwine
libwine:i386 libxcb-render0:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386 libxinerama1:i386
libxkbcommon0:i386 libxpm4 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxss1:i386 libxv1:i386
libz-mingw-w64 mesa-vulkan-drivers mesa-vulkan-drivers:i386 ocl-icd-libopencl1:i386 pulseaudio
pulseaudio-module-bluetooth pulseaudio-utils systemd systemd-container systemd-oomd systemd-sysv systemd-timesyncd
udev
建议安装:
cups-pdf smbclient inetutils-inetd | inet-superserver gvfs:i386 libdv-bin:i386 oss-compat:i386 rng-tools:i386
libgd-tools:i386 gphoto2:i386 gpm:i386 libvisual-0.4-plugins:i386 gstreamer1.0-tools:i386 jackd2:i386 libnghttp2-doc
odbc-postgresql:i386 tdsodbc:i386 libportaudio2:i386 opus-tools:i386 libraw1394-doc:i386 libsasl2-modules-ldap
libsasl2-modules-otp libsasl2-modules-sql libsasl2-modules-gssapi-mit:i386 | libsasl2-modules-gssapi-heimdal:i386
libsasl2-modules-ldap:i386 libsasl2-modules-otp:i386 libsasl2-modules-sql:i386 sndiod:i386 speex:i386 sqlite3-doc
gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav:i386
gstreamer1.0-plugins-bad:i386 gstreamer1.0-plugins-ugly:i386 opencl-icd:i386 pavumeter pavucontrol paprefs
ubuntu-sounds libtss2-rc0 q4wine winbind winetricks playonlinux wine-binfmt dosbox exe-thumbnailer | kio-extras
wine32-preloader:i386 wine64-preloader
推荐安装:
libvkd3d-shader1 libvkd3d-shader1:i386
下列【新】软件包将被安装:
fonts-wine glib-networking:i386 gstreamer1.0-plugins-base:i386 gstreamer1.0-plugins-good:i386 gstreamer1.0-x:i386
libaa1:i386 libapparmor1:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libavahi-client3:i386
libavahi-common-data:i386 libavahi-common3:i386 libavc1394-0:i386 libblkid1:i386 libbrotli1:i386 libbz2-1.0:i386
libcaca0:i386 libcairo-gobject2:i386 libcairo2:i386 libcap2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0:i386
libcups2:i386 libcurl4:i386 libdatrie1:i386 libdb5.3:i386 libdbus-1-3:i386 libdecor-0-0:i386
libdecor-0-plugin-1-cairo:i386 libdeflate0:i386 libdv4:i386 libdw1:i386 libexif12:i386 libfaudio0 libfaudio0:i386
libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libfribidi0:i386 libgbm1:i386 libgcrypt20:i386 libgd3:i386
libgdk-pixbuf-2.0-0:i386 libglib2.0-0:i386 libgmp10:i386 libgnutls30:i386 libgpg-error-l10n libgpg-error0:i386
libgphoto2-6:i386 libgphoto2-port12:i386 libgpm2:i386 libgraphite2-3:i386 libgsm1:i386
libgstreamer-plugins-base1.0-0:i386 libgstreamer-plugins-good1.0-0:i386 libgstreamer1.0-0:i386 libgudev-1.0-0:i386
libharfbuzz0b:i386 libhogweed6:i386 libiec61883-0:i386 libjack-jackd2-0:i386 libjbig0:i386 libjpeg-turbo8:i386
libjpeg8:i386 liblcms2-2:i386 libldap-2.5-0:i386 libltdl7:i386 liblz4-1:i386 libmount1:i386 libmp3lame0:i386
libmpg123-0:i386 libncurses6:i386 libncursesw6:i386 libnettle8:i386 libnghttp2-14:i386 libodbc2:i386 libogg0:i386
libopenal1:i386 libopus0:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpango-1.0-0:i386
libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcap0.8:i386 libpcre2-8-0:i386 libpcre3:i386 libpixman-1-0:i386
libpng16-16:i386 libproxy1v5:i386 libpsl5:i386 libpulse0:i386 libraw1394-11:i386 librtmp1:i386 libsamplerate0:i386
libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libsdl2-2.0-0:i386 libselinux1:i386 libshout3:i386
libslang2:i386 libsndfile1:i386 libsndio7.0:i386 libsoup2.4-1:i386 libspeex1:i386 libsqlite3-0:i386 libssh-4:i386
libstb0 libstb0:i386 libsystemd0:i386 libtag1v5:i386 libtag1v5-vanilla:i386 libtasn1-6:i386 libthai0:i386
libtheora0:i386 libtiff5:i386 libtwolame0:i386 libudev1:i386 libunwind8:i386 libusb-1.0-0:i386 libuuid1:i386
libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386 libvkd3d1 libvkd3d1:i386 libvorbis0a:i386 libvorbisenc2:i386
libvpx7:i386 libvulkan1:i386 libwavpack1:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386
libwayland-server0:i386 libwebp7:i386 libwine libwine:i386 libxcb-render0:i386 libxcomposite1:i386 libxcursor1:i386
libxdamage1:i386 libxi6:i386 libxinerama1:i386 libxkbcommon0:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386
libxslt1.1:i386 libxss1:i386 libxv1:i386 libz-mingw-w64 mesa-vulkan-drivers:i386 ocl-icd-libopencl1:i386 wine
wine32:i386 wine64
下列软件包将被升级:
avahi-daemon avahi-utils cups cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-ipp-utils
cups-server-common gstreamer1.0-plugins-base gstreamer1.0-x libapparmor1 libavahi-client3 libavahi-common-data
libavahi-common3 libavahi-core7 libavahi-glib1 libavahi-ui-gtk3-0 libcap2 libcups2 libcupsimage2 libflac8
libgnutls-dane0 libgnutls30 libldap-2.5-0 libnghttp2-14 libnghttp2-dev libnss-mymachines libnss-systemd
libpam-systemd libpulse-mainloop-glib0 libpulse0 libpulsedsp libsasl2-2 libsasl2-modules libsasl2-modules-db
libsasl2-modules-gssapi-mit libsndfile1 libsqlite3-0 libsqlite3-dev libssh-4 libsystemd-dev libsystemd0 libtiff-dev
libtiff5 libtiffxx5 libudev-dev libudev1 libvpx7 libxpm4 mesa-vulkan-drivers pulseaudio pulseaudio-module-bluetooth
pulseaudio-utils systemd systemd-container systemd-oomd systemd-sysv systemd-timesyncd udev
升级了 61 个软件包,新安装了 162 个软件包,要卸载 0 个软件包,有 407 个软件包未被升级。
需要下载 12.8 MB/240 MB 的归档。
解压缩后会消耗 1,231 MB 的额外空间。
您希望继续执行吗? [Y/n] y
启动
rm ~/.wine -rf
/usr/bin/wine64 /home/yeqiang/Downloads/WeChatSetup.exe
自带的版本,可以启动安装程序,看到安装界面!新版本问题?
可以用!