View Full Version : [ubuntu] Wine, Nvidia, and installing Call of Duty 4
May 19th, 2008, 02:01 PM
Hey all you fellow UBUNTU users!! How far has this o/s come in just the last year. The development is exciting.
I have 2 questions I really need some help with.
1. I am having nothing but problems installing COD4 through wine, one issue after another. I have finally narrowed it down to one last hurdle. It is saying that my video card does't support enough shaders, and directx might not be installed?? I have been running the standard nvidia drivers installed by Hardy. Do I need to run the nvidia drivers from nvidia to support directx or open gl properly and also to allow this game to work. I have a geforce 8600gt. But everything else seems to work fine. MInd you this is the first game I have installed with wine ... THANKFULLY.
2. How do I install the nvidia drivers from nvidia, I used to use edgy with earlier versions of ubuntu, but now I am lost. I realise I have to run it sh >nvidiadriver. but its not that straight forward. Anyway any help would be great. I have been reading all these articles with ppl being able to even run crysis, COD4 multiplayer, TF2 etc... but I can't even get past this hurdle. it is so frustrating.
May 19th, 2008, 03:21 PM
I just looked it up on the winehq.org AppDB and it seemes you need to update and patch wine.
for more check out these links:
hope it is some how a help.
or wait till the wine 1.0 is out (actually the believe to get it done till mid of june - probably earlier)
May 20th, 2008, 01:46 PM
thanks heaps I have been using git ( something new to me ) to patch wine. have you had any experience with it??
May 21st, 2008, 12:43 PM
Okay, well never really did it, but the following document seems to be very handy:
(it is also linked from the wine-link I posted)
BUT watch out in point 6, you'd need to cd into your Wine-git directory.
for that gutsy-file mentioned in point 3, there are also other versions on the webpage, so take the one according to your ubuntu version.
hope it helps
for more questions lets refer to that document, and I'll try my best to help you.
May 22nd, 2008, 01:41 PM
wow I can't believe your from germany... But anyway, I have tried doing step six only to get the following error:
mark@mark-laptop:~/wine-git$ patch -p1 < patch.diff
patching file dlls/wined3d/directx.c
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 846 (offset 172 lines).
Hunk #2 FAILED at 2044.
Hunk #3 FAILED at 2357.
Hunk #4 FAILED at 2419.
3 out of 4 hunks FAILED -- saving rejects to file dlls/wined3d/directx.c.rej
Ok this is the second time I have attempted to do this, but the hunk error has occurred both times. Any ideas?
Thanks for your help though its been great!
June 20th, 2011, 06:12 AM
To get this installed properly you need to do a few things...
First install Wine 1.3 (You may need to add "experimental" to your repository & do apt-get update
Then install some stuff from nvidia:
Make sure you enable all the available repositories in your sources:
Then install these packages using the following:
apt-get install nvidia-glx-ia32
apt-get install nvidia-xconfig
apt-get install nvidia-glx-dev
apt-get install nvidia-glx
apt-get install xserver-xorg
once installed run nvidia-xconfig
Run the installer package for COD
If you have further problems enable composting -
in Gnome type ALT+F2 then type gconf-editor
Scroll down to apps, metacity, general & check the box next to composting... You may want to log out & back in again or reboot to enable w/o problems
This should get you going...
If you are still having probs... Follow this
mv ~/xorg.conf.new /etc/X11/xorg.conf
nvidia-xconfig (This will create a new xconfig file)
Add the following BEFORE the Device Section
Options "Composte" "enable"
Add the following TO the Device Section
Option "AllowGLXWithComposte" "true"
Option "TripleBuffer" "true"
Option "XAANoOffscreenPixmaps" "true"
Add the following to the Screen Section
Option "AddARGBGLXVisuals" "true"
Option "AddARGBVisuals" "true"
You'll be good to go....
This has been tested with Debian 6.0 Squeeze
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.