Skip to content

Fyne doesn't work on Windows 7 VM or remote server #410

@virtuald

Description

@virtuald

Fyne looks awesome, and works great out of the box on my mac. I tried to cross-compile for Windows from my mac, and that generates an exe. So far, so good:

GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=$(which i686-w64-mingw32-gcc) go build

Unfortunately, when I run it on my Windows VM (a Windows 7 VirtualBox VM downloaded from Modern.IE), it gives me the following error that others seem to have.

C:\Users\IEUser\Desktop>fynedemo.exe
2019/08/22 15:22:52 Fyne error:  window creation error
2019/08/22 15:22:52   Cause: APIUnavailable: WGL: The driver does not appear to support OpenGL
2019/08/22 15:22:52   At: /Users/virtuald/go/src/fynedemo/vendor/fyne.io/fyne/internal/driver/gl/window.go:999
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x2c pc=0x578d8d]

goroutine 1 [running, locked to thread]:
fynedemo/vendor/fyne.io/fyne/internal/driver/gl.(*window).SetContent(0x0, 0x905760, 0x12456120)
        /Users/virtuald/go/src/fynedemo/vendor/fyne.io/fyne/internal/driver/gl/window.go:361 +0x1d
main.main()
        /Users/virtuald/go/src/fynedemo/main.go:12 +0x1ce

I was hoping that this would 'just work' on a bare Windows installation, but that doesn't seem to be the case. Is this configuration supported? What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS:WindowsTickets affecting only Microsoft WindowsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions