Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-15-2005, 10:21 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 2
Rep:
|
ncurses for arm-elf
Hi there,
I am trying to cross compile ncurses for an arm-processor under uClinux. I have been having a lot of problems with that, and my last try was to install ncurses.5.4 under uClinux/uClibc 'casue when i selected the "ncurses-library support" option compiling the uClinux kernel (make menuconfig), it did not work (basically because the ncurses libraries were installed under glibc instead uClibc).
When i run a script (see below) to configure ncurses-5.4 i get the following error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
./my-config.sh
Configuring NCURSES 5.4 ABI 5 (Wed Sep 14 17:36:37 CEST 2005)
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-elf
checking target system type... arm-unknown-elf
Configuring for elf
checking for prefix... /home/juan/Desktop/Downloads/uClinux-dist/uClibc/ncurses
checking for arm-elf-gcc... arm-elf-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Although i have tried different configurations of this script i have not yet succeeded. I would really be grateful if somebody can give me a hand.
p.s: my.config.sh
**************************************************************************************************
#! /bin/bash
# CC C compiler command
# CPP C preprocessor
# CXX C++ compiler command
# CXXCPP C++ preprocessor
# CFLAGS C compiler flags
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
# nonstandard directory <lib dir>
# CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
# headers in a nonstandard directory <include dir>
# CXXFLAGS C++ compiler flags
STDFLAGS="-g -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe"
STDFLAGS="-W -ansi -fno-builtin -DNO_MM -mapcs-32"
STDFLAGS="-mtune=arm7tdmi -mshort-load-bytes -msoft-float -nostdinc -iwithprefix include"
DEFINES="-DYACOUB_DEBUG_LEVEL=10 -DINCLUDE_YACOUB_ASSERTIONS"
UCLINUX=/home/juan/Desktop/Downloads/uClinux-dist
INCLUDES="-I${UCLINUX}/uClibc/include -I${UCLINUX} -I${UCLINUX}/linux/include -I${UCLINUX}/lib/uClibc/include -I${UCLINUX}/lib/libm -I${UCLINUX}/lib/libcrypt_old"
LDFLAGS="-s -Wl,-elf2flt -L${UCLINUX} -CRTO=${UCLINUX}/uClibc/lib/crt0.o -lncurses -lpanel -lmenu -lform"
export CC=arm-elf-gcc
export CPP=arm-elf-gcc
export CXX=arm-elf-g++
export CXXCPP=arm-elf-g++
export AS=arm-elf-as
export AR=arm-elf-ar
export LD=arm-elf-ld
export RANLIB=arm-elf-ranlib
export CFLAGS="${STDFLAGS} ${DEFINES} ${INCLUDES}"
export LDFLAGS
export CPPFLAGS="${INCLUDES}"
./configure --target=arm-elf\
--with-build-cc=arm-elf-gcc\
--prefix=/home/juan/Desktop/Downloads/uClinux-dist/uClibc/ncurses\
--host=arm-elf\
--without-cxx\
--without-cxx-binding\
--disable-database\
--without-ada
**************************************************************************************************
Best regards,
Juan Fco.
|
|
|
09-16-2005, 12:29 PM
|
#2
|
Member
Registered: Jun 2005
Posts: 75
Rep:
|
Hmm, here's a guess from the top of my head... Is the configure script trying to execute a sample program compiled with the cross-compiler?
BTW the '[ code ]' tags (without spaces) make code and output a lot easier to read.
~sind
Last edited by sind; 09-16-2005 at 12:31 PM.
|
|
|
09-16-2005, 03:06 PM
|
#3
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
A few months ago I was compiling, or trying to compile ncurses againsta uClib and was getting errors about 'not getting pthread version' or something similar.
I was following a step-by-step for building uSTEP -you might look for it as a reference
|
|
|
09-19-2005, 06:04 AM
|
#4
|
LQ Newbie
Registered: Sep 2005
Posts: 2
Original Poster
Rep:
|
With this script i just wanted to configure the ncurses specifying basically the compiler and the flags that must be used in order to compile and link a program that uses the ncurses libraries. My intention is to execute a program based on ncurses after configuring ncurses and compiling uClinux in a proper way.
Regarding to the step-by-step for building uSTEP, i am afraid that i could not find that such a document, could you please tell me a little bit clearer where you found that document?
|
|
|
09-19-2005, 08:43 AM
|
#5
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
ncurses wouldn't compile against uClib -returned errors of:
'pthread version not found'
|
|
|
All times are GMT -5. The time now is 07:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|