Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-05-2011, 03:24 PM   #1
rfog
Guru
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Cross compiler for Kindle?

Were can we find a cross compiler for Kindle? Any way to run compiled programs in an emulated scenario?

I've read some posts here about compiling and so but finally I have not clear how to do (and I'm a Windows programmer, not a Linux one)...

Any help is welcomed.
rfog is offline   Reply With Quote
Old 02-05-2011, 04:31 PM   #2
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
You need to install cygwin, then follow the instructions in the "x-compile" file of "kindle-x-tc.tar.gz" from https://www.mobileread.com/forums/showthread.php?t=88004 .
Smarter is offline   Reply With Quote
Advert
Old 02-06-2011, 02:32 PM   #3
rfog
Guru
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Thank you!

However I'm in trouble with this. After installing cygwin (and vim to have ex ans subversion), I create a folder called Kindle and lanuch "x-compile" script

First thing I do not understand why scipt does is offering me edit of crosstools-ng-1.9.0.tar.bz2. I simply press q and enter and script continues.

Then script fails to move crosstool-ng-etc because it is in the right folder... and finally it fails to do some patches...

Here is the console output:
Administrator@xpmaster-mars ~/Kindle
$ ./x-compile
mkdir: cannot create directory `CrossTool': File exists
--2011-02-06 19:30:13-- http://ymorin.is-a-geek.org/download/crosstool-ng/cross
tool-ng-1.9.0.tar.bz2
Resolving ymorin.is-a-geek.org (ymorin.is-a-geek.org)... 90.32.255.216
Connecting to ymorin.is-a-geek.org (ymorin.is-a-geek.org)|90.32.255.216|:80... c
onnected.
HTTP request sent, awaiting response... 200 OK
Length: 1833052 (1.7M) [application/x-bzip]
Saving to: `crosstool-ng-1.9.0.tar.bz2.3'

100%[======================================>] 1,833,052 105K/s in 18s

2011-02-06 19:30:31 (99.9 KB/s) - `crosstool-ng-1.9.0.tar.bz2.3' saved [1833052/
1833052]

mkdir: cannot create directory `CT-NG': File exists
mv: cannot stat `../../crosstool-ng-1.9.0.tar.bz2': No such file or directory
./x-compile: line 33: ~SVN/Configs/trunk/Kindle/Misc/crosstool-ng-1.9.0-cloog-pp
l-0.15.10-build-fix.patch: No such file or directory
cp: cannot stat `~SVN/Configs/trunk/Kindle/Misc/050_all_glibc-make-3.82-rules.pa
tch': No such file or directory
./x-compile: line 37: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
mkdir: cannot create directory `Kindle': File exists
./x-compile: line 46: ct-ng: command not found
./x-compile: line 49: syntax error near unexpected token `newline'
./x-compile: line 49: `* Paths >'

Administrator@xpmaster-mars ~/Kindle
rfog is offline   Reply With Quote
Old 02-06-2011, 08:14 PM   #4
Smarter
Member
Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.Smarter can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Smarter's Avatar
 
Posts: 16
Karma: 30730
Join Date: Feb 2011
Device: Kindle 3 with 3G, UK version
Don't try to just run the script, read it to see what it does.
Smarter is offline   Reply With Quote
Old 02-07-2011, 04:58 AM   #5
rfog
Guru
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Well, then I have a first question that is not described in the script: What's the meaning of editing crosstool-ng-bla with vi?
rfog is offline   Reply With Quote
Advert
Old 02-07-2011, 05:24 AM   #6
Valentino
Connoisseur
Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.
 
Posts: 86
Karma: 999999
Join Date: Dec 2010
Device: some.
It's not a script, It's just his terminal history that you can use as a guide.
Unless you have a user named niluje and are running gentoo, you will need to change the paths and --prefix= in the configure lines, paths to source code in his portage tree etc. It's pretty specific to his system so you will need to adapt it a little.

It's pretty easy to do but if you've never used linux before It might be a little confusing.

/edit
To your original question, that just means to edit it in vi.
vi is a modal text editor, for basic editing you would move around in command mode with hjkl keys, get to where you want to edit push i for insert mode and type.
:wq is write quit. It would be best to find a vi tutorial on the net before using it though.

Last edited by Valentino; 02-07-2011 at 05:34 AM.
Valentino is offline   Reply With Quote
Old 02-07-2011, 01:52 PM   #7
rfog
Guru
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Valentino, my question is in relation of *why* (and what) I need to edit in crosstool-ng-bla bzipped file, not how to edit? I know vi (very basic), and I have a little (very little) experiencie in Linux.
rfog is offline   Reply With Quote
Old 02-08-2011, 06:53 AM   #8
dent
Junior Member
dent began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2011
Device: kindle 3
rfog,

you don't need to edit anything. you do need to understand (roughly) what each statement in NiLuJe's x-compile log does though as you'll have to decide which ones you want to execute.

the relevant ones for getting crosstool-ng to work are:
wget (download it)
ex and mv can be replaced with tar xjf (extract it)
patch command is important! make sure you apply the patch, NiLuJe included it in the same package as the x-compile logfile.

configure: just change the prefix to match your setup.
make and make install.
that's it, crosstools-ng should now be installed.

you may need to do some research first if you don't understand what the commands do --otherwise it's very unlikely you'll be able to even use the cross compiler once you've built it.
dent is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tiny C compiler on the kindle lrizzo Kindle Developer's Corner 13 04-16-2018 11:44 AM
Free (Kindle/nook/Christianbook) Valeria's Cross (Historical Christian Fiction) arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 6 06-18-2012 04:04 PM
Compiler Notes On James Branch Cabell Greg Anos Reading Recommendations 0 01-20-2010 12:18 PM
iLiad How can I use iRex's cross-compiler toolchain? yokos iRex Developer's Corner 8 12-11-2006 07:53 PM
iLiad iLiad cross-compiler toolchain available from iRex Matthijs iRex Developer's Corner 16 10-29-2006 03:25 PM


All times are GMT -4. The time now is 08:38 PM.


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