Affinity Wine Documentation

Warning

You are on the v1 of the guide.
This version helps you build wine from scratch.
The up to date version of this guide is available at the bottom on the sidemenu as the v2.

Compiling Wine

Refer to the Official Documentation if you encounter any issues while building Wine.

Getting ElementalWarrior's Wine fork

  1. Clone the Repository:

    Change to your desired directory and clone ElementalWarrior's fork with the following command.

    git clone --depth 1 --single-branch --branch affinity-photo3-wine9.13-part3 https://gitlab.winehq.org/ElementalWarrior/wine.git ElementalWarrior-wine
    
  2. Navigate into the Cloned Directory:

    cd ElementalWarrior-wine
    

Building Wine

We will now build Wine using the new experimental WoW64 implemented in 8.0 and improved since. If you encounter issues with this build method, you can find the previous guide using the "Shared WoW64" method explained on a previous version of this guide and on the winehq build page under the same name.

We will also specify an "install" path with --prefix=[PATH] so it doesn't install system-wide, as it would interfere with the Wine files distributed by your package manager.

  1. Create Two Directories:

    mkdir winewow64-build/ wine-install/
    
  2. Configure and Compile Wine:

    cd winewow64-build/
    
    ../configure --prefix="$HOME/Documents/ElementalWarrior-wine/wine-install" --enable-archs=i386,x86_64
    
  3. Compile Wine Using make:

    You can now compile it using make. We will also add --jobs to utilize more CPU cores:

    make --jobs 4
    

    man make tells us: "-j [jobs], --jobs[=jobs] Specifies the number of jobs (commands) to run simultaneously." You may set it to around (+/- 1) the number of threads your CPU has.

  4. Install Wine to the wine-install Folder:

    make install --jobs 4