How to run an application

I'm attempting to run the helloworld application described here:

http://www.teslabs.com/wp-content/uploads/2010/02/beagleboard.pdf

The project compiles:

Building target: helloworld
Invoking: GCC C Linker
gcc -o"helloworld" ./helloworld.o
Finished building target: helloworld

To send the file to the BeagleBoard, at my host PC, I type:

scp helloworld root@192.168.1.70:/home/root/programs

and get a request for a password:

root@192.168.1.70's password:

On entering the password, I see:

helloworld 100% 19KB 19.3KB/s 00:00

which looks to me like the file transferred.

Now to run the program on the BeagleBoard...

From GNOME desktop, Main > Files, I can navigate to Root > home > root > programs > right click > open with > other application, which brings up a menu of Known Applications, but helloworld isn't one of them.

In x-terminal-emulator, I can navigate to /home/root, and root contains a directory called programs, but

cd programs

gives the error:

-sh cd: can't cd to programs.

How do I run helloworld on the BeagleBoard?

Jan

I'm attempting to run the helloworld application described here:

http://www.teslabs.com/wp-content/uploads/2010/02/beagleboard.pdf

The project compiles:

Building target: helloworld
Invoking: GCC C Linker
gcc -o"helloworld" ./helloworld.o
Finished building target: helloworld

To send the file to the BeagleBoard, at my host PC, I type:

scp helloworld root@192.168.1.70:/home/root/programs

You copy helloworld to programs (not a directory, but your helloworld
is called programs on BB).
So you can run it with ./programs

Andrey.

I see. Instead of:

scp helloworld root@192.168.1.70:/home/root/programs

use:

scp helloworld root@192.168.1.70:/home/root/programs/

Thank you.

Jan

you can compile your simple application right on the target. it is rather fast

2010/7/6 Jan Axelson <jan@lvr.com>

you can compile your simple application right on the target. it is rather
fast

I'll look into that as well, thanks.

Jan