Wine + Nvidia driver

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
fulalas
Contributor
Contributor
Posts: 577
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Wine + Nvidia driver

Post#1 by fulalas » 22 Dec 2016, 04:53

Using Porteus x64, has anyone managed to run a Win32 OpenGL app through Wine with Nvidia driver installed? I can only run with MESA drivers, but the performance isn't that good.

Nvidia compat-lib32 (generated through Nvidia x64 driver installation) doesn't come with an important OpenGL function inside libGL.so.1.0.0, and if I try to force using libGL.so.375.26 (that comes inside NVIDIA-Linux-x86-375.26.run), I get an error. :(

Here's a simple Win32 OpenGL app for testing: http://www2.cs.uidaho.edu/~jeffery/win32/wglgears.exe

fulalas
Contributor
Contributor
Posts: 577
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: Wine + Nvidia driver

Post#2 by fulalas » 22 Dec 2016, 20:29

OK, after a few days trying I finally managed to make it work! \o/

You need to download and install Nvidia x64 official driver -- no need to generate 32bits libraries as you'll download a package with these files.

Now you have to download and extract xorg-x11-drv-nvidia-libs that you can get here: https://pkgs.org/fedora-25/rpmfusion-no ... 6.rpm.html (tip: look for the same version of your current Nvidia driver)

From this package copy all files inside 'usr/lib/nvidia' to your system '/usr/lib'

Then download Nvidia x86 drivers (something like NVIDIA-Linux-x86-375.26.run). Extract only libGL.so.xxx.xx (where xxx.xx is the driver version, like for example 375.26). Copy it to your system '/usr/lib' and also make a symlink pointing to it:

Code: Select all

cp -s /usr/lib/libGL.so.xxx.xx /usr/lib/libGL.so.1
Finally you need to install multi-lib32 package. There're a lot of packages that do this job, but they're usually too big (0050-multilib-current-x86_64.sxz occupies ~365mb), so I made a small one with just ~40mb that AFAIK is able to run pretty much everything as long you don't need Qt. I'm not a real gamer, so I don't have modern games, but I tested the following Win32 programs successfully:

-Quake 4 (OpenGL game)
-Flatout 1 and 2 (DX9 game)
-TrackMania United Forever (DX9 game)
-Revolt (DX7 game)
-Media Player Classic (DX9 video player)
-3DMark 2001/2003/2005 and 2006 (DX8 and DX9 benchmark utility)
-Miranda (requires https connection and Wine nail it flawlessly ;))
-Winamp (requires ALSA/Pulse drivers and Wine nail it flawlessly ;))
-Notepad++
-7z
-Irfanview
-Photoshop 6

Post Reply