Multiple errors while building tinywl
```
# github.com/swaywm/go-wlroots/wlroots
In file included from wlroots.go:25,
from _cgo_export.c:4:
/usr/include/wlr/types/wlr_surface.h:1:2: warning: #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h." [-Wcpp]
1 | #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h."
| ^~~~~~~
# github.com/swaywm/go-wlroots/wlroots
In file included from wlroots/wlroots.go:25:
/usr/include/wlr/types/wlr_surface.h:1:2: warning: #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h." [-Wcpp]
1 | #warning "wlr/types/wlr_surface.h has been deprecated and will be removed in the future. Use wlr/types/wlr_compositor.h and wlr/types/wlr_subcompositor.h."
| ^~~~~~~
# github.com/swaywm/go-wlroots/wlroots
wlroots/wlroots.go:197:30: not enough arguments in call to (_Cfunc_wlr_xdg_shell_create)
have (*_Ctype_struct_wl_display)
want (*_Ctype_struct_wl_display, _Ctype_uint)
wlroots/wlroots.go:258:96: cannot use _cgo0 (variable of type *_Ctype_struct_wlr_xdg_surface) as type *_Ctype_struct_wlr_xdg_toplevel in argument to _Cfunc_wlr_xdg_toplevel_set_activated
wlroots/wlroots.go:262:62: cannot use _Ctype_uint32_t(width) (value of type _Ctype_uint) as type _Ctype_int in variable declaration
wlroots/wlroots.go:262:81: cannot use _Ctype_uint32_t(height) (value of type _Ctype_uint) as type _Ctype_int in variable declaration
wlroots/wlroots.go:262:82: cannot use _cgo0 (variable of type *_Ctype_struct_wlr_xdg_surface) as type *_Ctype_struct_wlr_xdg_toplevel in argument to _Cfunc_wlr_xdg_toplevel_set_size
wlroots/wlroots.go:266:88: cannot use _cgo0 (variable of type *_Ctype_struct_wlr_xdg_surface) as type *_Ctype_struct_wlr_xdg_toplevel in argument to _Cfunc_wlr_xdg_toplevel_set_tiled
wlroots/wlroots.go:270:71: cannot use _cgo0 (variable of type *_Ctype_struct_wlr_xdg_surface) as type *_Ctype_struct_wlr_xdg_toplevel in argument to _Cfunc_wlr_xdg_toplevel_send_close
wlroots/wlroots.go:574:73: cannot use _cgo1 (variable of type *_Ctype_struct_wlr_input_device) as type *_Ctype_struct_wlr_keyboard in argument to _Cfunc_wlr_seat_set_keyboard
wlroots/wlroots.go:940:22: event.time_msec undefined (type *_Ctype_struct_wlr_event_keyboard_key has no field or method time_msec)
wlroots/wlroots.go:940:47: event.keycode undefined (type *_Ctype_struct_wlr_event_keyboard_key has no field or method keycode)
wlroots/wlroots.go:940:47: too many errors
```
关闭于 2023-07-08 0 条评论