bug-ncurses
[Top][All Lists]
Advanced

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

Ncurses for mips


From: Vivek
Subject: Ncurses for mips
Date: Tue, 1 Feb 2005 16:47:24 -0800

Hi

I am trying to cross compile ncurses for one of our mips processor. I am
stuck in the ./configure utility and any help will be greatly appreciated.

I have created a script which sets the environment variables and invoke the
ncurses configure script. The script is given below

#!/bin/sh

LINUXDIR=linux
CONFIG_LIBCDIR=uClibc
LIBCDIR=$CONFIG_LIBCDIR
ROOTDIR=/home/dvivek/mipsdevelop/usbkbd/fusiv_linux
CROSS_COMPILE=mips-linux-

CC=${CROSS_COMPILE}gcc
AS=${CROSS_COMPILE}as
CXX=${CROSS_COMPILE}g++
AR=${CROSS_COMPILE}ar
LD=${CROSS_COMPILE}ld
OBJCOPY=${CROSS_COMPILE}objcopy
RANLIB=${CROSS_COMPILE}ranlib
ELF2FLT=elf2flt
STRIPTOOL=${CROSS_COMPILE}strip
STRIP=${STRIPTOOL}

export CC AS CXX AR LD OBJCOPY RANLIB ELF2FLT STRIPTOOL STRIP

LIBC=-lc
LIBNET=-lnet
LIBGCC=-lgcc
LIBIO=-lio
LIBIOSTREAM=-liostream
LIBSTDCPP=-lstdc++


LDPATH=-L${ROOTDIR}/${LIBCDIR}/lib

INCLIBC=-I${ROOTDIR}/${CONFIG_LIBCDIR}/include

export LDPATH INCLIBC

CFLAGS="-O3 -fomit-frame-pointer"
CFLAGS="$CFLAGS -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED"
CFLAGS="$CFLAGS -fno-builtin"
CFLAGS="$CFLAGS -specs=${ROOTDIR}/specs"
CFLAGS="$CFLAGS -static"
CFLAGS="$CFLAGS  -mcpu=lx4189 -D__ELF__ -msoft-mult-div"
CFLAGS="$CFLAGS  ${INCLIBC}"
CFLAGS="$CFLAGS  -I${ROOTDIR}"
CFLAGS="$CFLAGS  -I${ROOTDIR}/${LINUXDIR}/include"
CXXFLAGS="${CFLAGS} -fname-mangling-version-0"

export CFLAGS CXXFLAGS

LDFLAGS="${CFLAGS} -CRT0=${ROOTDIR}/uClibc/lib/crt0.o"
LIBS="${LDPATH} ${LIBC} ${LIBSTDCPP} ${LIBIOSTREAM} ${LIBIO} ${LIBGCC}"

export LDFLAGS LIBS

./configure --prefix=/home/dvivek/test/ncurses --target=mips-linux

The output of ncurses configure script is given below.

Configuring NCURSES 5.4 ABI 5 (Tue Feb  1 16:31:56 PST 2005)
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... mips-unknown-linux-gnu
Configuring for linux-gnu
checking for prefix... /home/dvivek/test/ncurses
checking for gcc... mips-linux-gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables

As you see the ncurses configure is not identifying the target system type
correctly and reports error while checking compiler default output.

Any idea what may go wrong ?

Thanks.

Regards
Vivek

<<attachment: winmail.dat>>


reply via email to

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