Here in the city I affectionately call Salt Lake Shitty, Utah – it’s about as cold as a witch wearing an iron cupped bra doing push ups in the snow.

pretty-excellent-gun-wank.png

To offset this chilly weather, my best friend in the entire world* Yahtzee, who does a little piece for Escapist Magazine every Wednesday called Zero Punctuation warmed up to Call of Duty 4: Modern Combat, calling it a “Pretty Excellent Gun Wank” which in my book means it’s a 5-star title, and worth playing – but only if it runs in Wine.

*I am not actually friends with Yahtzee.

The Wine Application DB website says the compatibility rating of the game is Silver, which means it works excellently for ‘normal’ use. In less generalized color coded terms, this means that it works near perfectly after recompiling Wine.

I can hear the groaning and murmurs in the background – stop it!!! All this requires is a little bit of brainless copy and paste from this page into a terminal.

I spent a significant amount of time getting this to work on my own, and apparently I *did not* quote the source of most of what I posted here, for which I apologize. As far as I can recall, I had gone though the process of recompiling Wine with the 3dmark patch, downloading the D3D DLL and found a guide on Ubuntu Forums by ahaslam that had all my work plus more already posted.


Getting COD4 to run in Wine is really no more complicated than say… my tutorial on running all the games in the Orange Box (TF2, Portal, HL2, etc). Getting COD4 up and running takes a little bit more time, since compiling Wine takes the better part of 15 minutes on a relatively fast computer.

On a side note, perhaps the Department of Homeland Security should take a hint from the Wine folks and change their color-coded terrorism threat level matrix, since Wine’s implementation works pretty damn well, if I say so myself.

The story of my life is that I’m ready to kick ass and chew bubble gum, and I’m all out of gum. ARE YOU WITH ME? Let’s go and kill our existing Wine installation, and install a couple tools since we’re going to be rolling our own. Yeehaw!

sudo apt-get remove wine
rm -r ~/.wine
sudo apt-get build-dep wine
sudo apt-get install build-essential checkinstall rar

Next let’s download the source code for Wine, download and apply the “3dmark” diff patch, then recompile Wine. This guide has been updated to use Wine 0.9.56 and several changes have been made after usability testing. :)

mkdir wine && cd wine
wget http://easynews.dl.sourceforge.net/sourceforge/wine/wine-0.9.56.tar.bz2
tar -xvjf wine-0.9.56.tar.bz2
wget http://bugs.winehq.org/attachment.cgi?id=8548
cp attachment.cgi\?id\=8548 wine-0.9.56/3dmark.diff && cd wine-0.9.56
patch -p1 < 3dmark.diff
./configure --prefix=/usr --sysconfdir=/etc --enable-opengl --with-x
make depend && make
sudo checkinstall
wineprefixcreate

Now, we need to download and install a DirectX DLL file so that everything runs smoothly:
wget http://www.m3fe.com/files/d3dx9_34.zip
unzip d3dx9_34.zip -d ~/.wine/drive_c/windows/system32/

Change Wine to use Windows XP emulation mode, and ddd “d3dx9_34.dll” into the winecfg Library section as a Native dll:
winecfg
On the Application tab, change the Windows Version to Windows XP
screenshot-wine-configuration-1.png

Now goto the Library tab, type in d3dx9_34.dll and press the Add button.
screenshot-wine-configuration.png

Now, I bought the game from Direct2Drive, which means I have an electronic copy – No disc at all, so after extracting the archive of the installation files I opened setup.exe from the directory I extracted it to. If you have the DVD version, just open the setup.exe file from your DVD with Wine.

Installation is a fairly standard process, however I had an issue that cropped up the two times I attempted to test my method, where it failed during the first attempt, but on the second attempt to install the game, it went through flawlessly. I did NOT install PunkBuster because it is not compatible with Wine – yet.

setup1.pngsetup2.pngsetup3.png

setup4.pngsetup5.pngsetup6.png

setup7.pngsetup8.pngsetup9.png
setup10.pngsetup11.pngsetup12.png

setup13.pngsetup14.pngsetup15.png

setup16.pngsetup17.png

I installed a No-CD patch from Game Copy World just for good measure, and if you’re installing from a CD, you definitely will want this to avoid needing the CD every time you want to play the game or if you get this error like I did:

setup19.png

To install the No-DVD patch, download the iw3sp.exe file from Game Copy World, extract it to your Desktop, then run the following commands which will backup your existing game executable and copy the No-DVD patched one in its’ place:

mv ~/.wine/drive_c/Program\ Files/Activision/Call\ of\ Duty\ 4\ -\ Modern\ Warfare/iw3sp.exe iw3sp.exe.backup
cp ~/Desktop/iw3sp.exe ~/.wine/drive_c/Program\ Files/Activision/Call\ of\ Duty\ 4\ -\ Modern\ Warfare/

Finally, we’re ready to actually run the game.
cd ~/.wine/drive_c/Program\ Files/Activision/Call\ of\ Duty\ 4\ -\ Modern\ Warfare/
wine iw3sp.exe

Unfortunately, a Silver rated game means that some things don’t work, and some configuration changes are needed to make the game run smoothly. Turn off the following options for optimal performance:

Anti-aliasing
Sync Every Frame
Shadows
Specular Map
Depth of Field
Glow
Number of Dynamic Lights
Soften Smoke Edges

Soften Smoke Edges is the most important – Make SURE you turn this off, otherwise the game will not be playable at all.

Here’s a video of the game in action, enjoy!

The video doesn’t really capture the absolutely beautiful graphics COD4 has, it’s a really fantastic game engine. The maps are sweet, and the fact that it’s playable in Wine after a couple tweaks lets me easily recommend
Call of Duty 4: Modern Warfare

to all you Linux gamers out there.



Are you interested in FREE SUBSCRIPTIONS for qualified professionals to eWeek, PC Magazine, PC World, and many more? Click here!


111 Comments to “How To: Run Call of Duty 4 (COD4): Modern Combat in Linux”

  1. ubuntunut | February 21st, 2008 at 1:28 pm

    WOW. That is amazing! Any idea if the wine devs plan on implementing this patch into the main install of wine? Or is this something they are working to implement natively on their own?

  2. Wayne | February 21st, 2008 at 4:20 pm

    The patch has been floating around for quite some time now, I’m not sure if it will be integrated into the main branch.

  3. k00pa | February 22nd, 2008 at 1:31 am

    That looks good, but I don’t want to ruin my wine install :(

    But is it possible to run hl2 etc faster with this 3dmark patch?

  4. Oli | February 22nd, 2008 at 6:29 am

    Woo, you get what looks like a nice framerate! How powerful is your system?

  5. Gil | February 22nd, 2008 at 10:42 am

    I hope this may help you about running PB in Linux.
    Please make tutorial about this:
    http://shiven.net/forum/thread/4/10810/punkbuster-on-linux/

  6. Wayne | February 22nd, 2008 at 1:32 pm

    k00pa: You can always “upgrade” this version to the latest version without much trouble.

    I’m not sure on the HL2 performance/3dmark patch relation, I’ll test it out later.

    Oli: 3.2GHz Core2Duo, 4GB RAM, 7800GT, Raptor

    Gil: Nice find! I’ll look into that, I haven’t even attempted to run PB after it failed the first time around, I’ll have to take a look at what errors it gives when it fails.

  7. Jon Ramvi | February 22nd, 2008 at 5:36 pm

    Hi there! Good work!
    Since you’ve already got it running in wine, could you please take the time to run it on windows as well, on the same machine and benchmark it? It would be awesome to see how many fps you loose using wine. Almost looks too good to be true :)

  8. Wayne | February 22nd, 2008 at 7:19 pm

    Jon:

    Thanks for visiting the site, and thanks for the comment, they are much appreciated.

    Instead of installing Windows and then the game which would take a couple hours away from other things like … oh… writing new articles, which you apparently enjoy, I’ll just give you a rough guesstimate:

    Running a game in Wine in a real-world scenario around a 10-20% reduction in FPS.

    It sounds like a lot, but it’s not much in reality when you do the math.

    I’m getting 50-60 FPS in Wine, that’d mean windows would be running at 60-72 FPS if my 20% guesstimate is correct – not bad, eh?

    Also, I’m running a LCD, so anything over 60FPS is just wasted since the hardware is limited to a 60Hz refresh rate.

    I try to respond to everybody… unless there’s hundreds of comments on an article then it’s mostly people responding to each other.

    Yeah, it did seem too good to be true, but that’s why I made a video to prove it works. Haha! On an unrelated note, I’m VERY excited about the new nVidia 9000 series video cards.

    :)

  9. Adam Dodson | February 23rd, 2008 at 12:22 am

    Awesome work again wayne!
    Cod4 was one of the last things that keeps me dual booting on my main desktop, so I’ll give this a go :)

  10. Oli | February 23rd, 2008 at 1:46 am

    Wayne is the process the same with 0.9.56 that just came out? Or would the patch break that?

  11. Oli | February 23rd, 2008 at 3:27 am

    And I might be being thick (having never used checkinstall before) but do you pass it any special config?

    I’m trying to install using the 0.9.56 source, I’ve patched, go through all the checkinstall stuff using pretty default config but when I “wine –version” I get 0.9.55 come up (the last manually installed version).

  12. Oli | February 23rd, 2008 at 3:32 am

    My bad, I had to remove (eg: sudo make uninstall) my previous build of Wine. –version now reckons I’m on 0.9.56 =)

  13. david.cs | February 23rd, 2008 at 12:32 pm

    What´s your hardware configuration?

  14. ubuntunut | February 23rd, 2008 at 2:37 pm

    Question: Why did you end up using the 9.50 version of wine?

  15. Wayne | February 23rd, 2008 at 3:56 pm

    I used 0.9.50 since the patch works with that version — I’m not sure if it works with later versions.

  16. Wayne | February 23rd, 2008 at 4:42 pm

    checkinstall makes a .deb file so apt-get remove works.

  17. Oli | February 24th, 2008 at 7:27 am

    By the way, I can confirm this (3dmark patch included) works on the latest Wine version, 0.9.56.

    Exactly the same instructions, just use “wine-0.9.56″ where you see “wine-0.9.50″.

  18. roxxe | February 24th, 2008 at 8:57 am

    i did everything u told here, but when i run the game, i get an error: floating point support problem ? something with the visual c++ libary?

  19. Oli | February 24th, 2008 at 9:11 am

    roxxe: Use another crack. The firts sp crack I tried did the same. I found another and now it works fine!

  20. masch | February 24th, 2008 at 9:40 am

    Can apply this 3dmark path with wine 0.56??

  21. Oli | February 24th, 2008 at 9:44 am

    masch: Yes. Thought that’s what I just said =)

  22. masch | February 24th, 2008 at 10:23 am

    Sorry…:D…
    Another question, i have GTA San Andres with wine .56(not the compiled version) and with wine in some parts becomes slow, not in windows, so i compile this version and there was no difference, can i do something else to make it better?

  23. Wayne | February 24th, 2008 at 4:27 pm

    I’m going to recompile 0.9.56 and attempt applying the patch to confirm.

    No idea on GTA – although that’s a game I’d like to play… it’s rated Platinum on the Wine AppDB so there shouldn’t be any problems – what video card and driver are you using?

  24. Wayne | February 24th, 2008 at 5:11 pm

    This guide has been updated to use Wine 0.9.56 and several changes have been made after usability testing. :)

  25. masch | February 24th, 2008 at 6:59 pm

    i have GeForce 7950 GT in Fedora 8 with nvidia proprietary driver. is it right?

  26. Wintch | February 25th, 2008 at 7:17 am

    El Wine se esta volviendo cada ves mas groso! Increible lo que se puede hacer en unos pasos usando tan pocas librerias propietarias, estaria lindo que compremos el Dx9 y lo liberemos, no? Teniendo en cuenta que Micro$oft esta a full con el Dx10 ahora…

  27. Call of Duty 4 aprobado! « Rogertrips | February 25th, 2008 at 8:16 pm

    [...] Artículo completo en fsckin w/ linux. [...]

  28. Jack | February 27th, 2008 at 2:03 pm

    When i made checkinstall in Fedora 8 i got this error:

    make[1]: Entering directory `/home/jack/Download/wine/wine-0.9.56/include’
    ../tools/mkinstalldirs -m 755 /usr/include/wine/windows/ddk
    mkdir /usr/include/wine
    chmod 755 /usr/include/wine
    chmod: changing permissions of `/usr/include/wine’: No such file or directory
    make[1]: *** [/usr/include/wine/windows/ddk] Error 1
    make[1]: Leaving directory `/home/jack/Download/wine/wine-0.9.56/include’
    make: *** [include/__install__] Error 2

    **** Installation failed. Aborting package creation.

    Cleaning up…OK

    Bye.

    Do you know what is wrong?

  29. nash | February 27th, 2008 at 4:19 pm

    thanks. It works really good. But how do i update the game to patch 1.5. I tried install to the game folder. But when run the game it was still ver 1.0 I am new to wine so this is my first time using it.

    Many thanks for this tutorial.

    /Nash

  30. Wayne | February 27th, 2008 at 7:03 pm

    In fedora: First I would double check you’re running that as root, then try using “make install” instead, see if you get different errors.

  31. Wayne | February 27th, 2008 at 7:04 pm

    nash: running updates shouldn’t require anything special to work properly, other than finding a new executable from GCW.

  32. Wayne | February 27th, 2008 at 7:05 pm

    masch: Yep that’s correct.

  33. pixelbrei | February 28th, 2008 at 5:04 am

    Jack: seems to me like a bug in checkinstall, had the same. it says “mkdir bla” but it didn’t really create the dir.

    I just ran the
    mkdir /usr/include/wine
    manually, checkinstalled again, got the next dir not created, mkdir’ed it manually, and so on, until it worked.

  34. pixelbrei | February 28th, 2008 at 5:13 am

    It seems the performance is quite lower than on windows.
    I copied the installation folder from winxp to linux,
    and already set everything to low quality and 800×600.
    On winXP it was 90fps avg, on linux it’s like 40fps…

    And the ranks&challenges in multiplayer were not transferred, how do i copy them?

  35. Wayne | February 28th, 2008 at 2:51 pm

    From 90 to 40fps… that’s really bad performance.

  36. ubuntunut | February 28th, 2008 at 7:48 pm

    Well honestly, what do you guys expect? CoD is built on DX, not openGL. It won’t nearly as well as it could on Windows.

  37. Jac | March 7th, 2008 at 8:53 am

    if u do all this recompiling wine stuff, will it affect other games?

  38. Warped | March 7th, 2008 at 11:59 am

    Wayne,

    First thanks for the HOWTO. COD4 is the only reason I boot Winblows these days and would love it if I could get this too work.

    So followed it and everything seemed to go like it was suppose but when I go to actually run the game I get the following errors…
    err:advapi:service_control_dispatcher pipe connect failed
    err:wgl:get_render_type_from_fbconfig Unknown render_type: 0
    err:d3d:WineD3D_CreateFakeGLContext Can’t find a suitable iPixelFormat
    err:d3d:InitAdapters Failed to get a gl context for default adapter
    err:wine_d3d:WineDirect3DCreate Direct3D9 is not available without opengl

    I’m running Ubuntu 7.10, nvidia 7600 GT with the latest proprietary drivers.

    Any thoughts? Thanks!

  39. Oli | March 7th, 2008 at 5:08 pm

    I can confirm that this works (as is) with version 0.9.57 (just released) with no (noticeable) issues – just swap out wine-0.9.56 for wine-0.9.57 in the instructions.

    However, I’m getting a sound issue with ALSA on .57, so I’ve had to go back to OSS and ESD for wine sound. If you can hold off for the next release, I would suggest doing so.

  40. John | March 8th, 2008 at 1:22 pm

    Hey, thx for all the help, but i came to the last step, which is

    cd ~/.wine/drive_c/Program\ Files/Activision/Call\ of\ Duty\ 4\ -\ Modern\ Warfare/
    wine iw3sp.exe

    (running COD4), but then theres a window that tells me that i need to insert the dvd in (i bought the game, and it was inside my dvd drive

    Do u know any solutions to this?

  41. Wayne | March 8th, 2008 at 1:36 pm

    Sounds like you may have gotten the wrong file from gamecopyworld.

  42. masch | March 8th, 2008 at 2:47 pm

    I compiled it with 0.9.56 version, now there is the 0.9.57 version, what should i do to compile the new version?

    Salu2…

  43. ne | March 9th, 2008 at 9:13 am

    Hi Wayne,
    I am running ununtu 7.10 (64bit version)
    I followed the steps and reched until wine build, then i get the following errors:

    is it due to the 64bit ubuntu i am running..?
    -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -o xvidmode.o xvidmode.c
    ../../tools/wrc/wrc –nostdinc -I. -I. -I../../include -I../../include -D__WINESRC__ -foversion.res version.rc
    ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./winex11.drv.spec bitblt.o bitmap.o brush.o clipboard.o clipping.o codepage.o dce.o desktop.o dib.o dib_convert.o dib_dst_swap.o dib_src_swap.o event.o graphics.o init.o keyboard.o mouse.o opengl.o palette.o pen.o scroll.o settings.o text.o window.o winpos.o wintab.o x11ddraw.o x11drv_main.o xdnd.o xfont.o xim.o xinerama.o xrandr.o xrender.o xvidmode.o version.res -o winex11.drv.so -luser32 -lgdi32 -ladvapi32 -lkernel32 -lntdll -L/usr/lib -lXext -lX11 ../../libs/port/libwine_port.a
    /usr/bin/ld: skipping incompatible /usr/lib/libXext.so when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/libXext.a when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXext.so when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXext.a when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/libXext.so when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/libXext.a when searching for -lXext
    /usr/bin/ld: cannot find -lXext
    collect2: ld returned 1 exit status
    winegcc: gcc failed
    make[2]: *** [winex11.drv.so] Error 2
    make[2]: Leaving directory `/home/vikrant/wine/wine-0.9.56/dlls/winex11.drv’
    make[1]: *** [winex11.drv] Error 2
    make[1]: Leaving directory `/home/vikrant/wine/wine-0.9.56/dlls’
    make: *** [dlls] Error 2
    vikrant@nec:~/wine/wine-0.9.56$

    Thanks in advance!!

  44. masch | March 9th, 2008 at 10:33 am

    HI ne!
    Maybe yo should install Xext library and try again.

    Salu2…

  45. jack | March 11th, 2008 at 2:57 pm

    Wayne, Great guide thanks for your work. I have wine, patched, compiled and running on Ubuntu Hardy 64 system. I install wine 9.57. COD4 works fine.

    Ne: be sure to follow the sym link instructions here http://wiki.winehq.org/WineOn64bit Put the mkdir -p `pwd`/lib32 folder in the extracted wine 9.5x folder. Once I did this I compiled without the same erros you are posting above.

  46. FleX | March 14th, 2008 at 3:55 am

    Gr8 how to there m8.

    I guess I’m slowly edging towards loosing the Windows box for gaming, and for me thats a good thing.

    Top marks on the single player campaign working, just a shame Punk Buster wont work for multi player, this basically means your playing against cheats (who have been found out and banned from every PB server) or Other Linux users, which would be fine if only there were another tab in the filter selection giving to option for Linux only :)

    Like I said, getting closer :P

  47. so linux+games=no? - Page 2 - Overclock.net - Overclocking.net | March 15th, 2008 at 1:34 pm

    [...] a video I found. (Part of another guide) [...]

  48. Finlandia | March 15th, 2008 at 10:32 pm

    Wow, shit ton of effort to get something running on Linux. Odd, hmm, just installed it on my Windows box, and proceeded to rock cock.

    So lame.

  49. Wayne | March 16th, 2008 at 1:59 am

    Finlandia: It’s not that much work, I’ve already done the hard part for everyone. :)

  50. roney | March 20th, 2008 at 6:10 pm

    You got owned by a hacker using a program called “aimboting” because you can’t access Punk Buster servers. There’s no point in playing online without that unless you plan to hack the game yourself…

  51. Wayne | March 20th, 2008 at 7:16 pm

    I haven’t been having a problem with aimbotters, wallhackers, or anything similiar. Calling them “hackers” is a compliment.

    They’re script kiddies, get it right. There are HUNDREDS of non-punkbuster servers, if you think someone is hacking you can always goto another one.

    Also, punkbuster is a false sense of security – if you think PB is the end of online cheating, you’re simply fooling yourself.

  52. Oli | March 21st, 2008 at 4:31 pm

    Again, this works just fine with the latest version. Download, patch and install as before, just with 0.9.58 instead of 0.9.56

  53. George | March 21st, 2008 at 7:27 pm

    I’ve was able to manage the installation of COD, however when running wine iw3sp.exe I got the following error:

    Attempting 44 kHz 16 bit [Windows default] sound
    ERROR: Couldn’t initialize digital driver: DirectSoundCreate() failed in get_system_speaker_configuration()

    Error during initialization:
    Miles sound system initialization failed.
    Make sure you have your sound card’s latest drivers and DirectX installed.

    I was search over internet but there was not sucessfull.

    I have Creative Audidy4 pci sound card and all modules are installed (snd_emu10k1)

    Does anyone have a clue?

    Thanks!

  54. » Blog Archive » Ubuntu vs Windows o retorno dos Jogos | March 24th, 2008 at 4:15 am

    [...] que tenho a instalar jogos em Linux mesmo com Wine, O ultimo foi o COD4 que mesmo seguindo um tuturial não dei conta do [...]

  55. finch23 | April 1st, 2008 at 4:58 pm

    can i enable dual-gpu if i have SLI for better performance?

  56. Leandro | April 1st, 2008 at 6:37 pm

    HI!

    I’ve followed this guide, but when I run

    $ wine iw3sp.exe

    and after some splash screens, I get this errors:

    fixme:d3d9:IDirect3DDevice9Impl_CreateIndexBuffer (0×165328) call to IWineD3DDevice_CreateIndexBuffer failed
    fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0×165328) call to IWineD3DDevice_CreateSurface failed
    fixme:d3d9:D3D9CB_CreateSurface (0×165328) IDirect3DDevice9_CreateSurface failed
    fixme:d3d:IWineD3DDeviceImpl_CreateTexture Failed to create surface 0xd014ad0
    fixme:d3d9:IDirect3DDevice9Impl_CreateTexture (0×165328) call to IWineD3DDevice_CreateTexture failed
    Segmentation fault (core dumped)

    And I don’t know what to do now…

  57. anony mouse | April 4th, 2008 at 3:33 pm

    The new WINE 0.9.59 came out today. I downloaded the source and tried to apply the usual patch to the source code so that I could play CoD4, but now the patch fails. Hopefully a new patch will be out to fix this

  58. Oli | April 4th, 2008 at 5:07 pm

    anony mouse: CoD4 works with .59 without the patch. I’ve not tried it without the patch for a long time so I’m not sure if that’s a new thing or not.

  59. mahuro | April 8th, 2008 at 11:36 am

    Hi ..

    excellent work, do you think in this same way one could run the COD4 modtools ?? you know to build your own levels !! that would be really cool

    the modtools can be downloaded from

    cod4hq.com after signing up.

    cheers

  60. josh | April 17th, 2008 at 2:49 am

    Hi wayne. Great tutorial, I did everything right,
    installation went fine, but when I try to run
    the game, I get this error:

    Error during initialization:
    Video card doesn´t support enough textures
    for the directX 9 code path.

    I have a nvidia 8800gts 512mb graphics card with
    the drivers enabled in the restricted drivers
    in ubuntu 8.04

    any help would be appreciated. thanks

  61. ahaslam | April 17th, 2008 at 2:25 pm

    Nice rip of my guide

  62. Jon SL | April 21st, 2008 at 1:15 pm

    Jack: I had the same problem as you in Ubuntu Hardy RC 1, pixelbrei way works. Hope they fix this annoying thing fast :)

  63. pseudo | April 22nd, 2008 at 9:15 am

    Copypasta.
    Original guide by ahaslam on ubuntuforums.org.
    Credit where it’s due?

  64. Wayne | April 22nd, 2008 at 11:50 am

    Where is it? I can’t find it on the forums.

  65. ahaslam | April 22nd, 2008 at 12:14 pm

    December 31st: http://ubuntuforums.org/showpost.php?p=4047498&postcount=13

    All you’ve done is added a few screenshots, taken credit & given none.

    “It’s not that much work, I’ve already done the hard part for everyone.”

    Grow up Wayne.

  66. Wayne | April 22nd, 2008 at 3:25 pm

    ahaslam:
    I spent a significant amount of time getting this to work on my own, and apparently I *did not* quote the source of most of what I posted here, for which I apologize. As far as I can recall, I had gone though the process of recompiling Wine with the 3dmark patch, downloading the D3D DLL and found a guide on Ubuntu Forums by ahaslam that had all my work plus more already posted.

    Thanks for the link, I’ve posted an update. Please accept my humble apology for not linking to your guide.

  67. Darcy | May 18th, 2008 at 5:10 am

    Excellent tutorial, flawless even. If only my Ubuntu Hardy Heron was a 32 bit release. :(

    I’ve been messing around trying to get the 3dmark patch to work for wine for a while. You’d think I’d have learnt my lesson after hitting a wall after the 64 bit Fedora 8.

    So, I’ve been trying to use these instructions:
    http://wiki.winehq.org/WineOn64bit
    Just like jack talks about above. I’m still getting errors and I know I must be painfully close. (Namely things like “configure: WARNING: No OpenGL library found on this system. OpenGL and Direct3D won’t be supported.”)

    /usr/bin/ld: skipping incompatible /usr/lib/libXext.so when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/libXext.a when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libXext.so when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libXext.a when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXext.so when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXext.a when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/libXext.so when searching for -lXext
    /usr/bin/ld: skipping incompatible /usr/lib/libXext.a when searching for -lXext
    /usr/bin/ld: cannot find -lXext
    collect2: ld returned 1 exit status
    winegcc: gcc failed
    make[2]: *** [winex11.drv.so] Error 2
    make[2]: Leaving directory `/home/loki/wine/wine-0.9.56/dlls/winex11.drv’
    make[1]: *** [winex11.drv] Error 2
    make[1]: Leaving directory `/home/loki/wine/wine-0.9.56/dlls’
    make: *** [dlls] Error 2

    If I could get a follow up on this I’m sure I could get it working. I’m going to try this another one or two times and I’ll post back if I do get it working. Thanks in advance.

  68. ahaslam | May 18th, 2008 at 5:25 am

    You’ll 64bit instructions in my guide in the last few pages of the thread. There’s even a Hardy deb ;)

  69. Darcy | May 18th, 2008 at 6:16 am

    I now have COD 4 up and running! Thank you ahaslam! I will sing your name in praise from this day forward!

  70. ahaslam | May 18th, 2008 at 7:45 am

    No probs ;)

  71. kafee | May 24th, 2008 at 4:53 am

    today i ve installed cod 4.The game(the first video) ran very smoothly but after pressing the esc button(to escape the videos and go directly to the main menu)it encourage a problem and closes soon after.At present i m using windows xp.i ve seen my friend running cod 4 frm my dvd very smoothly in windows vista.It does not send any error message.So i think cod 4 is mainly built for windows vista,if i m not mistaken.If this is the case then how will i run it in windows xp?Or is there any patch file released to fix this problem?please do send me the answer of my question,i will be waiting…

  72. ahaslam | May 24th, 2008 at 5:31 am

    We are running under Linux. I for one have no Windows & can’t advise. Sorry.

  73. kafee | May 24th, 2008 at 9:38 am

    why cant i run call of duty 4 in xp?why does it send error report?

  74. TheFuzz | May 30th, 2008 at 10:47 am

    What errors do you get kafee? Does it say anything? Make sure your direct x is good to go. I have XP and Ubuntu on dual boot, I played CoD4 on XP for the past 7 months flawlessly.

  75. Danny Abukalam | June 24th, 2008 at 1:11 pm

    Hi,

    I keep getting this after i put in this bit of code:

    ./configure –prefix=/usr –sysconfdir=/etc –enable-opengl –with-x

    rami@RAM:~/wine/wine-0.9.56$ ./configure –prefix=/usr –sysconfdir=/etc –enable-opengl –with-x
    checking build system type… i686-pc-linux-gnu
    checking host system type… i686-pc-linux-gnu
    checking whether make sets $(MAKE)… yes
    checking for gcc… gcc
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes
    checking whether we are cross compiling… no
    checking for suffix of executables…
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking for g++… g++
    checking whether we are using the GNU C++ compiler… yes
    checking whether g++ accepts -g… yes
    checking for cpp… cpp
    checking for the directory containing the Wine tools… $(TOPOBJDIR)
    checking how to run the C preprocessor… gcc -E
    checking for X… no
    checking for flex… no
    configure: error: no suitable flex found. Please install the ‘flex’ package.

    What should I do?

    Thanks for the tutorial!

  76. ahaslam | June 24th, 2008 at 1:50 pm

    “Please install the ‘flex’ package”

  77. Danny Abukalam | June 24th, 2008 at 1:54 pm

    You have a link for 7.10?

    I downloaded 3 different versions but I’m not even sure what flex is…

  78. kafee | June 24th, 2008 at 10:56 pm

    well,i ve managed to play only the training mission but after 5 mins it again encouraged a problem and ends at that moment.i ve a doubt with my graphics card.it is ATI radeon x1650 512 MB. now the question is,does it suit for playing cod4,i wander…..plz let me know ur answer by tomorrow.

  79. Danny Abukalam | June 25th, 2008 at 2:03 pm

    fixme:win:EnumDisplayDevicesW ((null),0,0×33f8fc,0×00000000), stub!
    fixme:d3d:IWineD3DImpl_CheckDeviceMultiSampleType Quality levels unsupported at present
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:IWineD3DVolumeImpl_LockBox (0×104a0128) : pBox=(nil) stub
    fixme:d3d:tex_bumpenvmat >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvfv(GL_TEXTURE_SHADER_NV, GL_OFFSET_TEXTURE_MATRIX_NV, mat) @ state.c / 2673
    fixme:d3d:tex_bumpenvmat >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvfv(GL_TEXTURE_SHADER_NV, GL_OFFSET_TEXTURE_MATRIX_NV, mat) @ state.c / 2673
    fixme:d3d:tex_bumpenvmat >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvfv(GL_TEXTURE_SHADER_NV, GL_OFFSET_TEXTURE_MATRIX_NV, mat) @ state.c / 2673
    fixme:d3d:tex_bumpenvmat >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvfv(GL_TEXTURE_SHADER_NV, GL_OFFSET_TEXTURE_MATRIX_NV, mat) @ state.c / 2673
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d:CreateContext >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0×502) from glTexEnvi(GL_TEXTURE_SHADER_NV, GL_PREVIOUS_TEXTURE_INPUT_NV, …
    @ context.c / 384
    fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0×1894f0) call to IWineD3DDevice_CreateSurface failed
    fixme:d3d9:D3D9CB_CreateSurface (0×1894f0) IDirect3DDevice9_CreateSurface failed
    fixme:d3d:IWineD3DDeviceImpl_CreateTexture Failed to create surface 0×10933378
    fixme:d3d9:IDirect3DDevice9Impl_CreateTexture (0×1894f0) call to IWineD3DDevice_CreateTexture failed
    Segmentation fault (core dumped)

    This is what I get when i try to run the game.

    Why?!?!?!?!

  80. Jeremy G. | June 26th, 2008 at 10:11 pm

    ok well i did everything like you said but the only thing is, is that when i go to load the game it tells me that
    “Error during initialization:
    Video card or driver doesn’t support UBYTE4N vertex data.”

    i know that this graphics card is supported because i can run it great in windows XP & Vista im just not sure why it wont run in ubuntu. i like ubuntu alot but the only thing is i wish more games would be supported on any linux system.

  81. BST | July 1st, 2008 at 7:31 pm

    when i get to the point of running sudo checkinstall this is what i get
    make[1]: *** [/usr/share/man/de.UTF-8/man1] Error 1
    make[1]: Leaving directory `/home/ron/wine/wine-0.9.56/loader’
    make: *** [loader/__install__] Error 2

  82. 3 » Solved: CoD4 Wine? | July 3rd, 2008 at 3:25 am

    [...] I want to install Call of Duty 4 on my linux installation, and I read the article here. [...]

  83. Jean Provot | July 8th, 2008 at 3:21 am

    HI!

    I follow all the steps. But when I run COD4 I get this error:

    =========================
    Pixel shader version is 1.4
    Vertex shader version is 1.1
    Video card or driver doesn’t accelerate dynamic textures
    Video card or driver doesn’t support separate alpha bend, glow will be disabled.

    Error during initialization:
    Video card or driver doesn’t support separate alpha bend, glow will be disabled.
    ==============

    and it failed.

    My system:
    Ubuntu Hardy (version 32-bit)
    Laptop Acer 4520
    AMD 64 system
    RAM: 2GBS
    Chipset nFORCE 610i
    GPU GeForce 7000M (on-board)

    Anyone have a solution. Thanks for any help.

  84. ahaslam | July 8th, 2008 at 7:11 am

    “Video card or driver doesn’t support separate alpha bend, glow will be disabled”.

    That means that the 3dmark.diff has not been applied.

  85. JackG | July 8th, 2008 at 6:02 pm

    It is a little frustrating to have to redo everything after every kernel upgrade. Is there anyway around this issue?

  86. Darcy | July 8th, 2008 at 10:10 pm

    It would be cool if somebody could create a .dev or something of this.

  87. Wines | July 13th, 2008 at 6:42 am

    Hello!
    I’ve got a problem with my video card. When I’m starting the game i get an error: “Error during initialization: Video card or driver doesn’t support enough textures for the DirectX 9 code path.”
    I’ve got ASUS nVidia GeForce EN8800GTS and drivers automatically downloaded by Ubuntu. What’s wrong? Thanks for help!

  88. Redleer | August 8th, 2008 at 5:10 am

    i get same error with default wine install on ubuntu but with this help prowided here i got it working :)

  89. Brian | August 15th, 2008 at 9:24 pm

    # George | March 21st, 2008 at 7:27 pm

    I’ve was able to manage the installation of COD, however when running wine iw3sp.exe I got the following error:

    Attempting 44 kHz 16 bit [Windows default] sound
    ERROR: Couldn’t initialize digital driver: DirectSoundCreate() failed in get_system_speaker_configuration()

    Error during initialization:
    Miles sound system initialization failed.
    Make sure you have your sound card’s latest drivers and DirectX installed.

    I was search over internet but there was not sucessfull.

    I have Creative Audidy4 pci sound card and all modules are installed (snd_emu10k1)

    Does anyone have a clue?

    Thanks!

    Anyone have ideas for this problem? I got so close an just failed =(

  90. How to install Wine and get Call of Duty 4 (COD4) working - openSUSE Forums | August 18th, 2008 at 4:37 pm

    [...] out in terms of actual commands but is geared for ubuntu users. I do not have apt-get for example: How To: Run Call of Duty 4 (COD4): Modern Combat in Linux | fsckin w/ linux So what I need to know is how exactly I go about downloading the latest i586 wine source, patching [...]

  91. Rookie | August 20th, 2008 at 12:02 am

    Hello

    i got this erro when I start cod 4

    fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0×18ab08) call to IWineD3DDevice_ CreateSurface failed
    fixme:d3d9:D3D9CB_CreateSurface (0×18ab08) IDirect3DDevice9_CreateSurface failed
    fixme:d3d:IWineD3DDeviceImpl_CreateTexture Failed to create surface 0×131e0660
    fixme:d3d9:IDirect3DDevice9Impl_CreateTexture (0×18ab08) call to IWineD3DDevice_ CreateTexture failed
    Segmentation fault

    does anyone have a idee what this means ?

  92. memory | August 23rd, 2008 at 4:27 pm

    I fixed my cod4 by downloading the ATI hyper memory on this site. Now my game runs fine no errors or blue screens. The ATI hyper memory was for my dell desktop xps 400.
    Bottom Line:
    Download something on this site that will make your driver BIGGER
    because that sometimes the error

    hope this helped :D

  93. Redleer | August 24th, 2008 at 8:42 am

    http://www.getdeb.net/app/Wine
    1.1.3+3dmarkPatch for ubuntu users.

  94. Ernesto | September 25th, 2008 at 1:20 pm

    With wine 1.0 “out the box” which could be the procedure?

  95. Halis | October 18th, 2008 at 1:45 pm

    Hi, I tried your tips, and I sucessfully installed COD 4, but when i try to launch it, i just saw the intro, and then it fell down.
    Terminal write this:

    halis@Eleanor:~/.wine/drive_c/Program Files/Activision/Call of Duty 4 – Modern Warfare$ wine iw3mp.exe
    fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 32 vertex samplers and 32 total samplers
    fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8) > combined_samplers
    fixme:win:EnumDisplayDevicesW ((null),0,0×32f8e4,0×00000000), stub!
    fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0×1374e8,0×167010): stub
    fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0×1374e8,0×168b08): stub
    fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0×137938,0×1a44b8): stub
    fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
    fixme:d3d:getFormatDescEntry Can’t find format unrecognized(1094800211) in the format lookup table
    fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
    fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
    fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
    fixme:d3d_surface:IWineD3DVolumeImpl_LockBox (0×197803a8) : pBox=(nil) stub
    fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
    fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
    fixme:cryptasn:WVTAsn1SpcSpOpusInfoDecode 0×1318d2, 78, 00000000, (nil), 2117762548
    fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0×1d1cb8) call to IWineD3DDevice_CreateSurface failed
    fixme:d3d9:D3D9CB_CreateSurface (0×1d1cb8) IDirect3DDevice9_CreateSurface failed
    fixme:d3d:IWineD3DDeviceImpl_CreateTexture Failed to create surface 0×29202240
    fixme:d3d9:IDirect3DDevice9Impl_CreateTexture (0×1d1cb8) call to IWineD3DDevice_CreateTexture failed
    Segmentation fault

    please help

  96. harry | October 18th, 2008 at 2:49 pm

    i get this erro when i run cod4 mp and sp
    hard drive or video card does not support seprate alpha blend,glow will be disabled
    but http://www.systemrequirementslab.com tht site says i need more memory but the erro means summet to do with my video card

    plz help
    thnk

  97. Danny Abukalam | October 19th, 2008 at 7:24 am

    ahasalam: “Please install the ‘flex’ package”

    haha yeah, but I’ve already got flex installed… It’s ok, I got it in the end…

    Now the trick is to install another game while getting COD4 to still work.

  98. bobmarlex | November 23rd, 2008 at 4:08 am

    hi good job!
    tried n tried with wine 1.1.2 : game didn’t start (error: dx9 code path..)
    updated wine upon 1.1.8, implemented d3dx9_34.dll, configured wine, voila: game is playable with the known treatments.
    note: i use playonlinux as gui-installer. in this case it’s tricky to divide the different wine-configurations AND: the games does not start with the created exe-link (from playonlinux) but with the desktop-link, the installer created…
    nasty stuff….but it works :)

  99. Jay | December 13th, 2008 at 9:41 am

    Impressive.

    Flawless Victory.

    Fatality!

  100. ralph | December 27th, 2008 at 11:51 am

    What could this be?
    Im try to install wine on ubuntu 8.10
    I get it when I run sudo checkinstall:

    signal_i386.c: In Funktion »merge_vm86_pending_flags«:
    signal_i386.c:545: Fehler: »VIF_MASK« nicht deklariert (erste Benutzung in dieser Funktion)
    signal_i386.c:545: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
    signal_i386.c:545: Fehler: für jede Funktion in der er auftritt.)
    signal_i386.c:556: Fehler: »VIP_MASK« nicht deklariert (erste Benutzung in dieser Funktion)
    signal_i386.c: In Funktion »raise_vm86_sti_exception«:
    signal_i386.c:1215: Fehler: »VIP_MASK« nicht deklariert (erste Benutzung in dieser Funktion)
    signal_i386.c: In Funktion »__wine_enter_vm86«:
    signal_i386.c:1615: Fehler: »VIF_MASK« nicht deklariert (erste Benutzung in dieser Funktion)
    signal_i386.c:1616: Fehler: »VIP_MASK« nicht deklariert (erste Benutzung in dieser Funktion)

    A little german vocabulary:
    Fehler means error and in the brackets stands “first use in this function”
    »VIF_MASK« not declarated

  101. David | January 1st, 2009 at 4:49 pm

    I have the same problem as ralph, in english:

    signal_i386.c:545: error: ‘VIF_MASK’ undeclared (first use in this function)
    signal_i386.c:545: error: (Each undeclared identifier is reported only once
    signal_i386.c:545: error: for each function it appears in.)
    signal_i386.c:556: error: ‘VIP_MASK’ undeclared (first use in this function)
    signal_i386.c: In function ‘raise_vm86_sti_exception’:
    signal_i386.c:1215: error: ‘VIP_MASK’ undeclared (first use in this function)
    signal_i386.c: In function ‘__wine_enter_vm86’:
    signal_i386.c:1615: error: ‘VIF_MASK’ undeclared (first use in this function)
    signal_i386.c:1616: error: ‘VIP_MASK’ undeclared (first use in this function)
    make[2]: *** [signal_i386.o] Error 1
    make[2]: Leaving directory `/home/corran/wine-0.9.56/dlls/ntdll’
    make[1]: *** [ntdll/__install-lib__] Error 2
    make[1]: Leaving directory `/home/corran/wine-0.9.56/dlls’
    make: *** [dlls/__install-lib__] Error 2

    **** Installation failed. Aborting package creation.

  102. vmstr | January 20th, 2009 at 10:24 pm

    just a side note..
    if you already have a windows installation on the same computer and you have cod4 installed on that,
    you could simple click on the exe file for that from linux and wine will ru it w/o installation

    this is for those people who have a windows but dont want to continually reboot just to play a game

  103. Sean | January 25th, 2009 at 10:33 am

    Great tutorial! The game is running fine for me and is 100% playable. Only minor issue is at loading a mission/map the sound cuts in and out. After that its fine though. Love to play good games with Linux and Open Source software. Too bad the game isn’t!

    Badreligion

  104. agh damn | February 10th, 2009 at 3:45 pm

    signal_i386.c: In function ‘merge_vm86_pending_flags’:
    signal_i386.c:545: error: ‘VIF_MASK’ undeclared (first use in this function)
    signal_i386.c:545: error: (Each undeclared identifier is reported only once
    signal_i386.c:545: error: for each function it appears in.)
    signal_i386.c:556: error: ‘VIP_MASK’ undeclared (first use in this function)
    signal_i386.c: In function ‘raise_vm86_sti_exception’:
    signal_i386.c:1215: error: ‘VIP_MASK’ undeclared (first use in this function)
    signal_i386.c: In function ‘__wine_enter_vm86’:
    signal_i386.c:1615: error: ‘VIF_MASK’ undeclared (first use in this function)
    signal_i386.c:1616: error: ‘VIP_MASK’ undeclared (first use in this function)
    make[2]: *** [signal_i386.o] Error 1
    make[2]: Leaving directory `/home/blmrocker/wine/wine-0.9.56/dlls/ntdll’
    make[1]: *** [ntdll] Error 2
    make[1]: Leaving directory `/home/blmrocker/wine/wine-0.9.56/dlls’
    make: *** [dlls] Error 2

    what should i do?
    im runing ubuntu intepid
    on a gateway ml 6732
    please and thank you

  105. bos | February 19th, 2009 at 3:13 am

    can you help me plzzz.
    when i try to play the game call of duty 4 the write
    (VIDEO CARD OR DRVER DOESEN’T SUPPORT ALPHA BLEND

  106. Marco | March 6th, 2009 at 5:22 am

    Thank you for your helpful guide..Cod4 works very great in single player for me,do you know if to play in multiplayer is possible?

  107. vick | March 22nd, 2009 at 7:59 am

    if i remove wine will i lose my previously installed games???

  108. mike | March 28th, 2009 at 3:25 pm

    Vick,
    I am wondering the same thing, This seems like an excellent patch. Would this patch make all games run better? (ie: WoW or BF2?)

    Also, this has been a long time since this was published.. Can I do all of this with the newest wine version?

  109. Fronty | March 31st, 2009 at 12:41 pm

    Hi guys!
    I’m afrid I have a same problem: When I try to run “sudo checkinstall”, quite a lot of lines goes and then ends with this:

    signal_i386.c: In function ‘merge_vm86_pending_flags’:
    signal_i386.c:545: error: ‘VIF_MASK’ undeclared (first use in this function)
    signal_i386.c:545: error: (Each undeclared identifier is reported only once
    signal_i386.c:545: error: for each function it appears in.)
    signal_i386.c:556: error: ‘VIP_MASK’ undeclared (first use in this function)
    signal_i386.c: In function ‘raise_vm86_sti_exception’:
    signal_i386.c:1215: error: ‘VIP_MASK’ undeclared (first use in this function)
    signal_i386.c: In function ‘__wine_enter_vm86’:
    signal_i386.c:1615: error: ‘VIF_MASK’ undeclared (first use in this function)
    signal_i386.c:1616: error: ‘VIP_MASK’ undeclared (first use in this function)
    make[2]: *** [signal_i386.o] Error 1
    make[2]: Leaving directory `/home/fronty/wine/wine-0.9.56/dlls/ntdll’
    make[1]: *** [ntdll/__install-lib__] Error 2
    make[1]: Leaving directory `/home/fronty/wine/wine-0.9.56/dlls’
    make: *** [dlls/__install-lib__] Error 2

    **** Installation failed. Aborting package creation.

    Cleaning up…OK

    Bye.

    …pleas help us! I am such a long time on linux without playing any of these microsoft games and I am starting to be a bit crazy.
    I am running Ubuntu 8.10 64bit
    Thanks a lot for any advice!!

  110. mitsuki | April 4th, 2009 at 8:26 pm

    Hi
    When i try to run “sudo make depend && make”.
    There are some errors

    freetype.c:166: error: ‘FT_MulFix’ undeclared here (not in a function)
    freetype.c:166: warning: type defaults to ‘int’ in declaration of ‘pFT_MulFix’
    freetype.c: In function ‘WineEngGetOutlineTextMetrics’:
    freetype.c:4425: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4426: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4428: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4436: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4436: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4440: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4444: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4520: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4521: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4522: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4523: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4524: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4525: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4526: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4527: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4528: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4533: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4534: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4535: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4536: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4537: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4538: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4539: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4540: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4541: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4542: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4547: error: called object ‘pFT_MulFix’ is not a function
    freetype.c:4548: error: called object ‘pFT_MulFix’ is not a function
    make[2]: *** [freetype.o] Error 1
    make[2]: Leaving directory `/home/kjs/wine/wine-0.9.56/dlls/gdi32′
    make[1]: *** [gdi32] Error 2
    make[1]: Leaving directory `/home/kjs/wine/wine-0.9.56/dlls’
    make: *** [dlls] Error 2
    kjs@ubuntu:~/wine/wine-0.9.56$

    What should i do?
    Thanks

  111. fr0gg | April 30th, 2009 at 9:29 pm

    Hey, I’m having difficulties getting this going..after running “./configure –prefix=/usr –sysconfdir=/etc –enable-opengl –with-x”

    I get:
    configure: error: X development files not found. Wine will be built
    without X support, which probably isn’t what you want. You will need to install
    development packages of Xlib/Xfree86 at the very least.
    This is an error since –with-x was requested.

    I’ve tried to find the Xfree86 package but it’s being a pain and I can’t find any coherent instructions on what to do..any advice?

    Thanks a ton, would reallly like to get COD4 running in ubuntu, it’s my favorite game!

Leave a Comment