bug-ncurses
[Top][All Lists]
Advanced

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

Re: Error while crosscompiling ncurses to ARM


From: Thomas E. Dickey
Subject: Re: Error while crosscompiling ncurses to ARM
Date: Wed, 30 Oct 2002 07:07:23 -0500 (EST)

On Tue, 29 Oct 2002, Joyce Tan wrote:

> Oops ... hehehe ..
> I'm no linux or compiling expert yet :)
>
> I noticed that the output executables generated seems
> to be Intel 80386 format.  If i do "file" in infocmp
> it will say "ELF 32-bit LSB executable, Intel 80386,
> version 1 dynamically linked (uses shared libs), not
> stripped" since I'm trying to cross compile ncurses to
> ARM.
> Hmmm, I was expecting it to be Advanced RISC Machine
> ARM.  And also, I was hoping the compilation would
> produce libncurses.so.5 (arm version).
> Do I have to make the libncurses.so.5 manually? Is
> this the expected behavior?

no (sorry - long day, and I was not making myself clear).  The issue
to be worked around is that the ncurses library is built in part from
some source-files that are generated by programs built in that directory.
So the HOSTCC variable in ncurses/Makefile has to be a compiler that
builds programs for the current platform - since they're run immediately.
There is a configure-option (--with-build-cc) which can be used to
specify the compiler to use.  The configure script cannot simply guess
which one to use, since the compiler that has been chosen by the
script for general purposes is the cross-compiler.

> thanks
> joyce
>
> --- Thomas Dickey <address@hidden> wrote:
> > On Tue, Oct 29, 2002 at 05:44:57PM -0800, Joyce Tan
> > wrote:
> > > Hi,
> > >
> > > I changed
> > >
> > > address@hidden@%arm-linux-gcc%g
> > > address@hidden@%arm-linux-gcc%g
> > >
> > > to
> > >
> > > address@hidden@%gcc%g
> > > address@hidden@%gcc%g
> >
> > I thought it would be
> >
> >   address@hidden@%arm-linux-gcc%g
> >   address@hidden@%gcc%g
> >
> > > in config.status but make_keys stills seems to be
> > > compiled with arm-linux-gcc.  I'm using i686
> > machine
> > > to cross compile into ARM machine.  ahhm, what am
> > i
> > > missing here?
> >
> > Did you run config.status, and do a "make clean"?
> >
>
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
>

-- 
T.E.Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net





reply via email to

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