Please post any new messages & test to the latest version AppDB page
How to install wine so that World of Warcraft Works !
HowTo added : 17/Mar/2006, N.Law
Last Updated : 18/June/06 by Nick Law
For a history of changes to this HowTo, see end of document
This how to describes how to install the latest copy of wine that works almost perfectly with World of Warcraft. (see below for known deviations). It describes how to download the wine source archive, how to apply the mandatory patch to wine, how to compile and link the wine sources, download a couple of important .dll files, initialise wine for the first time, make some mandatory changes to Wows Config.wtf file, check you really are running 3D graphics drivers on your video card and finally run the game. References to the wine source archive, patch file and dll files are all hyperlinks. Just click on them to download straight away.
Also before you start, read through the troubleshooting section at the end of this howto, which lists some of the common problems that you may encounter.
Finaly, make sure you follow the procedure carefully as a single line missed out will mean your installlation will not work properly with wow. if you find any errors please let either Nick, Julian or Alexander know. [The WoW AppDB maintainers].
Because we are applying a patch to the source code of wine, the computer you are running this procedure on needs to be setup so that all the necessary libaries / sources / headers that are required to compile wine are available. By far the easiest method to use is to select the development option from your distributions installer. For example if you are using the Suse distribution, use YAST and select the entire development package to install. This takes care of all the dependencies required by wine.
If however you wanted to select the packages one by one, then the wine wiki has a list of all the libraries that are required.
But my recommendation is to do it the easy way and install all the development software from your distribution.
Wine bz2 archives and the Wine Patches needed for WoW
If you are running Wow and you cannot target characters then applying this patch to wine will fix the targeting problem (irrespective of the graphics card used) and Shader Problems (with NVidia Graphic Cards). To download the patch, see below.
Latest wine archive and patch
Here is the patch for wine 0.9.15. It modifies preloader.c and mmap.c in order to correct the targetting problem. The "wow.new.patch.0.9.15" patch is in fact the "wow.new.patch.0.9.13-1" under a different name. The "wow.new.patch.0.9.13-1" will patch wine versions 0.9.13, 0.9.14 and 0.9.15 correctly.
For your convenience here are links to recent wine archives and their patches should you want to use an older version of wine. All these patches modify preloader.c and mmap.c in order to fix the targeting bug, while the older patches also modify opengl.c and wgl.c.
The patches make changes to the source files ../libs/wine/mmap.c, ../dlls/x11drv/opengl.c ../dlls/opengl32/wgl.c and ../loader/preloader.c
Applying patches to wine, compiling and Installing
This procedure assumes you are downloading wine version 0.9.15 and and the corresponding patch from the hyperlinks above. It also assume you have the gcc development environment installed, this is standard on most if not all linux distributions.
First check gcc is installed, this displays the version number of gcc, for instance on my system it displays gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux), what version it displays is not important just as long as it displays something, rather than any file not found messages.
> gcc --version
Next you need to download and install wine from a source archive and compile and link it. Here is how you do it..
To start, login in as a normal user, not root. (You will need to be root when you enter the "make install" command later)
-Download your wine source archive (see the download links above) and save it somwhere. For the purposes of this explanation I will use /home/[yourlogin]/downloads/wine
If there is an existing /home/[yourlogin]/downloads/wine/wine/ directory then rename it > mv wine wine-old // Do not confuse"wine" with the hidden ".wine" in /home/[yourlogin]/
> cd /home/[yourlogin]/downloads/wine // change to the directory where you stored the acrchive
> tar -xvjf wine-0.9.15.tar.bz2
// extract the source from the archive, this will create the
> mv wine-0.9.15 wine // we change the directory to just "wine" because that is what the patch expects
- Download the appropriate "wow.new.patch" patch depending on which version of Wine you are installing(see download links above) and copy it to /home/[yourlogin]/downloads/wine/ (Important ! Where you copy the patch is important it should be in the same directory as the wine-0.9.15.tar file)
Use the appropriate name for the patch file in the command below i.e use "wow.new.patch.preloader.and.mmap.0.9.12" if installing wine version 0.9.12 use "wow.new.patch" if your installing wine version 0.9.9 & 0.9.10 use "wow.new.patch.0.9.11" if you are installing wine version 0.9.11 use "wow.new.patch.0.9.13-1" if you are installing wine version 0.9.13, 0.9.14, 0.9.15
We are installing wine V0.9.15, so this is the command to use. Yes I know it says 0.9.13-1, that is correct)
> patch -p0 < wow.new.patch.0.9.13-1 // Apply the patch
If it complains about not being able to find files makesure you have the patch in the correct directory as described above and check you have actually unpacked the source... look for the mmap.c file etc..
This is the output it should produce if it finds the
files it needs to patch...
> ./configure // always check the last few lines of the ./configure output for missing dependencies errors etc. // If configure reports any problems then in most cases you will need to resolve the problem reported // before continuing with the installation. With the release of 0.9.12 configure may complain about a // couple of missing font programs. I tried installing these but whether you really need them I don't know.
> make depend
> make // Time to make a coffee
The next command requires root privileges. Although you should
never run Wine as root, you will need to install it this way.
> su then enter the root password
# make install
Exit superuser or root, then type ...
> wine // Run wine without any application specified in order to create the .wine directory in your home directory. The .wine directory contains the "drive_c" directory and its subdirectories "Program Files", "Windows" etc ... If .wine already exists, then that is ok, it will not delete any of the existing contents i.e. your already installed wow installation or other windows programs will not get deleted.
> wine --version // This command reports the version of wine, it should match the version you just installed. If it does not match the version you think you installed, you have done something wrong. See if you can figure out what went wrong. If you can't figure out what went wrong, just start again from the beginning.
The following DLL file is required. Click on the name below in order to download it, then unzip it and place it in the following directory ... /home/[your login]/.wine/drive_c/windows/system32/
You may also need to install riched20.dll and riched32.dll in /home/[your login]/.wine/drive_c/windows/system32 if experience the wow installer crashing when you click on the "Install Wow" button. (See troubleshooting for further information)
The installation is hopefully quite straightforward, but varies slightly between distrubutions. See the HOWTO - WoW Installation" on this page for how installation works on SuSE. The installation procedure that follows should hopefully work on your system, if not take a look at the way installation works on a SuSe system. The procedure below assumes your CD mountpoint is /mnt/cdrom, substitute it with what it is on your system.
# cd /mnt
Insert the first CD
# mount cdrom
# wine cdrom/installer
Start the installation. When it wants the next CD, do the following
# umount cdrom
Insert next CD
# mount cdrom
Press the OK/Continue button
forget to apply the following settings to ../.wine/drive_c/Program
Files/World of Warcraft/WTF/Config.wtf otherwise you may not get any
or stuttering sound!
SET gxApi "opengl" //forces wow to run in opengl without having to append --opengl to wow.exe SET ffxDeath "0"
If you experience stuttering or otherwise bad sound, add the following options as well. SET SoundOutputSystem "1" SET SoundBufferSize "150"
SET SoundBufferSize "232"
on seems to work better with this card # lspci |grep Multimedia 00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC97 Audio Controller (rev 03)
# glxinfo | grep rendering // And finally maksure you really do have a working 3D graphics card driver.
If it says that you do not have direct rendering, you need to install and activate the appropriate drivers for
your graphics card.
# winecfg // Use this to configure Wine.
Also, if your fonts in winecfg look a bit small and strange compared to how they would look under windows copy the windows font files into /home/name/.wine/drive_c/windows/fonts. This will make a big improvement to this and other applications.
If everything has worked so far, try playing the game ... (note the different command if you are using Fedora Core 5 )
# cd "/home/[yourlogin]/.wine/drive_c/Program File/World of Warcraft"
For most distributions (other than Fedora Core 5 ) use this command to start Wow ...
# wine WoW.exe // you will not need to use the -opengl suffix with our Config.wtf (although you can if want to)
however if you are using Fedora Core 5 then use this command ..
# setarch i386 -L wine WoW.exe -opengl
If you find that your login screen is upside down, your not running in opengl mode, then review the section above regarding modifying config.wtf. Did you forget to add the opengl line to config.wtf ?
After you login does wow appear to hang ?, then review the troubleshooting section below, specifically regarding changing the permissions of Survey.mpq.
Additional Notes regarding deviations:
Abbreviations SP = Stops Play mPC = Prevents configuration but the game is still very playable. MPC = Prevents configuration but introduces limitations to make the game difficult to play. Co = Cosmetic - Nice if it worked but not important as regards playing the game.
(mPC) Changing video setting in game has been reported as crashing the game. (Details required)
(SP, intermittent) The wow backgrounddownloader.exe window pops up in front of the main WoW screen, from time to time. If you click cancel then you main Wow window goes black and you have to kill the task, [Cntrl][alt][esc] and then click left on the window (works on Suse, do not know about other distributions). This problem occurs in virtual window mode and in full-screen. One solution is to just move the Backgrounddownloader.exe window out of the way and forget about it.
Troubleshooting - common errors and their solutions.
This section lists many of the common problems you might encounter while compiling & patching wine and installing & running WoW. So if you know of a problem & solution let us know and we will put it here.
Problem #1- opengl32 not found when running wow.exe
You installed the patch,compiled and installed wine & wow then when you try to run wow you get the following error message which may also mention glu32 as well as opengl32 not being found:
guest@linux:~/.wine/drive_c/Program Files/World of Warcraft> wine wow.exe
err:module:import_dll Library OPENGL32.dll (which is needed by L"C:Program Files/World of Warcraft/wow.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"C:/Program Files/World of Warcraft/wow.exe" failed, status c0000135
Solution : check that /usr/local/lib/wine/opengl32.dll.so has ownership of root:root and permissions -rwxr-xr-x, if it does not then you may have not been super user when you ran the "make install" command. become superuser and repeat the make install command as shown in the howto. Do not just change the ownership/permissions of opengl32.dll.so as probably all the other files are wrong too, so do a make install.
Problem #2 - Wow appears to hang when downloading dialog pops up on screen
This problem is caused by the Survey.mpq file, the solution is to give it write permissions. In the majority of cases this should be sufficient to correct the problem, however for some people (myself included) simply deleting it has worked. So the advice is, FIRST try changing the permissions as described below, and then only if this does not work (if almost certainly will work), then try deleting it. It has been reported that if you delete Survey.mpq, wow simply creates it again and you have the same problem, hence why you should try changing the permissions first.
cd /home/[yourlogin]/.wine/drive_c/Program Files/World of Warcraft/WDB chmod ugo -w Survey.mpq
if chmod for some reason did not work, then try rm Survey.mpq
Problem #3 - When installing WoW, clicking on the "Install World of Warcraft" button causes the Wow installer to crash.
To fix the Wow installer from crashing when you click on the "Install World of Warcraft" button just download these two dlls (riched20.dll and riched32.dll) into /home/[your login]/.wine/drive_c/windows/system32
You will also need to add riched20 and riched32 to the dll overide section on the Libraries tab in wincfg. Select native then builtin for each of these. You may only need to have these overides in place while you install the game. Although I have both these files in my system32 folder I do not have any overides set for playing the game. [Nick]
18/Jun/06 By Nick Law Changes to howto re. survey.mpq. Added Mandatory Requirements section, i.e. making sure you have the necessary development packages installed.
14/Jun/06 by Nick Law Added downloader causing wow to hang to troubleshooting Added Installer crashing to the troubleshooting section.
09/Jun/06 by Nick Law Added 0.9.15 source & patch, changing text accordingly.
01/June/06 by Nick Law Added different start command for Fedora Core 5.
30/May/06 by Nick Law Check that gcc installed, made minor grammatical changes to text.
25/May/06 by Nick Law Added the patch for 0.9.14 and updated the text to reflect the change. It is actually just the 0.9.13 patch
19/May/06 by Nick Law Added the patch for 0.9.13 and updated the text to reflect the change.
08/May/06 by Nick Law Added a comment to always check the last few lines of the ./configure output for missing dependencies etc.
21/Apr/06 by Alexander N. Sørnes Simpified
Wine extraction (-j option to tar instead of using bunzip2), changed "system" to "system32", as "system" is win9x and "system32" is win2k (which
Wine normally runs as). Also confirmed that the pop-up window
occurs in full-screen mode, and that it is not a problem with Wines
new window code.
14/Apr/06 Nick Law Added a new patch for 0.9.12, This patch is the same as the patch for 0.9.11 but without the opengl changes. The patch for 0.9.12 makes changes to just two files, those being mmap.c and preloader.c both these patches are required to correct the targeting issue. If you run wine without these patches when you click on another player or non player character (NPC) they will not be targetted. The preloader and mmap patches fix these issues. Tried to simplify the installation process by removing much of the comments about 0.9.9 etc
06/Apr/06 Nick Law Moved installation of DLL from after Wow installation to before, changed location that DLL should be copied to as ../drive_c/windows/system and not system32, and note about disabling exec-shield in Fedora.
05/Apr/06 by Nick Law Added a know deviation (Backgrounddownloader.exe). Moved Howto history to end of document, with last updated at the beginning.
04/Apr/2006 by Nick Law Corrections to typos, layout change re downloads.
03/Apr/2006 by Nick Law - Added HOWTO on installation of WoW under SuSE. Made reference to the HOWTO on installation of wow in the main wine installation/patch procedure.
31/Mar/2006 by Nick Law - Changed hyperlink from downloading 0.9.9 to download 0.9.10
30/Mar/2006 by Alexander N. Sørnes - Removed msvcp60.dll, since it does not seem to be required.
28/Mar/2006 by Alexander N. Sørnes - Make the sound configuration changes optional, as it works out-of-the-box for some cards/drivers.
27/Mar/2006 by Julian Kinne - Minor Changes in "Finishing" Part and Links. It does not matter what type of win os you choose and virtual mode is not needed cause of ingame function for "windowed" mode.
26/Mar/2006 by Alexander N. Sørnes - fixed dead link for msvcp60, added installation instructions and removed note about
cinematics button not working as it works fine. Also added an easier
method for detecting direct rendering. Some changes to the layout.
Edited : 22/Mar/2006 by N.Law - applied hyperlinks for all downloads,
added wine initialisation lines, added additional mv commands and
details about using wine 0.9.10 as opposed to 0.9.9. removed all the
stuff about 0.9.10 breaking wow if you have an ATI card. It Works just
fine whether you have Nvidia or ATI.
Edited : 19/Mar/2006 by N.Law - added info re msvcp60.dll & mfc42.dll and minor change to example path,addition of reference to wow v1.9.4, notes regarding deviations.
Keywords : Installation of WoW on Linux wine World of Warcraft
The Maintainers use the following systems to test the latest version of wine with WoW
~~ Nick Law ~~
System #1 Distribution: SuSe 9.3 CPU: Pentium 4 3.0GHz CPU Memory: 1Gbyte Video Card: ATI 9550 256 MByte Video Driver: ATI 8.25.18 Comments:C
System #2 Distribution: SuSe 9.3 CPU: Pentium 4 3.0GHz CPU Memory: 1Gbyte Video Card: ATI 9550 256Mbyte Video Driver: ATI 8.25.18 Comments: R
~~ Alexander Nicolaysen Sørnes ~~
System #1 Distribution: Gentoo Linux CPU: Intel Pentium 4 2.8 GHz CPU Memory: 1 GB Video Card: nVidia GeForce 6600 GT 256 MB Video Driver: 1.0-8762 Comments: Runs fine with all graphics settings set to max at 1600x1200
System #2 Distribution: Gentoo Linux CPU: Intel Celeron 2.8 GHz CPU Memory: 512 MB Video Card: nVidia GeForce FX 5500 128 MB Video Driver: 1.0-8762 Comments:
~~ Julian Kinne ~~
System #1 Distribution: Gentoo Linux CPU: AMD Athlon 64 3700+ CPU Memory: 2GB Video Card: GeForce 7800GT Video Driver: 1.0.8756 Comments: