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.