run the example(mini3250)

OP #2360904
Rate this post
• ▲ useful
▼ not useful
I lend a Devkit3250 with 4.3" LCD, first I would like to test sample 
program & load it on the kit module.I am using ubuntu 8.10 & I have 
installed Arm-linux-gcc-4.3.2.

I have compiled the sample code, but I have problem to run it on the 
board mini3250.
here the result has shown... (root terminal console):


[root@arm-linux /myFile]# ls
button         com            hello.desktop
buttoncp       hello          hello~1.des
[root@arm-linux /myFile]# ./hello
-sh: ./hello: not found
[root@arm-linux /myFile]# ./hello~1.des
./hello~1.des: ./hello~1.des: 1: [Desktop: not found
./hello~1.des: ./hello~1.des: 5: Example: not found
./hello~1.des: ./hello~1.des: 9: Name[en_US]=Hello: not found
[root@arm-linux /myFile]# cat hello~1.des
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Hello
Comment=An Example Program
Exec=hello
Icon=Hello
Type=Application
Name[en_US]=Hello
[root@arm-linux /myFile]# ./hello.desktop
-sh: ./hello.desktop: Permission denied
[root@arm-linux /myFile]# cat hello.desktop
[Desktop Entry]
Comment=An Example Program
Exec=hello
Icon=Hello
Type=Application
Name=Hello
[root@arm-linux /myFile]# ./button
./button: ./button: 1: Syntax error: "(" unexpected
[root@arm-linux /myFile]# ./com
./com: ./com: 1: Syntax error: "(" unexpected
[root@arm-linux /myFile]#


Please help me...
Guest #2360908
Rate this post
• ▲ useful
▼ not useful
As in the log mentioned, there are atleast two unexpected brackets.

./button: ./button: 1: Syntax error: "(" unexpected
./com: ./com: 1: Syntax error: "(" unexpected

You should check for these errors, but without the complete program it 
is impossible to give an exact solution.
regards
Guest #2363373
Rate this post
• ▲ useful
▼ not useful
> [root@arm-linux /myFile]# ./hello.desktop
> -sh: ./hello.desktop: Permission denied

chmod the file to give you execution rights
chmod u+x hello.desktop

check if it is an executable by
file hello.desktop

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.