Is there an easy way to compile Wine?
Is there an easy way to compile Wine?
I have a 64 bit machine, and want to compile Wine (with slightly altered source code) but I can't believe how difficult this is. Is there a step by step guide to doing this for 64 bit and 32 bit machines? And is there a way to save this custom version of Wine so I can put it on a different PC?
- olivierfrdierick
- Level 5
- Posts: 258
- Joined: Thu Sep 13, 2012 12:09 pm
Re: Is there an easy way to compile Wine?
The FAQ and the Wiki have plenty of guides on how to compile Wine for various architectures and systems.
The easiest is to compile Wine from GIT.
The steps can be summed to:
- Install development packages (once).
- Install runtime library packages (once).
- Set missing symlinks for some libraries (once).
- Download source code from git or refresh to latest version.
- add new patches (git keeps patches once they are applied).
- configure, make, make install.
I personnaly found no need to use containers or chroot. I compile Wine 32bit on Debian 64bit. The only thing that I have to do is export CFLAGS='-m32' before configure. That makes a 32bit Wine. I, however, have never tried to do a biarch (32bit and 64bit) install.
You cannot copy Wine from one computer to another unless they use the same system with the same set of libraries and the same configuration. If they are identical, then you may copy the files to the same place, but it is much more easier and safer to compile on each computer.
Links: FAQ - The Official Wine Wiki - Compiling Wine, WineOn64bit - The Official Wine Wiki
The easiest is to compile Wine from GIT.
The steps can be summed to:
- Install development packages (once).
- Install runtime library packages (once).
- Set missing symlinks for some libraries (once).
- Download source code from git or refresh to latest version.
- add new patches (git keeps patches once they are applied).
- configure, make, make install.
I personnaly found no need to use containers or chroot. I compile Wine 32bit on Debian 64bit. The only thing that I have to do is export CFLAGS='-m32' before configure. That makes a 32bit Wine. I, however, have never tried to do a biarch (32bit and 64bit) install.
You cannot copy Wine from one computer to another unless they use the same system with the same set of libraries and the same configuration. If they are identical, then you may copy the files to the same place, but it is much more easier and safer to compile on each computer.
Links: FAQ - The Official Wine Wiki - Compiling Wine, WineOn64bit - The Official Wine Wiki