https://bugs.winehq.org/show_bug.cgi?id=57621
Bug ID: 57621 Summary: using glfw with angle doesn't seem to work Product: Wine Version: 9.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: juan3@yandex.com Distribution: ---
Created attachment 77741 --> https://bugs.winehq.org/attachment.cgi?id=77741 Wine crashes trying to run red_circle, something to do with not finding symbols on the dlls
when building this project under msys2 windows https://github.com/Kreijstal/glfw-example.git and running it under wine, with the non windows dll dependencies copied over. It turns it can't run under wine. It works fine under windows however.
https://bugs.winehq.org/show_bug.cgi?id=57621
--- Comment #1 from Rafał Mużyło galtgendo@o2.pl --- On the off chance: does it work with WINEDLLOVERRIDES="libglesv2=d" ?
wine seems to have problems with that lib, though usually they don't result with crashes, just black screens.
https://bugs.winehq.org/show_bug.cgi?id=57621
--- Comment #2 from Rafał Mużyło galtgendo@o2.pl --- OK, that was a silly question: the example program explicitly uses GLES2.
Does 'module' debug channel offer more hints on why loading libGLESv2.dll fails ?
https://bugs.winehq.org/show_bug.cgi?id=57621
--- Comment #3 from nicolas juan3@yandex.com --- (In reply to Rafał Mużyło from comment #2)
OK, that was a silly question: the example program explicitly uses GLES2.
Does 'module' debug channel offer more hints on why loading libGLESv2.dll fails ?
I am confused, what do you mean with debug channel?
https://bugs.winehq.org/show_bug.cgi?id=57621
--- Comment #4 from Rafał Mużyło galtgendo@o2.pl --- (In reply to nicolas from comment #3)
I am confused, what do you mean with debug channel?
...
running with WINEDEBUG=module
...
https://bugs.winehq.org/show_bug.cgi?id=57621
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #5 from Bernhard Übelacker bernhardu@mailbox.org --- Hello, I was able to install msys2, install needed packages inside msys2, and clone glfw-example, built it and it showed not the crash from the comment when run from the build tree inside the msys2 shell.
When I tried to run it from outside msys2 I needed to copy/link the dynamic linked dlls to the directory where red_circle.exe is: libgcc_s_seh-1.dll, libstdc++-6.dll, libEGL.dll, glfw3.dll, libwinpthread-1.dll
Then I received a similar "failed to load library" followed by a similar crash trying to execute at address 0. But I got the message about a missing zlib1.dll.
When I also link this into the directory of red_circle.exe I got no longer a crash and the window shows up.
Can you retry when you copy zlib1.dll too? (And if they are missing also the *.glsl files.)
[1] https://gitlab.winehq.org/bernhardu/wine/-/commits/msys2-cygwin_2025-02-07