Hi Geoff,
I think your suggestion is to set the PATH and to compile the code
using a batch file. Even I tried this way it does not work for me.
In my opinion something is wrong with my cross-compiler that I
download from TS's web site
(http://www.embeddedarm.com/downloads/arm_sbc/tsarmlinuxcd-05-20-
2006.tar).
Because in I don't have an arm-unknown-linux-gnu-gcc file in
opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/bin path.
When I search in opt folder I have found an arm-unknown-linux-gnu-gcc
file that is located at \opt\crosstool\gcc-3.3.4-glibc-2.3.2\arm-
unknown-linux-gnu\distributed\bin folder. But it only contains
following text:
#!/bin/sh
distcc /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-
gnu/bin/arm-unknown-linux-gnu-gcc "$@"
When I try to compile my hello world code typing
$ ./arm-unknown-linux-gnu-gcc -Wall -o hello hello.c
I'm getting following error message:
./arm-unknown-linux-gnu-gcc: line 2: distcc: command not found
This file looks like a batch file that executes distcc command which
I have learned that a C compiler.
Furthermore, I have an arm-unknown-linux-gnu-gcc-3.3.4 file at
opt\crosstool\gcc-3.3.4-glibc-2.3.2\arm-unknown-linux-gnu\bin folder.
I have tried to compile the code using this file but I have received
the error I have mentioned in my previous post.
So, I'm still unable to cross-compile a simple source code. In my
opinion TS should provide some simple tutorials that explain the
every step in detail for beginners.
Oguzhan
--- In "geoffveale" <> wrote:
>
> --- In "Oðuzhan" URHAN <urhano@> wrote:
> >
> > Hi,
> >
> > I'm quite a newbie about Linux and TS7200 but have
> > general knowledge about systems. I would like to run a
> > simple helloworld program on the TS7200. However I
> > have some problems. Firstly, I have configured TS7200
> > network setting to access it. Now I'm can reach the
> > TS7200 over telnet or FTP. TS-Linux OS is run on the
> > TS-7200.
> >
> > I would like to develop my application on using a
> > Windows XP installed X86 PC. Therefore, following the
> > "Linux for ARM on TS-7000 User's Guide" entitled
> > document (i.e. linuxarm-guide-rev.2.2.pdf), I have
> > downloaded latest version of Cygwin (version
> > 2.510.2.2). Next, I downloaded TS-ARM Linux CD (i.e.
> > tsarmlinuxcd-05-20-2006) from website of TS. I extract
> > the crosstool-cygwin-gcc-3.3.2-glibc-2.3.2.tar.bz2
> > file in the cross-toolchains folder. At the end of
> > this, I have "opt" folder. I copied the opt folder to
> > the usr/local/ directory of the cygwin.
> >
> > Now, following the instruction on page 35 of "Linux
> > for ARM on TS-7000 User's Guide" I have tried to
> > compile my hello-world.c file. However, I couldn't
> > succeed it. I'm sending screenshot of the error I have
> > encountered. Could you please guide me about the
> > problem?
> >
> > Thanks in advance,
> >
> > Oguzhan.
> >
> >
> *******************************************************************
> Hi,
>
> I have managed to crosscompile c code under Cygwin. I will detail
some
> of my settings that i have found work ok.
> 1. I work in my home directory /home/Geoffrey .In your case the last
> name will probably be your own login name. I put my c code in this
> directory. In this case it might be hello.c
> 2. I make a simple text file hello.sh . This is a script file in
Linux
> a bit like a BAT file in dos. This allows you to run batch commands
in
> this case by typing at the $ prompt hello.sh . My script looks like
this..
>
> # Script written to automate commands.
> arm-unknown-linux-gnu-gcc -Wall -o hello hello.c
>
> You could type enter this line each time at the $ prompt, but it get
> very boring. Less typing to run the script file.
>
> 3. Make sure the compiler arm-unknown-linux-gnu-gcc directory is in
> your path statement in .bashrc .This file .bashrc is a text file in
> your home directory, in my case /home/Geoffrey .I have added the
> following line at the end of this file so the compiler is found..
>
> export
> PATH=$PATH:.:/home/geoffrey:/opt/crosstool/arm-unknown-linux-
gnu/gcc-3.3.2-glibc-2.3.2/bin
>
> This is all entered on one line and it sets the directories where
the
> bash shell looks to find a file. Note that I have installed my cross
> compiling files at C:/cygwin/opt/crosstool.. I think you put them
on a
> branch from your home directory. Both might work, but I can only say
> that it works where I put it.
>
> 4. Once you have done all these thing you should just need to type..
> $ hello.sh
> This should start the compiling and linking process giving you an
> executable file in the same directory that can run on your TS-7200.
>
> Geoff Veale
> **************************************************************
> >
> >
>
______________________________________________________________________
______________
> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers
users.
> > http://answers.yahoo.com/dir/?link=list&sid=396546091
> >
>
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/
|