Discussion:
[SDL] static compiling for wayland broken?
Daniel V
2016-11-08 07:09:39 UTC
Permalink
I tried to do a static compile following these instructions...
https://wiki.libsdl.org/Installation

And I also installed all the following stated here...
https://hg.libsdl.org/SDL/file/default/docs/README-linux.md

But installing libwayland-dev libxkbcommon-dev wayland-protocols
...resulted in the following errors...

/SDL/src/video/wayland/SDL_waylandevents.c:478:5: warning: excess
elements in struct initializer
data_source_handle_dnd_drop_performed, // Version 3

/SDL/src/video/wayland/SDL_waylandevents.c:478:5: note: (near
initialization for 'data_source_listener')
/home/logos/Logos_2016/skypilot/sdl_static_linked/SDL/src/video/wayland/SDL_waylandevents.c:479:5:
warning: excess elements in struct initializer
data_source_handle_dnd_finished, // Version 3
^
/SDL/src/video/wayland/SDL_waylandevents.c:480:5: warning: excess
elements in struct initializer
data_source_handle_action, // Version 3
^
/SDL/src/video/wayland/SDL_waylandevents.c:541:5: warning: excess
elements in struct initializer
data_offer_handle_source_actions, // Version 3
^
/SDL/src/video/wayland/SDL_waylandevents.c:542:5: warning: excess
elements in struct initializer
data_offer_handle_actions, // Version 3
^
/SDL/src/video/wayland/SDL_waylandevents.c:570:27: error:
'WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE' undeclared (first use in this
function)
uint32_t dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE;
^
/SDL/src/video/wayland/SDL_waylandevents.c:587:26: error:
'WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY' undeclared (first use in this
function)
dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY;
^
/SDL/src/video/wayland/SDL_waylandevents.c:589:9: warning: implicit
declaration of function 'wl_data_offer_set_actions'
[-Wimplicit-function-declaration]
wl_data_offer_set_actions(data_device->drag_offer->offer,
^



When I removed...
libwayland-dev libxkbcommon-dev wayland-protocols

I was able to compile without problem.

// Daniel V.
Emmanuel Gil Peyrot
2016-11-08 11:00:43 UTC
Permalink
Post by Daniel V
I tried to do a static compile following these instructions...
https://wiki.libsdl.org/Installation
And I also installed all the following stated here...
https://hg.libsdl.org/SDL/file/default/docs/README-linux.md
But installing libwayland-dev libxkbcommon-dev wayland-protocols
...resulted in the following errors...
/SDL/src/video/wayland/SDL_waylandevents.c:478:5: warning: excess
elements in struct initializer
data_source_handle_dnd_drop_performed, // Version 3
/SDL/src/video/wayland/SDL_waylandevents.c:478:5: note: (near
initialization for 'data_source_listener')
warning: excess elements in struct initializer
data_source_handle_dnd_finished, // Version 3
^
/SDL/src/video/wayland/SDL_waylandevents.c:480:5: warning: excess
elements in struct initializer
data_source_handle_action, // Version 3
^
/SDL/src/video/wayland/SDL_waylandevents.c:541:5: warning: excess
elements in struct initializer
data_offer_handle_source_actions, // Version 3
^
/SDL/src/video/wayland/SDL_waylandevents.c:542:5: warning: excess
elements in struct initializer
data_offer_handle_actions, // Version 3
^
'WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE' undeclared (first use in this
function)
uint32_t dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE;
^
'WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY' undeclared (first use in this
function)
dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY;
^
/SDL/src/video/wayland/SDL_waylandevents.c:589:9: warning: implicit
declaration of function 'wl_data_offer_set_actions'
[-Wimplicit-function-declaration]
wl_data_offer_set_actions(data_device->drag_offer->offer,
^
Given the errors, you are probably using an old libwayland, drag’n’drop
actions have been added to the core Wayland protocol in January, in
preparation for the 1.10 release. You should either update your
libwayland to a more recent one, or add support for version 2 of
data_source and data_offer to SDL2, taking the min of the
_SINCE_VERSION macros and what the compositor is giving you.
Post by Daniel V
When I removed...
libwayland-dev libxkbcommon-dev wayland-protocols
I was able to compile without problem.
You probably compiled without Wayland support then.
--
Emmanuel Gil Peyrot
Loading...