Building wine on Fedora

Questions about Wine on Linux
Locked
mimillie
Newbie
Newbie
Posts: 2
Joined: Sun Sep 19, 2021 8:10 am

Building wine on Fedora

Post by mimillie »

Hello,

So I try to build a patched wine 6.7 version but I always run into issues when building...
I manage to get a build but it isn't really working ex: winecfg doesn't show up anything requiring png won't too... I noticed that when I do

Code: Select all

./configure --enable-win64 --without-freetype
I get these errors :

Code: Select all

config.status: executing Makefile commands

configure: libxcursor 64-bit development files not found, the Xcursor extension won't be supported.
configure: XShm 64-bit development files not found, X Shared Memory won't be supported.
configure: XShape 64-bit development files not found, XShape won't be supported.
configure: libXxf86vm 64-bit development files not found, XFree86 Vidmode won't be supported.
configure: libxrandr 64-bit development files not found, XRandr won't be supported.
configure: libxinerama 64-bit development files not found, multi-monitor setups won't be supported.
configure: libxcomposite 64-bit development files not found, Xcomposite won't be supported.
configure: libOSMesa 64-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: libhal 64-bit development files not found, no legacy dynamic device support.
configure: libgnutls 64-bit development files too old, bcrypt encryption won't be supported.
configure: libv4l2 64-bit development files not found.
configure: libgphoto2 64-bit development files not found, digital cameras won't be supported.
configure: libgphoto2_port 64-bit development files not found, digital cameras won't be auto-detected.
configure: liblcms2 64-bit development files not found, Color Management won't be supported.
configure: libpulse 64-bit development files not found or too old, Pulse won't be supported.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi20 64-bit development files not found, ISDN won't be supported.
configure: libcups 64-bit development files not found, CUPS won't be supported.
configure: libgsm 64-bit development files not found, gsm 06.10 codec won't be supported.
configure: jxrlib 64-bit development files not found, JPEG-XR won't be supported.
configure: libtiff 64-bit development files not found, TIFF won't be supported.
configure: libopenal 64-bit development files not found (or too old), OpenAL won't be supported.
configure: libvulkan and libMoltenVK 64-bit development files not found, Vulkan won't be supported.
configure: libldap (OpenLDAP) 64-bit development files not found, LDAP won't be supported.

configure: WARNING: libxrender 64-bit development files not found, XRender won't be supported.

configure: WARNING: libxslt 64-bit development files not found, xslt won't be supported.

configure: WARNING: libgnutls 64-bit development files not found, no schannel support.

configure: WARNING: libjpeg 64-bit development files not found, JPEG won't be supported.

configure: WARNING: libpng 64-bit development files not found, PNG won't be supported.

configure: WARNING: No sound system was found. Windows applications will be silent.

configure: Finished.  Do 'make' to compile Wine.

So I tried to install a lot of dependencies but nothing to do... still having the same issue. (already install all deps mentioned in winehq website https://wiki.winehq.org/Fedora)
even with those errors, I'm able to build and run it but it doesn't work like expected.

Thanks
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: Building wine on Fedora

Post by invisible kid »

Just a regular user here... In my experience, some missing packages won't have an impact, but some definitely will. Missing libgnutls would definitely cause issues for me. I can't give you a quick rundown on each item though. Obviously for the sound stuff you will need either oss/alsa or pulse or both. Good luck to you.
mimillie
Newbie
Newbie
Posts: 2
Joined: Sun Sep 19, 2021 8:10 am

Re: Building wine on Fedora

Post by mimillie »

invisible kid wrote: Mon Sep 20, 2021 8:01 am Just a regular user here... In my experience, some missing packages won't have an impact, but some definitely will. Missing libgnutls would definitely cause issues for me. I can't give you a quick rundown on each item though. Obviously for the sound stuff you will need either oss/alsa or pulse or both. Good luck to you.
Well actually I think there are some missing one that break my build... but these libs are installed but seems not detected...

Thanks for the luck ^^
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: Building wine on Fedora

Post by invisible kid »

Ahhh, the only thing left to do there is to confirm the exact library name needed and why it's not finding it. Sometimes this command is useful:

Code: Select all

ldd /usr/bin/wine
But to "fix" the issue, sometimes you just need to create a symbolic link like:

Code: Select all

ln -s libncursesw.so libncurses.so
Other times you need to create/fix a .pc file in /usr/lib(32)/pkgconfig.
And yet other times you need to turn off an option in ./configure or pass a value or have a value set in the environment. For example, before i compile wine I need to do this:

Code: Select all

export PATH=${PATH}:/opt/mingw-w64/bin:/opt/mingw-w32/bin
So it will find the mingw compiler. I also do these:
64 bit:

Code: Select all

../configure         \
--prefix=/usr        \
--sysconfdir=/etc    \
--localstatedir=/var \
--libdir=/usr/lib64  \
--enable-win64       \
--without-gstreamer  \
--without-oss        \
--without-xrandr     \
--without-xxf86vm
32 bit:

Code: Select all

PKG_CONFIG_PATH=/usr/lib32/pkgconfig ../configure \
--prefix=/usr        \
--sysconfdir=/etc    \
--localstatedir=/var \
--libdir=/usr/lib32  \
--without-gstreamer  \
--without-oss        \
--without-xrandr     \
--without-xxf86vm    \
--with-wine64=../wine64-build
Also, it looks like some of the "missing" libraries are for XWindow. Wonder what the connection is there...
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: Building wine on Fedora

Post by invisible kid »

Forgot to mention the more obvious. Scour the ./configure output for any info and open ./configure with an editor if you need more detail on what could be going wrong.
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: Building wine on Fedora

Post by invisible kid »

Example of my png libs:

Code: Select all

lrwxrwxrwx 1 root root      11 Sep  8  2020 libpng.la -> libpng16.la
lrwxrwxrwx 1 root root      11 Sep  8  2020 libpng.so -> libpng16.so
-rwxr-xr-x 1 root root     931 Sep  8  2020 libpng16.la
lrwxrwxrwx 1 root root      19 Sep  8  2020 libpng16.so -> libpng16.so.16.35.0
lrwxrwxrwx 1 root root      19 Sep  8  2020 libpng16.so.16 -> libpng16.so.16.35.0
-rwxr-xr-x 1 root root 1104064 Sep  8  2020 libpng16.so.16.35.0
Schorsch
Level 1
Level 1
Posts: 6
Joined: Sun Jan 12, 2020 12:42 pm

Re: Building wine on Fedora

Post by Schorsch »

mimillie wrote: Sun Sep 19, 2021 8:19 am
So I tried to install a lot of dependencies but nothing to do... still having the same issue. (already install all deps mentioned in winehq website https://wiki.winehq.org/Fedora)
even with those errors, I'm able to build and run it but it doesn't work like expected.

Thanks
Well I am probably a bit late here, but maybe I can still be helpful.

These are a lot of missing dependencies and I would NEVER compile wine in this state. If you can't or don't want to install some of them throw them out with the --without-name parameter.

As for your later claim that the dependencies aren't detected, this is probably not true (I can't look into your system to verify ;) ), but the configure script should detect them, if they are there. As I understand it, you only installed the packages mentioned in the Fedora build article. However there is a notice there, that the list is incomplete. For instance, "libpng-devel.i686" gets installed there. However i686 means it's the 32bit version, but you want to build a 64bit wine, so it is naturally looking for the probably not installed x86_64 version. Go and try to figure out what the name of the dependencies is and install them (pro tip, it's usually name-devel.x86_64). You can't find and install all of them by this method, and since I am not Fedora user and don't know much about there package management I can't help you out there. Another special case is libhal, that package is at least under Ubuntu not available, because it's really outdated and from what I know it is generally recommended to just leave it out via --without-hal.
Locked