bug-ncurses
[Top][All Lists]
Advanced

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

Re: Ncurses 5-5 make_key: cannot execute binary file


From: Thomas Dickey
Subject: Re: Ncurses 5-5 make_key: cannot execute binary file
Date: Sat, 8 Jul 2006 18:16:08 -0400 (EDT)

On Fri, 7 Jul 2006, Ayman El-Gamel wrote:

Hi,

I am getting "make_key: cannot execute binary file" when I cross compile
ncurses. I understand the reason but I do not know who to work around
it. I tried many thing such as BUILD_CC, ..etc.

You don't list the "many things" that you tried.  The configure scripts
assume things about the names of the cross-compilers that may not be true in your configuration. This is what I made to test cross-compiling with, for example:

#!/bin/sh
# $Id: cfg-djgpp,v 1.3 2004/01/20 23:32:19 tom Exp $
# configure to cross-compile ncurses for djgcc
#
# TODO: can I make it build with gnat?
TARGET=i586-pc-msdosdjgpp
TOOLS=/usr/local/compiler/cross/djgpp

# I should put $TOOLS/bin in the path (as does "with-djgpp"), but that's
# clutter.

# autoconf 2.5x AC_CHECK_TOOL looks for the "$TARGET-" prefix.
# autconf 2.13 does not.
export AR=$TOOLS/bin/$TARGET-ar
export RANLIB=$TOOLS/bin/$TARGET-ranlib
export LD=$TOOLS/bin/$TARGET-ld

# autoconf would not guess this:
export CC=djgcc
export CXX=djgpp

configure \
        --with-build-cc=gcc \
        --host=$TARGET \
        --target=$TARGET \
        $*

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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