Hi,

A few exchange with Giant, we could build libttf.a,
so I post a short summary to cross build freetype-1.3.1,
for search engine users :-).

On Tue, 21 Feb 2006 07:01:23 +0100 (CET)
Werner LEMBERG <[EMAIL PROTECTED]> wrote:
>> but how can I configure for my embedded arm7 system?
>
>Normally this is controlled with the --host, --build, and --target
>options of the configure script.  I can't remember whether version 1.x
>supports cross compiling.

configure in freetype-1.3.1 tarball is not ready for
cross building. to recreate configure supporting cross
buidling, commenting-out "AC_REQUIRE([AC_PROG_MAKE_SET])"
and executing autoconf again is enough.

However, in this case (target is arm-linux-uclibc, not
arm-uclibc-linux) config.sub could not recognize target
system name. small fix is required for config.sub aslike:

--- config.sub.orig     2006-02-21 19:42:24.000000000 +0900
+++ config.sub  2006-02-21 19:40:12.000000000 +0900
@@ -68,7 +68,7 @@
 # Here we must recognize all the valid KERNEL-OS combinations.
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
-  linux-gnu*)
+  linux-gnu* | linux-uclibc* )
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     ;;

I think it's enough to build libttf.a. Unfortunately,
test programs (like ftdump) are not ready for cross
build. Anyway, I wish people to migrate to FreeType2,
as Werner wrote.

Regards,
mpsuzuki


_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to