From: Dave H. <dhy...@gm...> - 2007-10-13 16:16:00
|
Hi John, On 10/13/07, John Cummins <jrp...@ya...> wrote: > I can compile player on my desktop and scp it to gumstix but when I try to > run it > on gumstix I get > > # ./player create.cfg > ./player: can't load library 'libstdc++.so.6' > Questions > 1) can anyone confirm/disprove my diagnosis? I can't tell from a configure parameters whether a given library will be shared or not, only from looking at the compiler command line. I know that if you pass in -static to g++/gcc when compiling and when linking, then you'll get a statically linked executable. The C++ hello world program went from a measly 7K to 2.9Mb. > 2) Is there a way to turn off shared in buildroot? buildroot supports both shared and dynamic. You just need to pass in the correct flags. > I would prefer to use static library's and avoid the complications of > shared on > gumstix. Chad George reports that some one has fixed shared libs on > gumstix. > I have not been able to find this. so > 3)Could someone give a pointer to getting shared libs running on gumstix Just make sure that -static is passed to both the compiler and linker portions and you should be good to go. > 4)gumstix reboots often when i'm scp ing files to it, any ideas? This is usually a power issue. What boards do you have? and what are you using as a power supply? -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |