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 2226

Summary: EGL build related errors
Product: SDL Reporter: romain145
Component: buildAssignee: Gabriel Jacobo <gabomdq>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq, romain145
Version: 2.0.1   
Hardware: ARM   
OS: Linux   
Attachments: config.log
SDL_config.h

Description romain145 2013-11-11 16:19:28 UTC
From the latest pull from Mercurial repo (today) :

After a configure/make :

/root/SDL/src/video/x11/SDL_x11window.c: In function 'X11_CreateWindow':
/root/SDL/src/video/x11/SDL_x11window.c:566:19: error: 'SDL_VideoDevice' has no member named 'egl_data'
/root/SDL/src/video/x11/SDL_x11window.c:572:19: error: 'SDL_WindowData' has no member named 'egl_surface'
/root/SDL/src/video/x11/SDL_x11window.c:572:9: warning: implicit declaration of function 'SDL_EGL_CreateSurface' [-Wimplicit-function-declaration]
/root/SDL/src/video/x11/SDL_x11window.c:572:65: error: 'NativeWindowType' undeclared (first use in this function)
/root/SDL/src/video/x11/SDL_x11window.c:572:65: note: each undeclared identifier is reported only once for each function it appears in
/root/SDL/src/video/x11/SDL_x11window.c:572:83: error: expected ')' before 'w'
/root/SDL/src/video/x11/SDL_x11window.c:574:23: error: 'SDL_WindowData' has no member named 'egl_surface'
/root/SDL/src/video/x11/SDL_x11window.c:574:40: error: 'EGL_NO_SURFACE' undeclared (first use in this function)
make: *** [build/SDL_x11window.lo] Error 1

Platform : ARM/i.MX6 kernel 3.0.35-cm-fx6-4.
Comment 1 Gabriel Jacobo 2013-11-11 16:50:57 UTC
Please attach config.log and SDL_config.h
Comment 2 romain145 2013-11-11 17:56:24 UTC
Created attachment 1418 [details]
config.log
Comment 3 romain145 2013-11-11 17:56:57 UTC
Created attachment 1419 [details]
SDL_config.h
Comment 4 Gabriel Jacobo 2013-11-11 22:18:21 UTC
This should be fixed, thanks!

https://hg.libsdl.org/SDL/rev/904d473b8845