http://blog.csdn.net/jhting/article/details/38523945
Ubuntu 14.04 LTS 64bit compiling the SDL issue
Category:2014-08-12 23:33 423 People reading reviews (0) favorite reports Sdl
It's OK to compile in 32-bit Linux before.
SDL1.2
Packages that need to be installed:
Xorg-dev (Execute apt-get Install Xorg-dev, do not install this package prompt XSHm.h header file cannot be found)
Prompt for _XDATA32 data structure error when making, Internet search, this is a bug of SDL, need to hit a patch of SDL
The contents are as follows:
[Plain]View Plaincopyprint?
- LIBX11-1.5.99.901 has changed prototype of _XDATA32
- Diff-r B6b2829cd7ef src/video/x11/sdl_x11sym.h
- ---a/src/video/x11/sdl_x11sym.h Wed Feb 27 15:20:31 2013-0800
- + + + b/src/video/x11/sdl_x11sym.h Wed Mar 27 16:07:23 2013 +0100
- @@ -165,7 +165,7 @@
- */
- #ifdef LONG64
- Sdl_x11_module (Io_32bit)
- -sdl_x11_sym (Int,_xdata32, (Display *dpy,register long *data,unsigned len), (Dpy,data,len), return)
- +sdl_x11_sym (Int,_xdata32, (Display *dpy,register _xconst long *data,unsigned len), (Dpy,data,len), return)
- Sdl_x11_sym (Void,_xread32, (Display *dpy,register long *data,long len), (Dpy,data,len),)
- #endif
If you save it in the SDL directory, file name: Sdl-1.2-const_xdata32.patch, the following command executes:
Patch-p1 < Sdl-1.2-const_xdata32.patch
Once done, make no error.
Ubuntu 14.04 LTS 64bit compiling the SDL issue