Newbie ->cross compile GTK for ARM - ./configure problems - LD not finding libc library
- From: Clive Chapman <anbeyon btinternet com>
- To: gtk-list gnome org
- Subject: Newbie ->cross compile GTK for ARM - ./configure problems - LD not finding libc library
- Date: Mon, 16 May 2005 16:27:13 +0100
Hi
I want to cross compile GTK and all of the associated libraries so that I
can use them on an ARM based embedded target.
I am currently trying to cross compile the glib library and I am having some
problems. I've obviously not got something quite right.
Any pointers you might be able to give would be great!
I have downloaded all of the libraries and have them unpacked into sub
directores of;
/home/anbeyon/Documents/Projects/Chord/Pandora4/Software/GTK/glib-2.6.4
if in a terminal window list all sub-dirs I get
. Archives atk-1.9.0 gtk+-2.6.7 libpng-1.2.8 pkgconfig-0.15.0
.. GTKBuild glib-2.6.4 jpeg-6b pango-1.8.0 tiff-3.7.2
Archives is where I have all of the original .GZ etc... files. GTKBuild is
where I plan to build the compiled libs to. Each set of libs is to be built
into a subdirectory of GTKBuild. i.e. glib is to reside
in ..../GTKBuild/glib
I have the GNU target compiler installed in /usr/local/arm/3.3.2
I am currently trying to compile glib;
from the command line I change directory to
/home/anbeyon/Documents/Projects/Chord/Pandora4/Software/GTK/glib-2.6.4/glib-
2.6.4 and invoke ./configure as below;
./configure CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc --host=arm-linux
--build=i686-linux
--prefix=/home/anbeyon/Documents/Projects/Chord/Pandora4/Software/GTK/GTKBuil
d/glib --libdir=/usr/local/arm/3.3.2/arm-linux/lib
--includedir=/usr/local/arm/3.3.2/arm-linux/include
Does that look correct ? Have I made any errors ?
I get the following in my terminal;
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for native Win32... no
checking for arm-linux-gcc... /usr/local/arm/3.3.2/bin/arm-linux-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
If I then examine config.log part way through I get the
following message; ( see the line starting >>>>>)
gcc version 3.3.2
configure:2821: $? = 0
configure:2823: /usr/local/arm/3.3.2/bin/arm-linux-gcc -V </dev/null >&5
arm-linux-gcc: `-V' option must have argument
configure:2826: $? = 1
configure:2849: checking for C compiler default output file name
configure:2852: /usr/local/arm/3.3.2/bin/arm-linux-gcc conftest.c >&5
/usr/local/arm/3.3.2/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux
>>>>/bin/ld: cannot find /usr/local/arm-linux/lib/libc.so.6<<<<<
collect2: ld returned 1 exit status
configure:2855: $? = 1
configure: failed program was:
The linker cannot find the library. It doesn't seem to be looking
in the right place for the libc.so.6 file. It's not looking where I specify
them using --libdir when configure is invoked.
I have checked the Arm compiler lib path I specified in the command line and
libc.so.6 is there. (/usr/local/arm/3.3.2/arm-linux/lib)
Are you able to help me please ?
Thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]