--- In "hein_piet" <> wrote:
>
> I've troubles running applications on my TS-7400 board*. When I
> compile example code (hello world) on my Debian etch machine (gcc -o
> hello hello.c) I can run it with no troubles. Then I transfer the file
> via ftp to the TS board and change the permissions (chmod +x ./hello).
> But when I try to execute it, the TS board returns an error:
>
> ./hello: 1: Syntax error: "(" unexpected
>
> What can I do to solve this problem?
> Is it possible to install gcc under TS-Linux? (if so, how? apt-get is
> not part of the busybox..)
>
> *BTW: My board has no problem running the pre-compiled applications
> available on the embeddedarm server.
>
Your desktop is an x86 machine - basically an Intel Pentium compatible.
The TS7xx0 boards are ARM machines - completely different from an
Intel Pentium.
You need to get and install a cross-compiler. Google for crosscompile
and read up on it.
Then download the toolchain from the TS website.
The command 'file' will tell you which architecture a particular
program is built for; 'man file' for more info.
HTH,
--Yan
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/
|