Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2011, 05:49 AM   #1
dnR
Junior Member
dnR began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2011
Device: Kindle 2
Question Kindle tries to run C/++ applications like sh scripts?

Hi everyone. This is actually my first post here (of many soon to come, I hope), but I hate introduction threads so I figure I'll get straight to the point.

When in terminal (either through ssh or directly), and I attempt to run a compiled program that was compiled on another machine, I get the following error:
Code:
[appname] line 1: syntax error: "(" unexpected'
This has happened on all applications that were compiled on my computer and transferred to my Kindle via SCP. These applications include Showkey and Python, each of which compile to single executables. I no longer need the showkey command, but I'm looking forward to running python on my Kindle 2.

If your first instinct is to point out that I shouldn't be compiling things on different computers before I transfer to my Kindle, I understand. Instead, then, could you let me know the best way to compile programs on the Kindle? I'm aware of using tcc (as supplied by lrizzo), but I haven't had any luck with that at all, and I am unable to compile even simple applications (even after copying the include files from a machine that compiles correctly to the Kindle)

Thanks,
dnR

Last edited by dnR; 01-09-2011 at 05:51 AM.
dnR is offline   Reply With Quote
Old 01-09-2011, 07:45 AM   #2
azit
Member
azit plays well with othersazit plays well with othersazit plays well with othersazit plays well with othersazit plays well with othersazit plays well with othersazit plays well with othersazit plays well with othersazit plays well with othersazit plays well with othersazit plays well with others
 
Posts: 16
Karma: 2600
Join Date: Dec 2010
Device: kindle
Quote:
Originally Posted by dnR View Post
Code:
[appname] line 1: syntax error: "(" unexpected'
Typically this means you're trying to run code compiled for one processor/architecture on another. i.e. you've compiled code for x86 and are trying to run it on ARM.

You need to either install a compller on the kindle, or install a kindle compatible cross-compiler on your pc.
azit is offline   Reply With Quote
Reply

Tags
compile, kindle 2, python, script, terminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovery mode for kindle 3? And starting user applications on boot fivebells Kindle Developer's Corner 3 12-17-2010 10:08 AM
Content where are the kindle applications?? mike_bike_kite Amazon Kindle 18 09-25-2010 06:28 AM
Replacement Kindle 1 Serial number does not work with scripts daffy4u Amazon Kindle 4 02-10-2010 07:53 PM


All times are GMT -4. The time now is 12:07 PM.


MobileRead.com is a privately owned, operated and funded community.