Ubuntu 14.04 LTS 64bit compiling the SDL issue

Source: Internet
Author: User

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?
  1. LIBX11-1.5.99.901 has changed prototype of _XDATA32
  2. Diff-r B6b2829cd7ef src/video/x11/sdl_x11sym.h
  3. ---a/src/video/x11/sdl_x11sym.h Wed Feb 27 15:20:31 2013-0800
  4. + + + b/src/video/x11/sdl_x11sym.h Wed Mar 27 16:07:23 2013 +0100
  5. @@ -165,7 +165,7 @@
  6. */
  7. #ifdef LONG64
  8. Sdl_x11_module (Io_32bit)
  9. -sdl_x11_sym (Int,_xdata32, (Display *dpy,register long *data,unsigned len), (Dpy,data,len), return)
  10. +sdl_x11_sym (Int,_xdata32, (Display *dpy,register _xconst long *data,unsigned len), (Dpy,data,len), return)
  11. Sdl_x11_sym (Void,_xread32, (Display *dpy,register long *data,long len), (Dpy,data,len),)
  12. #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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.