olegos2 / mobox

2.87k stars 127 forks source link

How to compile wine for glibc #185

Open hisham2630 opened 8 months ago

hisham2630 commented 8 months ago

hello can you please show me the steps to compile wine for glibc? many thanks

olegos2 commented 8 months ago

Clone kron4ek's Wine-Builds repo. Execute setup script. In build_wine.sh first set DO_NOT_COMPILE=true and change wine version variables. Then execute the script and move downloaded source from ~/build_wine/wine to Wine-Builds folder. Download my ge-8-25.patch from mobox repo, and also fix-address-space.diff. Copy these patches to Wine-Builds folder and then:

cd Wine-Builds/wine
patch -p 1 -i ../ge-8-25.patch
patch -p 1 -i ../fix-address-space.diff

You'll probably get failed hunks at dlls/ntdll/unix, fix them manually. Then edit build_wine.sh again, change DO_NOT_COMPILE to false, set path to your patched wine sources in CUSTOM_SRC_PATH. Now you can build wine.

To build wine-ge-custom steps are similar, clone wine-ge-custom repo with submodules, except you'll need to manually change script in docker container to patch wine.

Building wine takes some time usually and you can't do this on your phone ofc

hisham2630 commented 8 months ago

many thanks for your efforts