bug-ncurses
[Top][All Lists]
Advanced

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

Cross compile for ARM/GNU


From: Rob Desbois
Subject: Cross compile for ARM/GNU
Date: Thu, 14 Jun 2007 13:25:09 +0100

Hi, I'm trying to cross-compile ncurses and getting stuck on the 'make' step.
The host is Cygwin and the target is ARM/GNU using CodeSourcery's ARM/GNU toolchain.

I've performed the following steps:

export CC=arm-none-linux-gnueabi-gcc
export CXX=arm-none-linux-gnueabi-g++
./configure \
   --prefix=/cygdrive/c/CodeSourcery\Sourcery\ G++\ Lite\arm-none-linux-gnueabi \
   --exec-prefix=/cygdrive/c/CodeSourcery\Sourcery\ G++\ Lite\ncurses-arm \
   --with-shared --without-normal --without-debug \
   --target=arm-none-linux-gnueabi –host=i686-pc-cygwin

make BUILD_CC=gcc HOSTCC=gcc CXX=arm-none-linux-gnueabi-g++

The final line runs for a bit then outputs:
arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include  -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DNDEBUG -O2  -c ../ncurses/fallback.c -o ../objects/fallback.o
../ncurses/fallback.c:16: error: expected _expression_ before ',' token
make[1]: *** [../objects/fallback.o] Error 1
make[1]: Leaving directory `/cygdrive/c/sw-fw-2300/ncurses-5.6/ncurses'
make: *** [all] Error 2

The offending part of fallback.c is:
/* fallback entries for: Litearm-none-linux-gnueabi/share/terminfo ../misc/terminfo.src */
/* Litearm-none-linux-gnueabi/share/terminfo */
/* ../misc/terminfo.src */
static const TERMTYPE fallbacks[2] =
{
 /* Litearm-none-linux-gnueabi/share/terminfo */
, /* ../misc/terminfo.src */
};

I'm relatively new to all this so not entirely sure if I've configured it correctly.
I've also never built ncurses before so not too familiar with all of the different files.

Can anyone help, or if I'm in the wrong place or being dumb, point me in the right direction please?

Thanks,
--rob

reply via email to

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