static compiling for wayland broken?

Daniel V <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CAL_NL1DHfXz_t1o7VN5=_pT_QwD4AJ_Vw94C6F2qH3k3e==xCQ@mail.gmail.com>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.