For a cheap, obsolete environment I got a problem, fyne ui does not see my opengl. I remembered, the same problem appears for WFP, it also does not find hardfare graphics acceleration, but it is possible to run UI in software render mode. So do for fyne
after build app, copy software Mesa3D opengl.dll to folder with binaries, then it works.
This fix these crashes on start:
022/07/19 08:19:09 Fyne error: failed to initialise OpenGL
2022/07/19 08:19:09 Cause: glGetBufferParameteri64v
2022/07/19 08:19:09 At: C:/Users/ep/go/pkg/mod/fyne.
/painter/gl/gl_core.go:67
Exception 0xc0000005 0x8 0x0 0x0
PC=0x0
signal arrived during external code execution
---------------------------
Fyne Error
---------------------------
Fyne error: window creation error
Cause:APIUnavailable: WGL: OpenGL ES requested but WGL_ARB_create_context_es2_
At: C:/Users/ep/go/pkg/mod/fyne.
---------------------------
ОК
---------------------------
I also recomend to compile fyne ui app with reduced drahics features to GLES
go build -tags gles .
Reference:
https://github.com/fyne-io/fyne/issues/191
https://github.com/fyne-io/fyne/issues/410
https://github.com/fyne-io/fyne/issues/437
https://github.com/fyne-io/fyne/issues/2046
https://stackoverflow.com/questions/57643992/how-to-install-opengl-for-this-to-run
https://www.pcgamer.com/microsoft-finally-ports-directx-12-to-windows-7-but-only-for-certain-games/
https://github.com/r4wand/go-fyne-desktop-app-demo
No comments:
Post a Comment