Can't propertly build Wine from sources on RHEL based systems

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
raphaelbadawi
Newbie
Newbie
Posts: 2
Joined: Sat Feb 04, 2023 1:38 pm

Can't propertly build Wine from sources on RHEL based systems

Post by raphaelbadawi »

Hello,
I use a RHEL8-based system (AlmaLinux 8 ) and I'm trying to build Wine from sources since official repos have too old version (wine 6.x) and a flatpak install will raise sandbox issues when it comes e.g. to use VST instruments. The choice of the system is mandatory because of work. I'd like to avoid using a VM. In last resort I'll make a Windows dual boot but if I could avoid that it would be great.

I installed the following dependencies along with the group "Development Tools":
sudo dnf install alsa-plugins-pulseaudio.i686 glibc-devel.i686 glibc-devel libgcc.i686 libX11-devel.i686 freetype-devel.i686 libXcursor-devel.i686 libXi-devel.i686 libXext-devel.i686 libXxf86vm-devel.i686 libXrandr-devel.i686 libXinerama-devel.i686 mesa-libGLU-devel.i686 mesa-libOSMesa-devel.i686 libXrender-devel.i686 libpcap-devel.i686 ncurses-devel.i686 lcms2-devel.i686 zlib-devel.i686 libv4l-devel.i686 libgphoto2-devel.i686 cups-devel.i686 libxml2-devel.i686 openldap-devel.i686 libxslt-devel.i686 gnutls-devel.i686 libpng-devel.i686 flac-libs.i686 json-c.i686 libICE.i686 libSM.i686 libXtst.i686 libasyncns.i686 libedit.i686 liberation-narrow-fonts.noarch libieee1284.i686 libogg.i686 libsndfile.i686 libuuid.i686 libva.i686 libvorbis.i686 libwayland-client.i686 libwayland-server.i686 llvm-libs.i686 mesa-dri-drivers.i686 mesa-filesystem.i686 mesa-libEGL.i686 mesa-libgbm.i686 ocl-icd.i686 pulseaudio-libs.i686 sane-backends-libs.i686 unixODBC.i686 samba-common-tools.x86_64 samba-libs.x86_64 samba-winbind.x86_64 samba-winbind-clients.x86_64 samba-winbind-modules.x86_64 mesa-libGL-devel.i686 fontconfig-devel.i686 libXcomposite-devel.i686 libtiff-devel.i686 openal-soft-devel.i686 alsa-lib-devel.i686 gsm-devel.i686 libjpeg-turbo-devel.i686 pulseaudio-libs-devel.i686 pulseaudio-libs-devel gtk3-devel.i686 libattr-devel.i686 libva-devel.i686 libexif-devel.i686 libexif.i686 glib2-devel.i686 mpg123-devel.i686 mpg123-devel.x86_64 libcom_err-devel.i686 libcom_err-devel.x86_64 libFAudio-devel.x86_64 gnutls-devel libjpeg-turbo-devel libpng-devel libtiff-devel libxslt-devel

wine64 installs fine:
./configure --enable-win64
make depend
make
sudo make install

but I also need wine32 and this is when the problems arise ; in a sibling folder I do:
./configure --with-wine64=../wine64-build # the sibling build folder for 64-bit wine is actually called like this
make depend
make
sudo make install

./configure actually raises a freetype dependency issue, though freetype-devel.i686 is installed on my machine, so at first I installed without it:
./configure --with-wine64=../wine64-build --without-freetype
and the install went fine

But afterwards, when I try to install some stuff with wine64, I have the following error:
0110:err:syslink:SYSLINK_SetFont Failed to create link font!

So I guess a build with freetype is needed after all ^^"

According to the ./configure error output, the missing header is: ftconfig.h

I located it in my machine with find command: it's in /usr/include/freetype2/

So I ran ./configure --with-wine64=../win64-build --with-freetype-dir=/usr/include/freetype2/

Still the same... I spent the whole day on this I begin to feel desperate. If anyone has any clue, it would be gladly welcome :-)

Thanks,
R.

P.S. : the wine version I try to build is the latest on this day (8.1)
raphaelbadawi
Newbie
Newbie
Posts: 2
Joined: Sat Feb 04, 2023 1:38 pm

Re: Can't propertly build Wine from sources on RHEL based systems

Post by raphaelbadawi »

Ok my apologies I finally found a way, which is rebuilding RHEL wine rpm packages after having installed some 32-bit build dependencies, following step by step the instructions given here: https://forum.level1techs.com/t/32-bit- ... s-8/151800 (ok some wine dependencies must also be rebuilt and the wine rpm spec file must be patched, but the entire operation is pretty straightforward and take about ten minutes)

I confirm running a working wine instance on RHEL is a true pain, especially since RHEL did zero effort on this 32-bit compatibility issue. But I guess this way to solve this issue may be useful if other users hit the same issue, so I'll just leave that here.
Locked