Page 1 of 1

vocore beginner helloworld

Posted: Wed May 25, 2016 1:58 pm
by pkwok
I am a beginning to use vocore. After I install the openwrt. I am trying to write a simple helloworld program and run the compile command

`find . -name mipsel-openwrt-linux-gcc` -g main.c -o hello

after scp the hello file to vocore /tmp

scp ./hello root@192.168.11.100:/tmp/

then try to run the program:

root@OpenWrt:~# ./hello
sh: ./hello: not found
root@OpenWrt:~#

root@OpenWrt:/tmp# . ./hello
sh: ./hello: line 1: syntax error: unexpected "&" (expecting ")")
root@OpenWrt:/tmp#


please help me to know what's wrong? I follow the instruction from vocore forum. I believe the procedure is correct

Re: vocore beginner helloworld

Posted: Mon May 30, 2016 1:46 pm
by Vonger
I think the lib changed, please try ldd ./hello, check if any library is missed.

Re: vocore beginner helloworld

Posted: Thu Jun 02, 2016 11:39 pm
by noblepepper
If you are just getting started with openwrt this may help.

Re: vocore beginner helloworld

Posted: Wed Jun 08, 2016 3:37 pm
by alexT4I
Hello,

I'm using ubuntu 16.04 LTS running on a virtual machine in VMWare.

I'm having a similar issue. I'm following this tutorial: http://vonger.cn/?p=1585
When I do the very last step, I get:

-ash: ./hello: not found


I ran ls from the /tmp directory and I see 'hello' there in the listing, in green. I'm very inexperienced with Linux so help is appreciated!

Thanks.

Re: vocore beginner helloworld

Posted: Fri Jun 10, 2016 4:18 pm
by Vonger
Hi, try to ldd ./hello, check what it returned.
I think it is some library missed.