The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
static compiling for wayland broken?
Daniel V
Guest

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.
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
static compiling for wayland broken?
Emmanuel Gil Peyrot
Guest

On Tue, Nov 08, 2016 at 08:09:39AM +0100, Daniel V wrote:
Quote:
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,
^

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.

Quote:



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
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org