These are some (hopefully) helpful tips to compile https://github.com/Tk-Glitch/wine-tkg on Ubuntu 20.04.
When compiling wine 64 (https://wiki.winehq.org/Building_Wine#64-bit_Packages), it is ok to have the following dependencies missing:
...
configure: creating ./config.status
config.status: creating Make.tmp
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: linking ../wine-tkg/tools/winewrapper to wine
config.status: linking ../wine-tkg/tools/winewrapper to wine64
config.status: executing include/stamp-h commands
config.status: executing tools/makedep commands
config.status: executing Makefile commands
configure: libOSMesa 64-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: pcap 64-bit development files not found, wpcap won't be supported.
configure: libhal 64-bit development files not found, no legacy dynamic device support.
configure: libsane 64-bit development files not found, scanners 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: gstreamer-1.0 base plugins 64-bit development files not found, GStreamer won't be supported.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libSDL2 64-bit development files not found, SDL2 won't be supported.
configure: libFAudio 64-bit development files not found, XAudio2 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: libmpg123 64-bit development files not found (or too old), mp3 codec won't be supported.
configure: vkd3d 64-bit development files not found (or too old), Direct3D 12 won't be supported.
configure: libldap (OpenLDAP) 64-bit development files not found, LDAP won't be supported.
configure: WARNING: libxslt 64-bit development files not found, xslt won't be supported.
configure: Finished. Do 'make' to compile Wine.
For the 32 bit wine build (with whe 64 bit included; both are needed as combined unit), the following dependencies can be missing:
...
config.status: linking tools/winewrapper to wine64
config.status: executing include/stamp-h commands
config.status: executing Makefile commands
configure: libOSMesa 32-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: OpenCL 32-bit development files not found, OpenCL won't be supported.
configure: pcap 32-bit development files not found, wpcap won't be supported.
configure: libhal 32-bit development files not found, no legacy dynamic device support.
configure: libgnutls 32-bit development files too old, bcrypt encryption won't be supported.
configure: libsane 32-bit development files not found, scanners won't be supported.
configure: libusb-1.0 32-bit development files not found (or too old), USB devices won't be supported.
configure: libv4l2 32-bit development files not found.
configure: libgphoto2 32-bit development files not found, digital cameras won't be supported.
configure: libgphoto2_port 32-bit development files not found, digital cameras won't be auto-detected.
configure: liblcms2 32-bit development files not found, Color Management won't be supported.
configure: gstreamer-1.0 base plugins 32-bit development files not found, GStreamer won't be supported.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libFAudio 32-bit development files not found, XAudio2 won't be supported.
configure: libcapi20 32-bit development files not found, ISDN won't be supported.
configure: libcups 32-bit development files not found, CUPS won't be supported.
configure: libgsm 32-bit development files not found, gsm 06.10 codec won't be supported.
configure: libkrb5 32-bit development files not found (or too old), Kerberos won't be supported.
configure: jxrlib 32-bit development files not found, JPEG-XR won't be supported.
configure: libtiff 32-bit development files not found, TIFF won't be supported.
configure: libmpg123 32-bit development files not found (or too old), mp3 codec won't be supported.
configure: libopenal 32-bit development files not found (or too old), OpenAL won't be supported.
configure: vkd3d 32-bit development files not found (or too old), Direct3D 12 won't be supported.
configure: libldap (OpenLDAP) 32-bit development files not found, LDAP won't be supported.
configure: WARNING: libxml2 32-bit development files not found (or too old), XML won't be supported.
configure: WARNING: libxslt 32-bit development files not found, xslt won't be supported.
configure: WARNING: libgnutls 32-bit development files not found, no schannel support.
configure: WARNING: libjpeg 32-bit development files not found, JPEG won't be supported.
configure: Finished. Do 'make' to compile Wine.
It is certainily possible that you can have missing a couple more but at least you know for the ones above that they can be disregarded.
To clean some missing dependencies up you generally get away with asking apt
for the beginning of the lib name.
Like when it sais that it is missing libpulse
you could aks apt list libpulse\*
and you would find a libpulse-dev
which
you then in turn pass to apt
like apt install libpulse-dev
.
Sometimes there are version numbers in there and such, but you can always uninstall what you installed.
For 32 bit wine you need the 32 bit dev libraries.
Just append :i386
to the library name, like apt install libpulse-dev:i386
.
There is a possiblity that you get some kind of errors for that but try googling for "ubuntu enable apt multi arch" or "ubuntu apt install 32 bit" or something then.
Since there were a lot of 32bit libs missing, I used apt install libgtk-3-dev:i386
as a kind of carrier for dependencies.
We don't ned gtk specifically, but it pulls a lot of dependencies we need too, and it makes later uninstallation a easier because we then only need to uninstall it.
For example, it fixed the xcursor, xcompositor, xshmem and a couple others.
I also installed apt install libsdl2-dev:i386 libpulse-dev:i386 libudev-dev:i386 libvulkan-dev:i386, libdbus-1-dev:i386 libfreetype-dev:i386 bison
They might not be all needed, but without the last installes, the launcher would crash.
UPDATE: Hint: if you want to install any microsoft c++ redistributable later (like for arcdps (maybe)) then you also need libxml2 (32bit)!