olegos2 / mobox

2.91k stars 130 forks source link

How to Compile Newest Wine (9.4) #301

Closed Jacobw1oo closed 6 months ago

Jacobw1oo commented 7 months ago

This is the first in a series, in getting the other wines, such as Proton, Lutris Ge's and lastly the Wine GE Proton lol (yes the wine that only plays League of Legends). Build failed working on it.

start

git clone https://github.com/Kron4ek/Wine-Builds cd Wine-Builds

install dependencies - i was missing debootstrapped and perl

create development environment (i only had to do it once)

./create_ubuntu_bootstraps.sh

edit build_wine.sh

around line 320 where going to add a sleep function so we can suspend the program before building

echo "pause for 10 secs so you can sneak patches" sleep 15

cd wine || exit 1

dlls/winevulkan/make_vulkan

tools/make_requests

and change wow64 to true on Line 55

export EXPERIMENTAL_WOW64="${EXPERIMENTAL_WOW64:-true}"

run build_wine.sh and Crtl-Z once you see the pause

./build_wine.sh

I change terminals now

getting ready to patch

cd ~/build_wine/wine

download the patches from mobox github

wget https://github.com/olegos2/mobox/tree/main/patches/fix-address-space.diff wget https://github.com/olegos2/mobox/tree/main/patches/ge-8-25.patch

applying patches (they mostly worked this way with having to path)

patch -p 1 -i ./fix-address-space.diff patch -p 1 -i ./ge-8-25.patch

time to resume and compile wine

back to 1st terminal

fg # yes fg is the command to resume

and it takes a while (like 90 mins) but in the Wine-Builds after complete you get

wine-9.4-staging-amd64.tar.xz wine-9.4-staging-x86.tar.xz or wine-9.4-staging-exp-wow64-amd64.tar.xz

Interesting error: /wine/dlls/winex11.drv/mouse.c:1788:84: error: ‘UINT16_MAX’ undeclared

Jacobw1oo commented 7 months ago

wine-staging 9.4 build fails on Debian 11, Ubuntu 20.04 and 22.04 it is a reported bug.

it fixed in 9.4.1, i will compile today.