Comment 28 for bug 1376587

Revision history for this message
nukedathlonman (areginato) wrote :

Boo-YA! Got it. AND (!!! not fully related, but getting this working also lead into fixing another problem), I got OpenCL working with out haveing to resort to installing (or partialy installing the AMD APP SDK...

Okay, so the replaces line needs to change to this:

Replaces: fglrx-driver-core

(Yes, that right, get rid of libopenCL1 - it causes a fight between packages)
Next, add this line after the depends line:

Enhances: libopencl1

Okay, so now that will allow wine to work on a freshly installed system. Want OpenCL (GPGPU) working?? Keep reading:

In /usr/lib create the following symlink: libOpenCL.so and point it at libOpenCL.so.1
Then create two more symlinks for completness: libOpenCL.so.1.1 and libOpenCL.so.1.2

Both will point to libOpenCL.so (I did this incase AMD or someone decides that proviced libOpenCL.so.1 file name should be corrected to libOpenCL.so)..

Now, repeat the above steps, but change to /usr/lib32

Next, go to /etc/OpenCL/venders and you'll see a file called amdocl64.icd
Make a copy of it in the same dir called amdocl32.icd
Edit that file, and change libamdocl64.so to libamdocl32.so

Next, in /etc/ld.so.conf.d make a file called opencl-vender-amd.conf and add the line: /etc/OpenCL/venders

Run ldconfig and your all set - Wine will install and work as wanted and you'll have the bonus of having working OpenCL support. Hope this is of help. Works with the updates drivers from the repo's and it also works on AMD's DEB packages from AMD's website.