Camera's Linux system cannot run compiled C program with './abcd', recognises it as a /bin/sh script instead -


recently started scripting camera. made simple hello world program in c, compiled , sent camera.

the camera's system bare bones version of linux. running uname gives me linux, , uname -r gives me 2.6.35. bash not installed on system.

when execute c executable, thinks script, giving me error: ./helloworld: line 1: syntax error: unexpected "("

any appreciated, thanks.

i assume compiled hello world program on 64 bit desktop pc using gcc -o helloworld helloworld.c.

the resulting binary meant amd64 architecture (think intel 64 bit) , won't run on other processor type. i.e. incompatible target system (= camera) uses 32 bit artpec-3 processor crisv32 architecture.

this means must cross-compile program camera's cpu. check e.g. http://developer.axis.com/wiki/doku.php%3fid=axis:compiling_for_cris_howto.html looks tutorial on getting first program run on camera.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -