Cant execute on Pi

I have created a simple “hello world” program which I have compiled for Arm and copied the files from the compilation folder to a usb stick and transferred them to the Pi. When I then double click on the app it asks me which software I want to use to open it. I have checked the app and it has execute permission. What am I doing wrong?

Have you tried running it from the command line? Navigate to the directory and type its name like this:

./MyAppName

This might provide some insight into the problem.

You might actually have to do sudo ./MyAppName

I highly recommend Programming Raspberry Pi 2 B Electronics with Xojo by Euguen Dakin. https://gumroad.com/l/ZOPu Covers a LOT of highly useful material.

[quote=286776:@Paul Lefebvre]Have you tried running it from the command line? Navigate to the directory and type its name like this:

./MyAppName

This might provide some insight into the problem.[/quote]

Yes that worked but when I double click on the icon it doesn’t. Bob I will get a copy of that book, sounds good. Thanks

[quote=286788:@Bob Keeney]You might actually have to do sudo ./MyAppName

I highly recommend Programming Raspberry Pi 2 B Electronics with Xojo by Euguen Dakin. https://gumroad.com/l/ZOPu Covers a LOT of highly useful material.[/quote]
Thanks Bob, have grabbed a copy of the book and within the first 10 pages it had answered the execute question. Really good little book.