FreeType 32-bit development files not found (Fedora 40, Wine Build)

I’ve been trying to build a custom Wine version to install the two apps I really need from Windows that have no adequate Linux replacement (Affinity Designer + Photo), and I’ve been modifying build instructions from GitHub - daniel080400/AffinityLinuxTut: Tutorial on how to install Affinity Serif apps on Linux (Debian12) to what Fedora requires to the best of my ability.

Just in case someone wonders why I’m trying to build this instead of using the Wine software that already exists:

  • Wine by default fails to run the app
  • Bottles does better on one of it’s custom Wine builds it provides but Affinity fails to load due to a missing Windows Runtime relating to store authentication (can’t remember the name).
  • This is the only custom version of Wine I’m aware of that addresses the things Affinity needs, as it in part uses a Windows Store authentication DLL for registration codes.

So i’ve been slowly attempting and learning about this over the past few days and while I can get the 64-bit component of Wine to configure and build successfully, the configuration process for the 32-bit Wine component fails.

configure: error: FreeType 32-bit development files not found. Fonts will not be built.
Use the --without-freetype option if you really want this.
  • I’m using the following command - PKG_CONFIG_PATH=/usr/lib/pkgconfig /home/$USER/Documents/ElementalWarrior-wine/configure --with-wine64=/home/$USER/Documents/ElementalWarrior-wine/wine64-build --prefix=/home/$USER/Documents/ElementalWarrior-wine/wine-install

  • I’m aware that to install 32-bit development packages, you generally have to append -devel.i686 to the name of the package, and as far as I’m aware there’s only one relevant freetype package after searching with

  • Installing the ..i686 version of x11 fixed a previous error of this nature involving X11, but not this one.

  • There is a freetype2.pc file in /usr/lib/pkgconfig .

  • In the config.log files for the package process it indicates that the dependencies for freetype aren’t present, which is weird as I thought dnf would have installed any dependencies?

  • I managed to locate and get most of those packages installed, but there’s one last package that refuses due to a conflict that I don’t know how to resolve.

Error: Transaction test error:
  file /usr/share/gir-1.0/GLib-2.0.gir from install of glib2-devel-2.80.2-1.fc40.i686 conflicts with file from package glib2-devel-2.80.2-1.fc40.x86_64

This is relevant configure.log file section

configure:16588: freetype2 cflags: 
configure:16589: freetype2 libs: -L/usr/lib -lfreetype
configure:16591: freetype2 errors: Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glib-2.0', required by 'harfbuzz', not found
configure:16597: checking for ft2build.h
configure:16597: gcc -m32 -c -g -O2   conftest.c >&5
conftest.c:147:10: fatal error: ft2build.h: No such file or directory

Any help would be greatly appreciated.

I figured it out and the clue was in the Transaction test error - for some reason the 32 and 64-bit development packages conflict, so I had to uninstall the 64-bit package for the 32-bit version.

Though the bigger solution to my problem of building a custom version of Wine is to just follow this guide - affinity-wine-docs/ at guide-wine8.14 - wanesty/affinity-wine-docs - :smiley: