freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Compiling freetype on uclinux


From: nafiton smith
Subject: Re: [Freetype] Compiling freetype on uclinux
Date: Wed, 03 Mar 2004 11:39:13 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007


Werner LEMBERG wrote:

I untar the downloaded file and run the configure through this
script that I put on the untarred directory root:

I've modified your script, see below.  It works on my GNU/Linux box.
Please try again.


   Werner

======================================================================

#!/bin/sh
rm -f config.cache config.status
CC="m68k-elf-gcc"
CFLAGS="-O2 -D__uClinux__ \
       -I/home/nafi/uClinux-dist/lib/uClibc/include \
       -I/home/nafi/uClinux-dist/linux-2.4.x/include \
       -m5307 -Wa,-S -Wa,-m5307 -msep-data"
LDFLAGS="-Wl,-elf2flt -Wl,-move-rodata \
        -L/home/nafi/uClinux-dist/lib/uClibc/lib"
LIBS="-lc"
CONFIG="--prefix=/home/nafi/uClinux-dist/libfreetype \
       --build=i386-linux \
       --host=m68k-elf-linux \
       --target=m68k-elf-linux \
       --disable-nls \
       --enable-static"

./configure $CONFIG \
           CC=\"$CC\" \
           CFLAGS=\"$CFLAGS\" \
           LDFLAGS=\"$LDFLAGS\" \
           LIBS=\"$LIBS\"
Hello Werner

This is what I get runnig that script:
address@hidden freetype-1.3.1]# ./buildlib
configure: warning: CC="m68k-elf-gcc": invalid host type
configure: warning: CFLAGS="-O2: invalid host type
configure: error: can only configure for one host and one target at a time

It is as if there is something in my system that makes that this configure does not accept this kind of parameters when it is called. Or, Is it possible this configure can not be used for cross compiling?

I looked a little at configure script. When it test the options, it does a case $ac_option, and for these parameters it always falls to:
 *)
   if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
         echo "configure: warning: $ac_option: invalid host type" 1>&2
   fi
   ....
I am still trying to understand what sed does but this is where the process fails when I put CC, CCLFLAGS... on the configure call.

Thanks,
nafiton








reply via email to

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