Use 32-bit library on 64-bit system

Questions about Wine on Linux
Locked
milasudril
Level 2
Level 2
Posts: 17
Joined: Sat Jan 15, 2011 7:40 am

Use 32-bit library on 64-bit system

Post by milasudril »

When running GZDoom.exe (I guess every OpenGL app) I get the error
libGL.so.1: wrong ELF-class ELFCLASS64

This is expected because it uses /usr/lib/libGL.so.302.17 which is a 64-bit binary.

I guess it would work if I could make wine use /usr/lib32/libGL.so whcih reffers to a 32-bit binary. But how?

$ uname -a
Linux R3-S6 3.2.0-23-lowlatency #31-Ubuntu SMP PREEMPT Wed Apr 11 02:24:03 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ wine --version
wine-1.4

$ file /bin-win32/GZDoom/gzdoom.exe
/bin-win32/GZDoom/gzdoom.exe: PE32 executable (GUI) Intel 80386, for MS Windows
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Are you using the Ubuntu Wine package, or did you compile Wine yourself?
milasudril
Level 2
Level 2
Posts: 17
Joined: Sat Jan 15, 2011 7:40 am

Post by milasudril »

dimesio wrote:Are you using the Ubuntu Wine package, or did you compile Wine yourself?
The Wine version is the one that came with the distro. However the NVIDIA driver was downloaded from NVIDIAs web site.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Try the latest package. The older Ubuntu 12.04 ones had problems.
milasudril
Level 2
Level 2
Posts: 17
Joined: Sat Jan 15, 2011 7:40 am

Post by milasudril »

dimesio wrote:Try the latest package. The older Ubuntu 12.04 ones had problems.
The develop branch 1.5.x?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Yes.
milasudril
Level 2
Level 2
Posts: 17
Joined: Sat Jan 15, 2011 7:40 am

Post by milasudril »

dimesio wrote:Yes.
It doesn't work either.
milasudril
Level 2
Level 2
Posts: 17
Joined: Sat Jan 15, 2011 7:40 am

Solution

Post by milasudril »

The problem is solved by first setting LD_LIBRARY_PATH=/usr/lib32/

I do not think this is related to the ubuntu 12.04 topic. It is just a matter of choosing correct libraries: For a 32-bit executable, the 32-bit library is needed.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Solution

Post by dimesio »

milasudril wrote: I do not think this is related to the ubuntu 12.04 topic.
It is definitely a part of Ubuntu's multiarch problems. https://bugs.launchpad.net/ubuntu/+sour ... bug/944321
Locked