https://bugs.winehq.org/show_bug.cgi?id=57103
Bug ID: 57103 Summary: "opengl32.dll" failed to initialize with WOW64 on Wayland Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: opengl Assignee: wine-bugs@winehq.org Reporter: redwindwanderer@gmail.com Distribution: ---
I know both WOW64 and pure Wayland are experimental, but I think this is very basic stuff that I believe should work even on early days.
I build latest WINE gitlab code master branch with:
./configure --enable-win64 --without-x --with-wayland --enable-archs=x86_64,i386
..which results on Wayland-only WOW64 Wine.
Basic 32bit programs work, but programs requiring OpenGL produce this error:
0024:err:environ:init_peb starting L"Z:\root\sh2\sh2pc.exe" in experimental wow64 mode 0024:err:opengl:DllMain Failed to load unixlib, status 0xc0000005 0024:err:module:loader_init "opengl32.dll" failed to initialize, aborting 0024:err:module:loader_init Initializing dlls for L"Z:\root\sh2\sh2pc.exe" failed, status c0000142
The opengl32.dll was built and is installed in /usr/local/lib/wine/x86_64-windows/opengl32.dll, and EGL was correctly detected during configuration:
checking for X... disabled checking for wayland-client.h... yes checking for wl_display_connect in -lwayland-client... yes checking for wayland-scanner... /usr/local/bin/wayland-scanner checking for xkbcommon/xkbcommon.h... yes checking for xkb_context_new in -lxkbcommon... yes checking for xkbcommon/xkbregistry.h... yes checking for rxkb_context_new in -lxkbregistry... yes checking for EGL/egl.h... (cached) yes checking for -lEGL... libEGL.so.1 checking for wayland-egl.h... yes checking for wl_egl_window_create in -lwayland-egl... yes
So all in all, things should work and opengl32.dll should work correctly on WOW64+Wayland, I believe.