--- In Anssi Kolehmainen <> wrote:
>
> On Sun, May 18, 2008 at 10:11:51PM +0100, Martin Guy wrote:
> > On 5/18/08, research_labs80 <> wrote:
> > > then i made a simple hello.cc and i builded it with the
crosstool, so
> > > i get an hello executable.
> > >
> > > ./hello: error while loading shared libraries: libstdc++.so.6:
cannot
> > > open shared object file: Noy
> > >
> > > of course! the libstc++.so.6 is in my crosstool but not in my debian
> > > nfs, which has the libstc++.so.3.
> >
> > A candidate for "most frequently asked question" :)
> >
> > The answer is usually either to link staticallt ("-static")
> ... which generates huge executable.
>
> > or copy the missing libraries from your crosscompiling environment to
> > the target board (and run "ldconfig")
> ... which might mess things up since you would be mixing core library
> versions.
>
> So either use toolchain (~crosstool) with correct kernel+libc versions
> or upgrade the OS on the board.
>
> --
> Anssi Kolehmainen
>
> 040-5085390
>
yes i think to copy the missing files, by hand, on the nfs. but i have
already the gcc libs on different version. besides, the /lib on the
crosstool is up to 60 Mb so copying on the NFS will augment too much
the disk usage (i still hope to copy all the needed in a 256 MB CF :)
so, the way i like to solve this is using the same version of
libraries in the crosstool and the debian nfs.
i mention that i use the debian woody, which has the libstc++.so.3. i
discover that the debian-sarge-1.12 has libstc++.so.5, which is closer
to the .6 that i need.
the good thing is that crosstool-linux-gcc-3.3-glibc-2.2.5 has the
libstc++.so.5! so i think this will match with the debian libs...
... but... i have another type of problem with sarge 1.12:
this message appears every 1 minutes, aprox:
"modprobe: Can't open dependencies file
/lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts8/modules.dep (No such file )
...
INIT: Id "1" respawning too fast: disabled for 5 minutes "
the actual directory on the debian-sarge.1.12 which has the module.dep is:
/lib/modules/2.4.26-ts11
please, note that i'm new on this, but i can reach documentation by
links ;)
so, what can i do?
thanks very much for the previous answer.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|