We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3255

Summary: SDL does not compile with Wayland master
Product: SDL Reporter: bluescreen_avenger
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann, tcallawa
Version: HG 2.1   
Hardware: x86   
OS: Linux   
Attachments: Fix compilation (dynamic) against current wayland.

Description bluescreen_avenger 2016-02-05 03:51:04 UTC
Here is the error output I get:

  CC     build/SDL_waylandevents.lo
  CC     build/SDL_waylandmouse.lo
  CC     build/SDL_waylandopengles.lo
  CC     build/SDL_waylandtouch.lo
  CC     build/SDL_waylandvideo.lo
  CC     build/SDL_waylandwindow.lo
  LTLINK build/libSDL2.la
build/.libs/SDL_waylandevents.o: In function `wl_registry_bind':
/opt/include/wayland-client-protocol.h:306: undefined reference to `wl_proxy_marshal_constructor_versioned'
build/.libs/SDL_waylandtouch.o: In function `wl_registry_bind':
/opt/include/wayland-client-protocol.h:306: undefined reference to `wl_proxy_marshal_constructor_versioned'
build/.libs/SDL_waylandvideo.o: In function `wl_registry_bind':
/opt/include/wayland-client-protocol.h:306: undefined reference to `wl_proxy_marshal_constructor_versioned'
/opt/include/wayland-client-protocol.h:306: undefined reference to `wl_proxy_marshal_constructor_versioned'
/opt/include/wayland-client-protocol.h:306: undefined reference to `wl_proxy_marshal_constructor_versioned'
build/.libs/SDL_waylandvideo.o:/opt/include/wayland-client-protocol.h:306: more undefined references to `wl_proxy_marshal_constructor_versioned' follow
collect2: error: ld returned 1 exit status
Makefile:141: recipe for target 'build/libSDL2.la' failed
make: *** [build/libSDL2.la] Error 1



Thanks.
Comment 1 Tom Callaway 2016-02-05 17:28:50 UTC
Created attachment 2376 [details]
Fix compilation (dynamic) against current wayland.
Comment 2 bluescreen_avenger 2016-02-06 03:59:53 UTC
That patch fixed it. I had to adjust the paths a bit, but after it applied SDL compiles! Thanks!
Comment 3 Ryan C. Gordon 2016-02-28 05:08:56 UTC
Just merging two bugs together here...

*** This bug has been marked as a duplicate of bug 3265 ***