~eliasnaur/gio

1

Re: failed to load libEGL.dll on windows

Details
Message ID
<C0XO9RNRABGC.1V797TZU9YUJ5@toolbox>
DKIM signature
pass
Download raw message
On Fri Feb 28, 2020 at 08:49,  wrote:
> Hi Elias,
>
>  tried to build the latest sources on win7 32bit:
> C:\Users\a\go\src>go build gioui.org/example/kitchen
> go: finding gioui.org/example latest
> go: finding gioui.org latest
> go: downloading gioui.org/example v0.0.0-20200227212654-bfb50cef5de4
> go: downloading gioui.org v0.0.0-20200227212654-bfb50cef5de4
> go: extracting gioui.org v0.0.0-20200227212654-bfb50cef5de4
> go: extracting gioui.org/example v0.0.0-20200227212654-bfb50cef5de4
> go: downloading gioui.org v0.0.0-20200227204135-e03b3cd808b4
> go: extracting gioui.org v0.0.0-20200227204135-e03b3cd808b4
> go: downloading golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9
> go: extracting golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9
> go: finding gioui.org v0.0.0-20200227204135-e03b3cd808b4
> go: finding golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9
> # gioui.org/app/internal/window
> ..\pkg\mod\gioui.org@v0.0.0-20200227204135-e03b3cd808b4\app\internal\window\d3d11_windows.go:55:4:
> constant 2289696775 overflows int
> ..\pkg\mod\gioui.org@v0.0.0-20200227204135-e03b3cd808b4\app\internal\window\d3d11_windows.go:55:4:
> constant 2289696773 overflows int
> ..\pkg\mod\gioui.org@v0.0.0-20200227204135-e03b3cd808b4\app\internal\window\d3d11_windows.go:55:4:
> constant 2289436784 overflows int
>
> Should it work in 32bit windows?
>

Thank you for noticing. Fixed in

	https://gioui.org/commit/5ae68d21275ad0289d112c23a6fd48bf8712e648
	https://gioui.org/commit/2fd7e2dd9ba955de7c457fbdcc12546cee949d61

-- elias

Re: failed to load libEGL.dll on windows

Details
Message ID
<CA+ctqrri=WiXc98VLJbX58rOUC47vZC--Ffrcre-+i0mwvCbiw@mail.gmail.com>
In-Reply-To
<C0XO9RNRABGC.1V797TZU9YUJ5@toolbox> (view parent)
DKIM signature
pass
Download raw message
On 2/28/20, Elias Naur <mail@eliasnaur.com> wrote:
> On Fri Feb 28, 2020 at 08:49,  wrote:
>> Hi Elias,
>>
>>  tried to build the latest sources on win7 32bit:
>> C:\Users\a\go\src>go build gioui.org/example/kitchen
>> go: finding gioui.org/example latest
>> go: finding gioui.org latest
>> go: downloading gioui.org/example v0.0.0-20200227212654-bfb50cef5de4
>> go: downloading gioui.org v0.0.0-20200227212654-bfb50cef5de4
>> go: extracting gioui.org v0.0.0-20200227212654-bfb50cef5de4
>> go: extracting gioui.org/example v0.0.0-20200227212654-bfb50cef5de4
>> go: downloading gioui.org v0.0.0-20200227204135-e03b3cd808b4
>> go: extracting gioui.org v0.0.0-20200227204135-e03b3cd808b4
>> go: downloading golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9
>> go: extracting golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9
>> go: finding gioui.org v0.0.0-20200227204135-e03b3cd808b4
>> go: finding golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9
>> # gioui.org/app/internal/window
>> ..\pkg\mod\gioui.org@v0.0.0-20200227204135-e03b3cd808b4\app\internal\window\d3d11_windows.go:55:4:
>> constant 2289696775 overflows int
>> ..\pkg\mod\gioui.org@v0.0.0-20200227204135-e03b3cd808b4\app\internal\window\d3d11_windows.go:55:4:
>> constant 2289696773 overflows int
>> ..\pkg\mod\gioui.org@v0.0.0-20200227204135-e03b3cd808b4\app\internal\window\d3d11_windows.go:55:4:
>> constant 2289436784 overflows int
>>
>> Should it work in 32bit windows?
>>
>
> Thank you for noticing. Fixed in
>
> 	https://gioui.org/commit/5ae68d21275ad0289d112c23a6fd48bf8712e648
> 	https://gioui.org/commit/2fd7e2dd9ba955de7c457fbdcc12546cee949d61
>
> -- elias
>

Thanks!
Now it does compile, but crashes before drawing anything (except for
the window decoration):
C:\Users\a\go\src>go build gioui.org/example/kitchen
go: finding gioui.org/example latest
go: finding gioui.org latest
go: downloading gioui.org/example v0.0.0-20200228085934-5ae68d21275a
go: downloading gioui.org v0.0.0-20200228085934-5ae68d21275a
go: extracting gioui.org/example v0.0.0-20200228085934-5ae68d21275a
go: extracting gioui.org v0.0.0-20200228085934-5ae68d21275a
go: downloading gioui.org v0.0.0-20200228085823-2fd7e2dd9ba9
go: extracting gioui.org v0.0.0-20200228085823-2fd7e2dd9ba9
go: finding gioui.org v0.0.0-20200228085823-2fd7e2dd9ba9

C:\Users\a\go\src>kitchen.exe
panic: ID3D11DeviceCreateVertexShader; 0x80070057

goroutine 51 [running, locked to thread]:
gioui.org/gpu.newBlitter(0x5e90a0, 0x11e5e000, 0xb0)
        C:/Users/a/go/pkg/mod/gioui.org@v0.0.0-20200228085823-2fd7e2dd9ba9/gpu/gpu.go:435
+0x3b9
gioui.org/gpu.newRenderer(0x5e90a0, 0x11e5e000, 0x11cc4140)
        C:/Users/a/go/pkg/mod/gioui.org@v0.0.0-20200228085823-2fd7e2dd9ba9/gpu/gpu.go:401
+0x2d
gioui.org/gpu.(*GPU).init(...)
        C:/Users/a/go/pkg/mod/gioui.org@v0.0.0-20200228085823-2fd7e2dd9ba9/gpu/gpu.go:290
gioui.org/gpu.New(0x5e90a0, 0x11e5e000, 0x11e5e000, 0x0, 0x0)
        C:/Users/a/go/pkg/mod/gioui.org@v0.0.0-20200228085823-2fd7e2dd9ba9/gpu/gpu.go:282
+0x135
gioui.org/app.(*renderLoop).renderLoop.func1(0x11cbc1b0, 0x5e7680,
0x11cc4160, 0x11e5c1c0)
        C:/Users/a/go/pkg/mod/gioui.org@v0.0.0-20200228085823-2fd7e2dd9ba9/app/loop.go:74
+0xf3
created by gioui.org/app.(*renderLoop).renderLoop
        C:/Users/a/go/pkg/mod/gioui.org@v0.0.0-20200228085823-2fd7e2dd9ba9/app/loop.go:60
+0x69

cheers,
fgergo