freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Help cross-compiling SDL_ttf-2.0.9 for ARM (VER 2)


From: Francisco Garza
Subject: [ft-devel] Help cross-compiling SDL_ttf-2.0.9 for ARM (VER 2)
Date: Tue, 30 Mar 2010 19:02:35 -0600

Hi

I need cross-compiling  SDL-1.2.14 (basic) and SDL_ttf-2.0.9 for ARM

located in:
/opt/SDL_library/SDL-1.2.14
/opt/SDL_library/SDL_ttf-2.0.9

My compiler is armv5l-linux-gcc

located in:
/opt/timesys/toolchains/
armv5l-linux/bin/armv5l-linux-
gcc


My PATH is:
#echo $PATH

address@hidden:/home/francisco/arm_prog# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/timesys/toolchains/armv5l-linux/bin:/opt/timesys/toolchains/armv5l-linux/include:/opt/timesys/toolchains/armv5l-linux/lib:/opt/timesys/toolchains/armv5l-linux/libexec:/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/include/freetype2:/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/lib:/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/include/freetype2/freetype


Make version is:

address@hidden:~$ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i486-pc-linux-gnu




STEP 1) Croos-compiling  SDL-1.2.14 (basic)
#./configure --host=armv5l-linux  --prefix=/opt/timesys/toolchains/armv5l-linux
#make
#make install


/opt/timesys/toolchains/armv5l-linux/include/SDL  <-- Include files *.h
/opt/timesys/toolchains/armv5l-linux/lib/libSDL.a


I test a program and works perfectly !!!!



STEP 2) Croos-compiling library freetype-2.3.12

#cd /opt/SDL_library/freetype-2.3.12  

#./configure --host=armv5l-linux  --prefix=/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12

#make

#make install

The library freetype-2.3.12 is in:

/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12

/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/bin
/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/include
/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/lib
/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/share

In the process, no errors


STEP 3) Croos-compiling library SDL_ttf-2.0.9

#cd /opt/SDL_library/SDL_ttf-2.0.9

#gedit configure.in
In line 79
#            ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
         ac_default_prefix=/opt/timesys/toolchains/armv5l-linux


I probe with the following option:

5.-./configure --host=armv5l-linux  --prefix=/opt/timesys/toolchains/armv5l-linux --with-sdl-prefix=/opt/timesys/toolchains/armv5l-linux --with-freetype-prefix=/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12  CPPFLAGS=-I"/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/include/freetype2" LDFLAGS=-L"/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/lib"

#make

#make install

STEP 4) Testing a program

My script file (compile_sdl_ttf) contains:
#!/bin/sh

prefix=/opt/timesys/toolchains/armv5l-linux
exec_prefix=${prefix}
exec_prefix_set=no

${prefix}/bin/armv5l-linux-gcc -static -I${prefix}/armv5l-linux/include -L${exec_prefix}/armv5l-linux/lib -o sdl_ttf_arm sdl_ttf.c -lm -I${prefix}/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -L${exec_prefix}/lib -Wl,-rpath,${prefix}/lib -lSDL -lSDL_ttf -I${prefix}/freetype-2.3.12/include/freetype2/freetype -L${prefix}/freetype-2.3.12/lib -lfreetype -lpthread;


address@hidden:/home/francisco/arm_prog# compile_sdl_ttf
/opt/timesys/toolchains/armv5l-linux/lib/libSDL_ttf.a(SDL_ttf.o): In function `Load_Glyph':
/opt/SDL_library/SDL_ttf-2.0.9/SDL_ttf.c:467: undefined reference to `ceilf'
/opt/SDL_library/SDL_ttf-2.0.9/SDL_ttf.c:535: undefined reference to `ceilf'
/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/lib/libfreetype.a(ftgzip.o): In function `ft_gzip_file_done':
/opt/SDL_library/freetype-2.3.12/src/gzip/ftgzip.c:309: undefined reference to `inflateEnd'
/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/lib/libfreetype.a(ftgzip.o): In function `ft_gzip_file_fill_output':
/opt/SDL_library/freetype-2.3.12/src/gzip/ftgzip.c:412: undefined reference to `inflate'
/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/lib/libfreetype.a(ftgzip.o): In function `ft_gzip_file_reset':
/opt/SDL_library/freetype-2.3.12/src/gzip/ftgzip.c:338: undefined reference to `inflateReset'
/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12/lib/libfreetype.a(ftgzip.o): In function `ft_gzip_file_init':
/opt/SDL_library/freetype-2.3.12/src/gzip/ftgzip.c:294: undefined reference to `inflateInit2_'
collect2: ld returned 1 exit status


Thanks for any suggestions.

Francisco Garza


reply via email to

[Prev in Thread] Current Thread [Next in Thread]