Cross-Compilation of SDL-based agar1.3.3 GUI.

Source: Internet
Author: User

Sdl1.2.13 cross-Compilation of agar1.3.3 GUI.

 
Step 1:

./Configure -- prefix =/opt/sdl_agar -- without-gl -- With-docs

 
Step 2:

Modify makefile. include header files in the config file (mainly standard header files, SDL header files, JPEG header files) and Lib (mainly Standard C libraries, SDL and JPEG libraries) PATH is the path of your cross compiler.

Note: I have compiled SDL and installed it in the/opt/sdl_agar directory.

Step 3:

Make cc = mipsel-Linux-gcc ar = mipsel-Linux-ar ranlib = mipsel-Linux-ranlib cxx = mipsel-Linux-G ++

 
Note: Do not just make clean. Otherwise, the config file will be deleted, and you have to re-configure it, Because agar uses bsdbuild, which is totally different from Autoconf!

-----------------------------------------------------

Below is the diff before and after makefile. config modification.

71c71

<Sdl_cflags =-I/opt/sdl_agar/include/SDL-d_gnu_source = 1-d_reentrant

---

> Sdl_cflags =-I/usr/include/SDL-d_gnu_source = 1-d_reentrant

74c74

<Freetype_cflags =-I/opt/mipseltools-gcc412-glibc261/mipsel-Linux/include/FreeType2

---

> Freetype_cflags =-I/usr/include/FreeType2

79, 80c79, 80

<Cmd_cflags =-I/opt/mipseltools-gcc412-glibc261/mipsel-Linux/include

<Pai_libs =-L/opt/mipseltools-gcc412-glibc261/mipsel-Linux/lib-ljpeg

---

> Pai_cflags =-I/usr/include

> Pai_libs =-L/usr/lib-ljpeg

 
 
Keywords ):

SDL cross-compilation, agar GUI cross-compilation, and agar GUI porting.

SDL cross compile, agar GUI cross compile, agar port to MIPS.

Related Article

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.