I'm having a tough time figuring out how to compile Wine to support both 32-bit and 64-bit architectures on my Linux Mint system using XFCE. I've found that a certain productivity software I need doesn't work on Wine by default, but I've managed to find a way to tweak it by changing a line in the wintrust_main.c file. However, I'm running into issues in the compilation process.
After downloading the Wine repository and the necessary dependencies, I ran into trouble when I attempted to configure Wine for both architectures. Following the commands I used, I got an error indicating that the 32-bit development files weren't found, which prevents X support. Despite following instructions from the WineHQ guide, I suspect that some essential dependencies aren't being installed correctly. This is frustrating, especially since trying to resolve this issue led to some major problems with my OS, forcing me to reinstall it.
I'm really looking for help with this process because there doesn't seem to be a lot of information available on compiling Wine, and it's getting quite tedious. Any advice on how to get this right would be greatly appreciated!
3 Answers
Have you tried installing the required libraries for 32-bit support? You could run a command like `sudo apt install libx11-dev libx11-dev:i386`. If that doesn’t cover it, also try installing `xorg-dev` to see if it resolves the missing dependencies issue.
It sounds like you're making things a bit complicated for yourself. Instead of trying to configure and build Wine from scratch, why not focus on creating a .deb package for your changes? The Wine source package has everything you need, and if you patch that one line and build the .deb, it could be simpler than what you’re attempting now. Once you have the .deb, installing it should override the existing Wine installation with your modifications.
Yeah, it might seem confusing, but that's the beauty of .deb packages. Once you have the modified package ready, simply installing it through the package manager should apply your changes to Wine!
On a side note, it might be beneficial to use a different development environment for tackling projects like this. Consider trying out Distrobox, which can help prevent messing with your main OS while you test and compile.

I'm not totally clear on how a .deb package would help in this case. If I create the .deb package and want to tweak that file in the installed version of Wine, will just installing it do the trick? I'd love to get clear on how to do this properly.