Wine-11.2

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 23. Wine

- Prev

  Wine

- Next

  DXVK-2.7.1

- Up
- Home

# Wine-11.2

## Introduction to Wine

Wine is a compatibility layer for running Windows programs on Unix.

### Note

You do not have to rebuild DXVK-2.7.1 or VKD3D-Proton-3.0b after updating Wine. This is because those packages build against the MinGW-w64 static libraries built in that package, and not against the DLLs provided in this package. When you update this package, you don't have to worry about much else beyond maybe having to download mono again, which is handled automatically whenever you execute Wine after updating.

### Note

This may take a while to build. Feel free to do something else while this is building.

- Download: https://dl.winehq.org/wine/source/11.x/wine-11.2.tar.xz

### Wine Dependencies

Wine Dependencies

## Installation of Wine

Wine has four build types. Scroll down to the build type you want. Visit Wine Dependencies for more information about each build type.

### WoW64

Install WoW64 Wine by running the following commands:

    mkdir build &&
    cd    build &&

    ../configure --prefix=/usr   \
                 --disable-tests \
                 --enable-archs=x86_64,i386 &&
    make

Now, as the `root` user:

    rm -rf /usr/lib/wine &&
    make install

### Old WoW64

Install the old WoW64 Wine by running the following commands:

    mkdir build-win64 &&
    cd    build-win64 &&

    ../configure --prefix=/usr   \
                 --disable-tests \
                 --enable-win64 &&

    make              &&

    cd ..             &&
    mkdir build-win32 &&
    cd    build-win32 &&

    PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
    ../configure --prefix=/usr           \
                 --disable-tests         \
                 --with-wine64=../build-win64 &&

    make

Now, as the `root` user:

    rm -rf /usr/lib/wine &&
    make install         &&
    cd ../build-win64    &&
    make install

### 64-bit Only

Install 64-bit only Wine by running the following commands:

    mkdir build &&
    cd    build &&

    ../configure --prefix=/usr   \
                 --disable-tests \
                 --enable-win64 &&

    make

Now, as the `root` user:

    rm -rf /usr/lib/wine &&
    make install

### 32-bit Only

Install 32-bit only Wine by running the following commands:

    mkdir build &&
    cd    build &&

    PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
    ../configure --prefix=/usr --disable-tests &&

    make

Now, as the `root` user:

    rm -rf /usr/lib/wine &&
    make install

## Command Explanations

### Note

Run ../configure --help for a full list of options.

`--disable-tests`: This parameter disables building tests.

`--with-wine64=../build-win64`: This option allows Wine during the compilation stage to use files built in the wine64 stage to enable support for both 32-bit and 64-bit.

rm -rf /usr/lib/wine: This command removes potentially conflicting Wine libraries before installation if Wine has been installed previously. Issues normally arise when switching from one build type to another. When this is done, Wine will say there's a version mismatch, which comes from libraries that shouldn't exist anymore.

## Configuring Wine

This installation should be good enough for most people but there may be a few things that you wish to change or do in relation to this package. The Arch Wiki page for Wine covers most of the things you may wish to do. In relation to gaming and Vulkan, you may wish to install DXVK-2.7.1 which converts Direct3D 8-11 calls to Vulkan, unlike WineD3D which converts Direct3D calls to OpenGL in a poor manner and is much slower.

As for Direct3D 12, you may also wish to install VKD3D-Proton-3.0b which replaces VKD3D provided by Wine. VKD3D is less aggressive with optimizations and is geared for general use, whereas VKD3D-Proton has aggressive optimizations and is geared towards gaming. Despite the name, it can be used with Wine and works quite well.

### Note

If you installed the newer WoW64 architecture, you will still need 32-bit/i686 DLLs for anything extra you wish to install, like DXVK.

The choice of what to install is up to you.

In some cases, some Windows applications will expect files not provided in this installation. In such cases, you can install Winetricks from SLFS to install those missing files.

## Contents

Installed Programs: function_grep.pl, msidb (link to wine), msiexec (link to wine), notepad (link to wine), regedit (link to wine), regsvr32 (link to wine), widl, wine, wineboot (link to wine), winebuild, winecfg (link to wine), wineconsole (link to wine), winecpp (link to winegcc), winedbg (link to wine), winedump, winefile (link to wine), wineg++ (link to winegcc), winegcc, winemaker, winemine (link to wine), winepath (link to wine), wineserver, wmc, and wrc
Installed Libraries: Various dynamic and static libraries
Installed Directories: /usr/include/wine, /usr/lib/wine, and /usr/share/wine

### Short Descriptions

function_grep.pl | is a Perl script that does the same job as grep
msidb | handles MSI databases; symlink to wine
msiexec | is the Wine MSI installer; symlink to wine
notepad | is the Wine text editor; symlink to wine
regedit | is the Wine registry editor; symlink to wine
regsvr32 | is the Wine DLL Registration Server; symlink to wine
widl | is the Wine Interface Definition Language (IDL) compiler
wine | runs Windows programs on Unix
wineboot | performs Wine initialization, startup, and shutdown tasks; symlink to wine
winebuild | is the Wine DLL builder
winecfg | is the Wine Configuration Editor; symlink to wine
wineconsole | is the Wine console; symlink to wine
wine{cpp,g++,gcc} | is the Wine C and C++ MinGW-w64 Compatible Compiler
winedbg | is the Wine debugger; symlink to wine
winedump | is a Wine DLL tool
winefile | is a Wine File Manager; symlink to wine
winemaker | generates a build infrastructure for compiling Windows programs on Unix
winemine | is the Wine Minesweeper game; it is also just an example and not meant to be an accurate implementation of Minesweeper; symlink to wine
winepath | is a tool to convert Unix paths to/from Win32 paths; symlink to wine
wineserver | is the Wine server
wmc | is the Wine Message Compiler
wrc | is the Wine Resource Compiler

- Prev

  Wine

- Next

  DXVK-2.7.1

- Up
- Home