Hello,
I had interesting experience with WINE git tree compile. I'm using AMD64 system running Fedora Core 6 with NV GeForce 6600 GT. WINE 0.9.29 is available from Fedora extras and since it seems to run & install Half-Life 2 well enough, I decided to try it out. Unfortunately 0.9.29 won't display Half-Life 2 water reflections properly without messing other objects up. WINE 0.9.30 is not yet available as RPM-package for Fedora Core 6, so I thought to compile current (02 Feb 2007) WINE downloaded from git tree.
As usual, WINE/OpenGL still won't compile out of box on AMD64, so I googled for help and here's my findings:
1) To be sure, install newest drivers provided by NVidia Corporation with 32-bit compatibility libs. This will overwrite some stuff which is installed in Mesa- and some Xorg-packages.
2) Remove WINE 0.9.29.
Code:
rpm -qa | grep wine | xargs -p rpm -e
3) You need to add missing symlinks to required libraries on 32-bit side. Otherwise WINE configure will output warning:
configure: WARNING: Wine will be build without OpenGL or Direct3D support
configure: WARNING: because something is wrong with the OpenGL setup:
configure: WARNING: No OpenGL library found on this system.
Code:
cd /usr/lib/
ln -s libX11.so.6 libX11.so
ln -s libXext.so.6 libXext.so
ln -s libGLU.so.1 libGLU.so
4) Install all needed extra packages (like fontforge and freetype-devel, see configure output for needed stuff).
5) You need to instruct WINE configure to use 32-bit and /usr/lib for libraries.
Code:
CFLAGS="-m32 -L/usr/lib" LDFLAGS="-L/usr/lib" ./configure --with-x --with-opengl
Check for output and install missing devel-libraries if needed.
NOTE: You can check <wine-source-dir>/include/config.h and grep for OPENGL to check if it's defined.
If configure finishes without warnings, you're ready to go!
Code:
make depend && make
Install as root.
NOTE: As new WINE RPM-packages might appear to Fedora extras, keep your compile directory around for 'make uninstall'.
Results:
Well, nothing earth-shaking.
HL2 and HL2 Episode One will work as before.
Turning on HL2 water reflections will still mess up objects (barrels appear as sort of orange, vortigaunts too, movable wall objects have somewhat weird color). Also frame-rates dive about 30-40% when I turn GLSL on, so eventually I chose to play GLSL turned off.
Let's hope next WINE version will fix this. On the positive side, you can now take HL2 screenshots.