vocore beginner helloworld

pkwok
 
Posts: 1
Joined: Wed May 25, 2016 1:52 pm

vocore beginner helloworld

Wed May 25, 2016 1:58 pm

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

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: vocore beginner helloworld

Mon May 30, 2016 1:46 pm

I think the lib changed, please try ldd ./hello, check if any library is missed.

noblepepper
 
Posts: 240
Joined: Sat Nov 29, 2014 3:22 pm

Re: vocore beginner helloworld

Thu Jun 02, 2016 11:39 pm

If you are just getting started with openwrt this may help.

alexT4I
 
Posts: 1
Joined: Wed Jun 08, 2016 3:29 pm

Re: vocore beginner helloworld

Wed Jun 08, 2016 3:37 pm

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.

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: vocore beginner helloworld

Fri Jun 10, 2016 4:18 pm

Hi, try to ldd ./hello, check what it returned.
I think it is some library missed.

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 29 guests