Can't install Wine 8.0 on ARM Linux Host

Questions about Wine on Linux
Locked
generalheed
Newbie
Newbie
Posts: 2
Joined: Fri Jan 27, 2023 1:07 am

Can't install Wine 8.0 on ARM Linux Host

Post by generalheed »

I've been trying to install the recently announced Wine 8.0 release on an ARM version of Ubuntu 18.04 LTS. I tried falling the installation guide from the downloads page. The setup steps are fine but when I get to the install step, I get an error that says the packages have an unmet dependency:

Code: Select all

The following packages have unmet dependencies:
winehq-devel:i386 : Depends: wine-devel:i386 (= 8.0.0-bionic-1) but it is not going to be installed
E: Unable to correct problems, you may have held broken packages
I read on the FAQ that Ubuntu can have these architectural dependencies errors but it's mostly referring to i386 and x86_64. Are there different steps for installing Wine on an ARM-based Linux host? Or is there another way to resolve these dependency issues?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't install Wine 8.0 on ARM Linux Host

Post by jkfloris »

The WineHQ repository only has packages for amd64 and i386. For the ARM version, you can use the Ubuntu packages, or build Wine yourself.
generalheed
Newbie
Newbie
Posts: 2
Joined: Fri Jan 27, 2023 1:07 am

Re: Can't install Wine 8.0 on ARM Linux Host

Post by generalheed »

I've cloned the git repo so far, not sure if there's a specific ARM branch for the Wine but I've got the standard branch for the moment. I'm a bit of a newbie with this but is there any guide for how to compile Wine for ARM? The ARM page on the wiki i'm not sure if it's the correct thing I'm looking for, seems to be talking about other stuff.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't install Wine 8.0 on ARM Linux Host

Post by jkfloris »

Before you start compiling, remember that Wine is not an emulator. So you can only run ARM Windows applications.

The most detailed how-to is here: https://wiki.winehq.org/Building_Wine
In a nutshell:
- Install the necessary libraries. (On an ARM64 system, install the 32-bit (armhf) variant as well.)
- Create a wine64-build and wine32-build directory
Schematic, it looks like this:

Code: Select all

|
|- wine-source              # The Wine source code
|           |- dlls
|           |- documentation
|           |- ...
|           |- configure
|
|
|- wine64-build
|
|- wine32-build
- Build the 64 bit Wine

Code: Select all

cd wine64-build
../wine-source/configure --enable-win64 --prefix=${HOME}/winebuild
make
- Build the 32 bit Wine

Code: Select all

cd wine32-build
../wine-source/configure --with-wine64=../wine64-build --prefix=${HOME}/winebuild
make
- Install Wine

Code: Select all

cd wine32-build
make install
cd wine64-build
make install
- Test your Wine build

Code: Select all

WINEPREFIX=${HOME}/wine-test ${HOME}/winebuild/bin/wine winecfg
Locked