go-gl / glfw

Go bindings for GLFW 3
BSD 3-Clause "New" or "Revised" License
1.57k stars 182 forks source link

error dinput #167

Closed vgrabko closed 8 years ago

vgrabko commented 8 years ago

Win XP

use example

$  go run main.go
# github.com/go-gl/glfw/v3.2/glfw
In file included from glfw/src/internal.h:161:0,
                 from glfw/src/context.c:28,
                 from ..\github.com\go-gl\glfw\v3.2\glfw\c_glfw.go:4:
glfw/src/win32_platform.h:70:20: fatal error: dinput.h: No such file or directory
 #include <dinput.h>
                    ^
compilation terminated.
dmitshur commented 8 years ago

It looks like you're missing dinput.h header file, which seems to be required by GLFW on Windows:

https://github.com/glfw/glfw/blob/3.2/src/win32_platform.h#L70

According to http://linode.ogre3d.org/forums/viewtopic.php?f=2&t=81902, it looks like it's coming from DirectX SDK. Perhaps you need that?

Once we figure out what the required dependency is, we should resolve this issue by updating https://github.com/go-gl/glfw#installation.

Are you using MinGW? What version? Is it properly installed?

vgrabko commented 8 years ago

sorry

dmitshur commented 8 years ago

No problem!

Did you figure out where the issue was? It'd be helpful to mention that for anyone who may find this issue later.

vgrabko commented 8 years ago

update MinGw to MinGw - 64 32 bit version.