Skip to content

Can't install nuklear with go get #64

@franagustin

Description

@franagustin

Hiya! I'm getting an issue when trying to go get this:

go get github.com/golang-ui/nuklear/nk
# github.com/go-gl/glfw/v3.2/glfw
In file included from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/win32_init.c:33:0,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w\c_glfw_windows.go:4:
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_init.
c:34:13: warning: 'GUID_DEVINTERFACE_HID' initialized and declared 'extern'
 DEFINE_GUID(GUID_DEVINTERFACE_HID,0x4d1e55b2,0xf16f,0x11cf,0x88,0xcb,0x00,0x11,
0x11,0x00,0x00,0x30);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:57:13: warning: 'IID_IDirectInput8W' initialized and declared 'extern'
 DEFINE_GUID(IID_IDirectInput8W,0xbf798031,0x483a,0x4da2,0xaa,0x99,0x5d,0x64,0xe
d,0x36,0x97,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:58:13: warning: 'GUID_XAxis' initialized and declared 'extern'
 DEFINE_GUID(GUID_XAxis,0xa36d02e0,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0
x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:59:13: warning: 'GUID_YAxis' initialized and declared 'extern'
 DEFINE_GUID(GUID_YAxis,0xa36d02e1,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0
x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:60:13: warning: 'GUID_ZAxis' initialized and declared 'extern'
 DEFINE_GUID(GUID_ZAxis,0xa36d02e2,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0
x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:61:13: warning: 'GUID_RxAxis' initialized and declared 'extern'
 DEFINE_GUID(GUID_RxAxis,0xa36d02f4,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,
0x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:62:13: warning: 'GUID_RyAxis' initialized and declared 'extern'
 DEFINE_GUID(GUID_RyAxis,0xa36d02f5,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,
0x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:63:13: warning: 'GUID_RzAxis' initialized and declared 'extern'
 DEFINE_GUID(GUID_RzAxis,0xa36d02e3,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,
0x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:64:13: warning: 'GUID_Slider' initialized and declared 'extern'
 DEFINE_GUID(GUID_Slider,0xa36d02e4,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,
0x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:65:13: warning: 'GUID_Button' initialized and declared 'extern'
 DEFINE_GUID(GUID_Button,0xa36d02f0,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,
0x00,0x00);
             ^
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_joyst
ick.c:66:13: warning: 'GUID_POV' initialized and declared 'extern'
 DEFINE_GUID(GUID_POV,0xa36d02f2,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x0
0,0x00);
             ^
In file included from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w\c_glfw_windows.go:9:0:
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c: In function 'updateCursorImage':
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:259:41: warning: passing argument 2 of 'LoadCursorW' from incompatible point
er type [-Wincompatible-pointer-types]
             SetCursor(LoadCursorW(NULL, IDC_ARROW));
                                         ^~~~~~~~~
In file included from c:\mingw\include\windows.h:48:0,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/win32_platform.h:68,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/internal.h:167,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/win32_init.c:28,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w\c_glfw_windows.go:4:
c:\mingw\include\winuser.h:3999:27: note: expected 'LPCWSTR {aka const short uns
igned int *}' but argument is of type 'CHAR * {aka char *}'
 WINUSERAPI HCURSOR WINAPI LoadCursorW (HINSTANCE, LPCWSTR);
                           ^~~~~~~~~~~
In file included from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w\c_glfw_windows.go:9:0:
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c: In function 'translateCursorShape':
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:288:20: warning: return from incompatible pointer type [-Wincompatible-point
er-types]
             return IDC_ARROW;
                    ^~~~~~~~~
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:290:20: warning: return from incompatible pointer type [-Wincompatible-point
er-types]
             return IDC_IBEAM;
                    ^~~~~~~~~
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:292:20: warning: return from incompatible pointer type [-Wincompatible-point
er-types]
             return IDC_CROSS;
                    ^~~~~~~~~
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:294:20: warning: return from incompatible pointer type [-Wincompatible-point
er-types]
             return IDC_HAND;
                    ^~~~~~~~
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:296:20: warning: return from incompatible pointer type [-Wincompatible-point
er-types]
             return IDC_SIZEWE;
                    ^~~~~~~~~~
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:298:20: warning: return from incompatible pointer type [-Wincompatible-point
er-types]
             return IDC_SIZENS;
                    ^~~~~~~~~~
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c: In function '_glfwRegisterWindowClassWin32':
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:948:42: warning: passing argument 2 of 'LoadCursorW' from incompatible point
er type [-Wincompatible-pointer-types]
     wc.hCursor       = LoadCursorW(NULL, IDC_ARROW);
                                          ^~~~~~~~~
In file included from c:\mingw\include\windows.h:48:0,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/win32_platform.h:68,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/internal.h:167,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/win32_init.c:28,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w\c_glfw_windows.go:4:
c:\mingw\include\winuser.h:3999:27: note: expected 'LPCWSTR {aka const short uns
igned int *}' but argument is of type 'CHAR * {aka char *}'
 WINUSERAPI HCURSOR WINAPI LoadCursorW (HINSTANCE, LPCWSTR);
                           ^~~~~~~~~~~
In file included from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w\c_glfw_windows.go:9:0:
C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glfw/glfw/src/win32_windo
w.c:959:31: warning: passing argument 2 of 'LoadImageW' from incompatible pointe
r type [-Wincompatible-pointer-types]
                               IDI_APPLICATION, IMAGE_ICON,
                               ^~~~~~~~~~~~~~~
In file included from c:\mingw\include\windows.h:48:0,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/win32_platform.h:68,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/internal.h:167,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w/glfw/src/win32_init.c:28,
                 from C:\Users\Claudia\dev\go\src\github.com\go-gl\glfw\v3.2\glf
w\c_glfw_windows.go:4:
c:\mingw\include\winuser.h:4011:26: note: expected 'LPCWSTR {aka const short uns
igned int *}' but argument is of type 'CHAR * {aka char *}'
 WINUSERAPI HANDLE WINAPI LoadImageW (HINSTANCE, LPCWSTR, UINT, int, int, UINT);

                          ^~~~~~~~~~

I'm also getting a similar problem when downloading manually as zip and trying to go install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions