freetype-devel
[Top][All Lists]
Advanced

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

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


From: mpsuzuki
Subject: Re: [ft-devel] Help cross-compiling SDL_ttf-2.0.9 for ARM (VER 2)
Date: Thu, 1 Apr 2010 02:43:37 +0900

I think your question is not about FreeType,
it's a question about cross compiling (of SDL_ttf).
I think your FreeType could have been built correctly
but you are trying to use it by wrong method.

I want to ask who told you a wrong method of
cross building. Even when you can solve this problem
to build SDL_ttf, you will confront another problem soon,
by the wrong cross compiling method that you were told.

On Tue, 30 Mar 2010 19:02:35 -0600
Francisco Garza <address@hidden> wrote:
>*STEP 1) Croos-compiling  SDL-1.2.14 (basic)*
>#./configure --host=armv5l-linux
>--prefix=/opt/timesys/toolchains/armv5l-linux

This is already different from popular GNU tools cross
building by using --build=xxx & --host=yyy. Who told you
such?

>*STEP 2) Croos-compiling library freetype-2.3.12*
>#./configure --host=armv5l-linux
>--prefix=/opt/timesys/toolchains/armv5l-linux/freetype-2.3.12

This is different from what docs/INSTALL.CROSS tells.

>*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*

Your target line is executed when host is set to
"*-*-cygwin*" or "*-*-mingw32". So your modification
has no effect if you set host to armv5l-linux,
I think.

>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" *

if "--with-freetype-prefix" is set correctly,
configure of SDL_ttf will find freetype-config
in the directory and set CPPFLAGS, CFLAGS, LDFLAGS
and LIBS automatically. Why you set them manually?

And, the values you set are wrong. Compare them with
the values freetype-config returns.

Regards,
mpsuzuki


>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'

because libm is not given.

>/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

because libz is not given.




reply via email to

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