Tuesday, July 19, 2022

Fyne on Windows 7

 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.io/fyne/v2@v2.2.2/internal
/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_

profile is unavailable
  At: C:/Users/ep/go/pkg/mod/fyne.io/fyne/v2@v2.2.2/internal/driver/glfw/driver.go:148
---------------------------
ОК  
---------------------------

 

 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:

debug magazine archive

  71 jounals still available on issuu with great story of netlabels time.  debug_mag Publisher Publications - Issuu