[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: your mail
From: |
Thomas Dickey |
Subject: |
Re: your mail |
Date: |
Sat, 12 Nov 2011 12:24:45 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Nov 11, 2011 at 02:07:02PM +0800, chenrui wrote:
> Hi,
>
> When I cross-compile the ncurses-5.9 lib. I meet with 2 problems.i
> have no idea but turn to you.
>
>
>
> 1. configure with " ./configure --host=mips-unknown-linux-gnu
> --with-build-cc=/cross-tools/gcc-4.3.3/build_mips/staging_dir/usr/bin/mips-l
> inux-uclibc-gcc --with-shared --without-ada --without-progs --without-tests
> --without-cxx-binding", then "make".but I found the libncurses.so.5.9 is not
> mips architect,but x86-64 style. What should I do to compile my style lib.
That doesn't look right. The build-cc value should be for the host's
native (not cross) compiler. It's used to build a utility that creates
a table.
You'll run into problems with "--with-shared", since I've not done anything
in that area. A part of the shared-library configuration is the
variations on file-naming used for various platforms, and isn't setup
for cross-compiling. I suppose you could use the --with-system-type
option to help with that, but then there's still the problem of determining
what the convention would be for the mips platform that you're targeting.
I've used a cross-compiler for djgpp for a while, which I built, and
pre-built packages for mingw32. Technically the latter could support
shared libraries.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature
- [no subject], chenrui, 2011/11/11
- Re: your mail,
Thomas Dickey <=