Skip to content

Instantly share code, notes, and snippets.

@Mohido
Created August 17, 2025 21:49
Show Gist options
  • Select an option

  • Save Mohido/36cd69e26a2741c4d2926c14a20d5128 to your computer and use it in GitHub Desktop.

Select an option

Save Mohido/36cd69e26a2741c4d2926c14a20d5128 to your computer and use it in GitHub Desktop.
Easiest Way to Compile Wine

Summary

Compiling Wine is just a pain. Libraries and dependencies will keep popping whenever you hit ./configure but there is a trick to install all dependencies in a single knock-out combo!

The trick is simple, you add the package to your apt-source repositories (whatever package manager you are using). Then install the dependencies, download the repository and configure wine with --enable-win64. Finally compile it.

Build Wine x64

  1. Follow the wine pacakge installation until you add the repositories. Here is the ubuntu guide
    1. STOP AT: sudo apt update
    2. After adding the source file, you must edit it. sudo vim /etc/apt/sources.list.d/winehq-<distro>.sources
    3. Change the line Type: deb to Type: deb deb-src
    4. Run sudo apt update
  2. Install the dependencies/libraries: sudo apt build-dep wine-stable
  3. Clone the wine repository.
  4. Configure wine files (x64 version first): ./configure --enable-win64
  5. Build/Compile the codebase: make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment