首頁 > 軟體

Ubuntu 17.10下編譯安裝 Wine 3.0 RC1 詳解

2020-06-16 16:58:48

另許多Linuxer期待的Wine 3.0 RC1 已經發布了,這是即將發布的Wine 3的候選版本。它標誌著程式碼凍結期的開始。請大家給這個版本一個很好的測試,以使Wine 3.0盡可能做的更好。

Wine (“Wine Is Not an Emulator” 的遞迴縮寫)是一個能夠在多種 POSIX-compliant 作業系統(諸如 Linux,Mac OSX 及 BSD 等)上執行 Windows 應用的相容層。另外英語單詞wine是葡萄酒的意思。

這個版本有什麼新的變化?:

  • Direct3D 11在AMD和Intel GPU上預設啟用。
  • 支援macOS的AES加密。
  • 任務排程器的實現。
  • reg.exe工具中的登錄檔匯出支援。
  • Progman DDE支援。
  • OLE資料快取改進。
  • MSHTML中的更多事件支援。
  • 中繼偵錯改進。
  • 各種錯誤修復。

該源現在可用。 二進位制軟體包正在構建過程中,應該很快會好。

相關新聞:即將發布的Wine 3.0支援AMD和Intel GPU的Direct3D 11  見 http://www.linuxidc.com/Linux/2017-12/149271.htm

下面詳細講解在Ubuntu 17.10下編譯安裝 Wine 3.0 RC1 的過程步驟及問題解決。

首先安裝依賴的庫:

sudo apt-get install flex bison qt4-qmake

sudo apt-get install libfreetype6-dev

sudo apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev

sudo apt-get install libxrender-dev

sudo apt-get install libgl1-mesa-dev

sudo apt-get install libglu1-mesa-dev

sudo apt-get install freeglut3-dev

sudo apt-get install prelink

sudo apt-get install libasound2-dev

到官網下載最新的原始碼:

wget https://dl.winehq.org/wine/source/3.0/wine-3.0-rc1.tar.xz

下載之後解壓,我把wine-3.0-rc1.tar.xz原始碼解壓到當前使用者目錄下,進入目錄:

tar jxvf wine-3.0-rc1.tar.xz
cd wine-3.0-rc1

./configure --enable-win64

linuxidc@linuxidc:~/桌面/Linuxidc.com/wine-3.0-rc1$ ./configure --enable-win64
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for cpp... cpp
checking for ld... ld

......

configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libudev 64-bit development files not found, plug and play won't be supported.
configure: libcapi20 64-bit development files not found, ISDN won't be supported.
configure: libcups 64-bit development files not found, CUPS won't be supported.
configure: fontconfig 64-bit development files not found, fontconfig won't be supported.
configure: libgsm 64-bit development files not found, gsm 06.10 codec won't be supported.
configure: libkrb5 64-bit development files not found, Kerberos won't be supported.
configure: libtiff 64-bit development files not found, TIFF won't be supported.
configure: libmpg123 64-bit development files not found (or too old), mp3 codec won't be supported.
configure: libopenal 64-bit development files not found (or too old), OpenAL won't be supported.
configure: openal-soft 64-bit development files not found (or too old), XAudio2 won't be supported.
configure: libldap (OpenLDAP) 64-bit development files not found, LDAP won't be supported.

configure: WARNING: libgnutls 64-bit development files not found, no schannel support.

configure: Finished.  Do 'make' to compile Wine.

linuxidc@linuxidc:~/桌面/Linuxidc.com/wine-3.0-rc1$

--------------------------------------分割線 --------------------------------------

然後開始編譯了,編譯和安裝的過程很簡單。

直接執行make編譯,等等等吧,可以喝杯咖啡。一個多小時編譯完成。

然後執行

sudo make install

會自動編譯Wine 3.0 RC1並安裝程式

執行命令檢查Wine版本:


IT145.com E-mail:sddin#qq.com