I’ve been having some problems building and installing wine 1.5.13 on Debian Sid (64-bit). 1.5.5 is available as .deb from winehq, but 1.5.13 introduces the raw input patch is needed in order for the mouse-view to work in Kerbal Space Program
Please not that this was written down after I actually got everything up and running, so while everything might not be totally accurate, it should be enough to get you close.
Before building, install gcc4.7 to enable -m32
Then, install the following packages:
sudo apt-get install xserver-xorg-dev:i386 libfreetype6-dev:i386
To avoid ./configure complaining about some missing fonts, create a symbolic link from freetype in /usr/include:
sudo ln -s /usr/include/freetype2/freetype /usr/include/
Now try to run configure. If you get messages saying that packages are missing, do a quick search using aptitude to find the package. Please note that I placed wine in a separate directory under /opt (which needs to be created before running configure). If you prefer the defaults, remove the –prefix parameter.
./configure -v CC="gcc-4.7 -m32" LDFLAGS="-m32 -L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32" --prefix="/opt/wine-1.5.13/"
Now, try to build wine:
If you get complaints of 64/32-bit incompatibilities, run
make -C libs/wine clean all
to reset and then try again. If the problem persists, you are probably using some wrong packages, the wrong gcc-version, or something similar.
In order to check that you don’t mess up, simulate an install and log to /tmp/wineinstall. Check that make tries to move files to the correct prefix dir.
make install --dry-run > /tmp/wineinstall
If everything works, do
sudo make install
This recipe more or less worked for me. After having said that though, I’ve had a few problems with my setup, so it might be so messed up that this only works for me.