nanogui: cross compiling libwww


Previous by date: 5 Oct 2005 15:38:42 +0100 Re: Problem with overwriting text., amareesh
Next by date: 5 Oct 2005 15:38:42 +0100 Re: Problem with overwriting text., Greg Haerr
Previous in thread: 5 Oct 2005 15:38:42 +0100 cross compiling libwww, sai baba
Next in thread: 5 Oct 2005 15:38:42 +0100 Re: cross compiling libwww, Greg Haerr

Subject: Re: cross compiling libwww
From: "Jordan Crouse" ####@####.####
Date: 5 Oct 2005 15:38:42 +0100
Message-Id: <20051005145506.GA24950@cosmic.amd.com>

> checking size of char... configure: error: can not run
> test program while cross compiling

A little bit off topic, but thats OK.

To check the size of an variable type, configure compiles and runs
a small program.  Since you're compiling for arm-linux, obviously you
can't run that program on your host system.

The best way to fix that is to add this:

ac_cv_sizeof_char=${ac_cv_sizeof_char=1}

to the config.cache file in the same directory you are running 
configure in.

Odds are you will probably need one of these too:

ac_cv_sizeof_wchar_t=${ac_cv_sizeof_wchar_t=1}
ac_cv_sizeof_unsigned_char=${ac_cv_sizeof_unsigned_char=1}
ac_cv_sizeof_bool=${ac_cv_sizeof_bool=1}
ac_cv_sizeof_int=${ac_cv_sizeof_int=4}
ac_cv_sizeof_long=${ac_cv_sizeof_long=4}
ac_cv_sizeof_long_int=${ac_cv_sizeof_long_int=4}
ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long=8}
ac_cv_sizeof_short=${ac_cv_sizeof_short=2}
ac_cv_sizeof_short_int=${ac_cv_sizeof_short_int=2}
ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t=4}
ac_cv_sizeof_void_p=${ac_cv_sizeof_void_p=4}
ac_cv_sizeof_float=${ac_cv_sizeof_float=4}
ac_cv_sizeof_double=${ac_cv_sizeof_double=8}
ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double=8}
ac_cv_sizeof_unsigned_short=${ac_cv_sizeof_unsigned_short=2}
ac_cv_sizeof_unsigned_int=${ac_cv_sizeof_unsigned_int=4}
ac_cv_sizeof_unsigned_long=${ac_cv_sizeof_unsigned_long=4}
ac_cv_sizeof_unsigned_long_long=${ac_cv_sizeof_unsigned_long_long=8}
ac_cv_sizeof_signed_char=${ac_cv_sizeof_signed_char=1}

Jordan

-- 
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>


Previous by date: 5 Oct 2005 15:38:42 +0100 Re: Problem with overwriting text., amareesh
Next by date: 5 Oct 2005 15:38:42 +0100 Re: Problem with overwriting text., Greg Haerr
Previous in thread: 5 Oct 2005 15:38:42 +0100 cross compiling libwww, sai baba
Next in thread: 5 Oct 2005 15:38:42 +0100 Re: cross compiling libwww, Greg Haerr


Powered by ezmlm-browse 0.20.