Hi Clive, I think it's trying to link to this file, but it is looking in the worng place. Perhaps there is many way to solve this problem. I suggest you some thing like this (it is a trigger ;)) : as root, execute the following commands: >>> 'find / -name libc.so.6' -(to locate this file) 2) if you get success it will return you path to this file. Then, verify if one of the found files is in a "arm-related directory" (like /usr/local/ARM/3.3.2/ARM-linux/lib) ... 3) if so, make a symbolic link from this file to the not found file ( /usr/local/arm-linux/lib/libc.so.6) ... some thing like ln -s path_to_the_found_libc.so.6_in_arm_context/libc.so.6 /usr/local/arm-linux/lib/libc.so.6 gimme a feedback ;) regards On 5/17/05, anbeyon@xxxxxxxxxxxxxx <anbeyon@xxxxxxxxxxxxxx> wrote: > > Hi Antonio, > > Sorry I could have answered this last night - just my mind was too tired :0) > > if I enter 'ls -la /usr/local/arm-linux/lib/libc.so.6' > > I get '/bin/ls: /usr/local/arm-linux/lib/libc.so.6: No such file or directory' > > Which is right - there is no directory of that name - why is it looking > there ? > > Do you think that the linker can;t find one of it's own libraries (a library > it need to run) or is it trying to link to this file. > > Thanks > > Clive > > > On Tuesday 17 May 2005 09:51, you wrote: > > ----- Original Message ----- > > From: "Antonio Gomes" <tonikitoo@xxxxxxxxx> > > To: "Clive Chapman" <anbeyon@xxxxxxxxxxxxxx> > > Cc: <gtk-list@xxxxxxxxx> > > Sent: Tuesday, May 17, 2005 12:35 AM > > Subject: Re: Newbie ->cross compile GTK for ARM - ./configure problems - > > LDnot finding libc library > > > > > > Hummm ... now I got it ... > > > > Just to open my mind , when you execute 'ls -la > > usr/local/arm-linux/lib/libc.so.6', what is showed out !? > > > > btw, If i'm not making a mistake, this library is the glibc library, > > which is the responsible to provide and perform system calls . > > > > regards > > > > On 5/16/05, Clive Chapman <anbeyon@xxxxxxxxxxxxxx> wrote: > > > Hi Antonio > > > > > > I have been looking at the scratchbox solution - It does seem like a > > > really > > > good solution. > > > > > > The only thing is I already have a LINUXdistribution and set of compiler > > > tools for the hardware I'm using. It just generating the required GTK > > > libraries I'm struggling with. > > > > > > You asked if I had a problem; > > > > > > see the snippert below ; > > > > > > > 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 > > > > > > it says it can't find a library file - I have checked that path and it is > > > there > > > > > > Is it telling me it can't find a library in order for LD to run or it > > > can;t > > > find the lib it needs to link to in order to compile the test application > > > ? > > > > > > I am invoking 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/GTK > > >Build/glib --libdir=/usr/local/arm/3.3.2/arm-linux/lib > > > --includedir=/usr/local/arm/3.3.2/arm-linux/include > > > > > > does that seem right or should I be using some other set of configure > > > options ? > > > > > > Thanks > > > > > > Clive > > > > > > > > > ----- Original Message ----- > > > From: "Antonio Gomes" <tonikitoo@xxxxxxxxx> > > > To: <gtk-list@xxxxxxxxx> > > > Sent: Tuesday, May 17, 2005 12:12 AM > > > Subject: Re: Newbie ->cross compile GTK for ARM - ./configure problems - > > > LDnot finding libc library > > > > > > Hi Clive, > > > > > > I suggest you another way to perform cross compile in general using > > > apropiated cross compilation tools (or toolchains). One of the best > > > is the scratchbox <www.scractchbox.org>. Using it , you can compile > > > your source to any target you want. A debian-based rootstrap is also > > > available at this web site (Rootstrap is a FS). There many tutorials > > > around the net, and many many users around the world (like me), and > > > mail lists. > > > > > > In your case, you'd create a arm target, unpack the debian FS and > > > install it, and then the perform the cross compilation in transparent > > > way, using the benefits of debian dev tools (like apt-get) to speed > > > the process. > > > > > > regards > > > > > > BTW, I didn't see any troubles in your current process ?! Are you > > > getting errros ?! > > > > > > On 5/16/05, Clive Chapman <anbeyon@xxxxxxxxxxxxxx> wrote: > > > > 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/G > > > >TKBuil 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 > > > > _______________________________________________ > > > > > > > > gtk-list@xxxxxxxxx > > > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > -- > > > Antonio Gomes > > > E-mail: antonio.gomes@xxxxxxxxxxx > > > Embedded Linux Lab - 10LE > > > INdT - Instituto Nokia de Tecnologia (Manaus/Br) > > > NOKIA's Technology Institute > > > _______________________________________________ > > > > > > gtk-list@xxxxxxxxx > > > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Antonio Gomes E-mail: antonio.gomes@xxxxxxxxxxx Embedded Linux Lab - 10LE INdT - Instituto Nokia de Tecnologia (Manaus/Br) NOKIA's Technology Institute _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list