libGL.so not found for builtin OPENGL32.DLL

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
navado
Level 1
Level 1
Posts: 5
Joined: Sat Aug 30, 2008 5:20 am

libGL.so not found for builtin OPENGL32.DLL

Post by navado »

I need help to run application (MMANA-GAL) on latest wine on amd64 system.

the error:

Code: Select all

#wine MMANA_GAL.exe 
err:module:load_builtin_dll failed to load .so lib for builtin L"OPENGL32.DLL": libGL.so.1: cannot open shared object file: No such file or directory                                                                               
err:module:import_dll Loading library OPENGL32.DLL (which is needed by L"Z:\\opt\\MMANA\\MMANA_GAL.exe") failed (error c000007a).                                                                                                   
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\opt\\MMANA\\MMANA_GAL.exe" failed, status c0000135

the file libGL.so.1 exists in /usr/lib, so the problem seems in library lookup path.

current system:

Code: Select all

#wine --version
wine-1.1.43

#uname -a
Linux host 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux
The same application running good in the following environment:

Code: Select all

$ wine --version
wine-1.0.1-174-gc4039bd

$ uname -a
Linux host 2.6.26-2-686 #1 SMP Sat Oct 17 17:59:23 UTC 2009 i686 GNU/Linux
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Wine is a 32-bit app and hence needs a 32-bit libGL.so. The one you mentioned is the 64-bit version. It depends on your driver (mesa, nvidia, fglrx, ..) and distribution how to obtain the RIGHT 32-bit libGL. If an incorrect libGL is used you will get winediag messages mentioning that something is wrong with the opengl library.
navado
Level 1
Level 1
Posts: 5
Joined: Sat Aug 30, 2008 5:20 am

sounds a bit weird

Post by navado »

I expect something like "error using libGL.so" instead "No such file or directory " in case of library incompatibility.

How do you suggest to get "right" libGL library? or at least test correctness of existing one?

How can I check where wine looks for the library?

i'm using nvidia drivers (190.53 if this make sense). It's installer script builds 32 bit compatibility driver too. So the assumption the library exist in the system.

The distribution is Ubuntu 9.10 64bit.
Wine installed from the repository.
navado
Level 1
Level 1
Posts: 5
Joined: Sat Aug 30, 2008 5:20 am

Post by navado »

ok, fixed the problem, sorry for disturbing.

Fixed by updating GPU drivers to the latest version.

The problem was in NVIDIA driver installer, which is not installed properly 32 bit compatibility drivers. With newer driver everything works.
fcfl
Newbie
Newbie
Posts: 2
Joined: Thu May 27, 2010 6:48 pm

ssdd

Post by fcfl »

im having more or less the same issue trying to run counterstrike.

error reads

Code: Select all

err:wgl:has_opengl Failed to load libGL: dlopen(libGL.1.dylib, 266): image not found
should any specific problems arise from using macosx 10.6 Snow Leopard?

sorry, im a first time user but am at a total loss in here.
James McKenzie

libGL.so not found for builtin OPENGL32.DLL

Post by James McKenzie »

fcfl wrote:
im having more or less the same issue trying to run counterstrike.

error reads


Code:
err:wgl:has_opengl Failed to load libGL: dlopen(libGL.1.dylib, 266): image not found


Does this file exist anywhere on your system? You can try /usr/X11/lib

BTW, which install of Wine (MacPorts, WineBottler, other) are you using?

Snow Leopard may have placed this file in a different location..

James McKenzie
fcfl
Newbie
Newbie
Posts: 2
Joined: Thu May 27, 2010 6:48 pm

Post by fcfl »

I compiled it form the source.

Exactly in /usr/x11/lib I found both the file and shortcuts ("Atalho" in portuguese)

Image
James McKenzie

libGL.so not found for builtin OPENGL32.DLL

Post by James McKenzie »

fcfl wrote:
I compiled it form the source.

Exactly in /usr/x11/lib I found both the file and shortcuts ("Atalho" in portuguese)

[Image: http://img218.imageshack.us/img218/922/ ... 0528s1.png ]

/usr/X11 or /usr/x11 (there is a difference to any UNIX, including MacOSX)?

James McKenzie
Charles Davis

libGL.so not found for builtin OPENGL32.DLL

Post by Charles Davis »

On 5/28/10 6:48 PM, James McKenzie wrote:
fcfl wrote:
I compiled it form the source.

Exactly in /usr/x11/lib I found both the file and shortcuts ("Atalho"
in portuguese)
[Image:
http://img218.imageshack.us/img218/922/ ... 0528s1.png ]

/usr/X11 or /usr/x11 (there is a difference to any UNIX, including MacOSX)?
Not on Mac OS X. Not when the file system is case-insensitive anyway
(which I believe is the default). In that case, saying /usr/x11 instead
of /usr/X11 should work.

Chip
Locked