Hi Eric,
--- In "eric.robishaw" <> wrote:
>
> Did you ever figure out the solution?
> I"m having a similar issue.
>
>
>
>
> In "lee.weihong" <lee.weihong@> wrote:
> >
> > Hi,
> > I am new to Linux and have just gotten a ts-7800 recently. So today I
> > set up the CodeSourcery g++ compiler and eclipse on my windows
Uh-Oh, I don't have a TS-7800, and I don't use eclipse or windows, but ...
> > computer, and tried to compile a hello world project. Everything went
> > smoothly until i tried running the file on the ts. I got this
message:
> > -bash: ./hello: No such file or directory
> >
> > I did a quick search on this group and found that some people had
> > similar problems before. What I did was to use a SD card to transfer
> > the file from my pc to the ts board, and i appended the flags -static
> > to my gcc.
> >
> > This is the output from the console in eclipse:
> > **** Build of configuration Default for project hello ****
> >
> > cs-make all
> > arm-none-linux-gnueabi-gcc -O2 -g -Wall -fmessage-length=0 -static
> > -c -o hello.o hello.cpp
This line specifies static linking, but there is no linking done in
this step, only compiling. This step only compiles hello.cpp into the
object file hello.o
> > arm-none-linux-gnueabi-gcc -o hello hello.o
This line links hello.o into an executable file, hello, and since
there is no -static here, a dynamic executable is created.
> >
> > And this is what i got when i run "file ./hello" on my ts:
> > ./hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for
> > GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped
> >
So this confirms that ./hello is dynamically linked. The 'no
such file' probably refers to the shared library file that the
executable is looking for but cannot find.
You can use 'ldd ./hello' to find out about shared libs required for
hello.
You can use 'strace ./hello' to (confirm) what file is not found.
You can add -static to the second gcc above and get ./hello to run.
While it is OK for small programs and testing, static is probably not
a good long-term approach.
Regards, ........ Charlie
> > I am sure I did something wrong, and any hints for a linux newbie will
> > be appreciated
> >
>
------------------------------------
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/
|