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 07-11-2012, 02:48 PM   #76
imfede
Member
imfede began at the beginning.
 
Posts: 13
Karma: 10
Join Date: May 2012
Device: kindle touch
ok, this require a lot of information and knowledge that i'm missing. Apparently i have to read a huge amount of data before understanding how to make a toolchain work. Said that i will try tcc (as a substitute of gcc since someone has already compiled it) and play a bit with it before messing things up with the sources of gcc which, i'm sure, are too difficoult for me to understand.

new problem: i've tried the apps on the website but some of them won't work.
in particular:
elinks: it can't find libssl.so.1.0.0
ettercap: same as above
where i can find and where i have to put this library in order for those programs to work? tia for the help, i'm eager to learn
imfede is offline   Reply With Quote
Old 07-11-2012, 02:51 PM   #77
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,245
Karma: 5189261
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
@imfede: They were built for an older FW version (The KT moved from OpenSSL 0.9.8 to OpenSSL 1.0.x in FW 5.1.0).

Rebuild them against OpenSSL 1, or link them statically.

(I'd recommend against just symlinking OpenSSl 0.9 to OpenSSL 1, the soname was bumped for a reason, so expect ABI mismatches if you do that).

Alternatively, you could pull the OpenSSL lib from FW 5.0.x, put in somewhere in the userstore, and run the tools with a tweaked LD_LIBRARY_PATH that has your custom path before the rest.

EDIT: See #82, brainfart. It's actually the other way around . [Well, technically, my answer could still apply, except, well, the other way around (0.9.8 <=> 1.0.x / 5.0.x <=> 5.1.x) . But, yeah, probably easier to just upgrade ]

Last edited by NiLuJe; 07-11-2012 at 06:11 PM.
NiLuJe is offline   Reply With Quote
Old 07-11-2012, 03:05 PM   #78
imfede
Member
imfede began at the beginning.
 
Posts: 13
Karma: 10
Join Date: May 2012
Device: kindle touch
things going crazy

important question: in your third line, "i'd recommend against just ..." should be "i'd reccommend again just"? if not i don't understand why i have to symlink openssl 0.9 to openssl 1 and not just change the library name during the compile. but i can be completely wrong since the sentence "the soname was bumped for a reason, so expect ABI mismatches if you do that" make no sense for me. i'm a noob here, have to study a lot

oh and btw my kindle has the 5.0.4 fw.
imfede is offline   Reply With Quote
Old 07-11-2012, 03:20 PM   #79
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by imfede View Post
important question: in your third line, "i'd recommend against just ..." should be "i'd reccommend again just"? if not i don't understand why i have to symlink openssl 0.9 to openssl 1 and not just change the library name during the compile. but i can be completely wrong since the sentence "the soname was bumped for a reason, so expect ABI mismatches if you do that" make no sense for me. i'm a noob here, have to study a lot

oh and btw my kindle has the 5.0.4 fw.
"against" was correct. The major version changed from 0.x to 1.x, so symlinking may cause ABI mismatch errors, as suggested above...

The linux kernel (and other stuff) changed in 5.0.4. So the required libs may be for 5.0.3 and earlier...
geekmaster is offline   Reply With Quote
Old 07-11-2012, 04:51 PM   #80
imfede
Member
imfede began at the beginning.
 
Posts: 13
Karma: 10
Join Date: May 2012
Device: kindle touch
very difficult to concentrate right now, i think i will relax a bit now, i just want to have a c compiler on my kindle, but it seems almost impossible for me. that's a pity but i need more information on the subject, i hoped it was simpler
imfede is offline   Reply With Quote
Old 07-11-2012, 04:58 PM   #81
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by imfede View Post
very difficult to concentrate right now, i think i will relax a bit now, i just want to have a c compiler on my kindle, but it seems almost impossible for me. that's a pity but i need more information on the subject, i hoped it was simpler
Don't get stressed out.

There is a tcc thread, where you can download a tcc package with installer (and an included demo program). Look in the tools index. Download it. Read its README. Install it. Use that until you figure out a "better" way. It is not for building full "make" packages. Better for demos and stuff.

Or... just install codesourcery on a linux box and use that to cross-compile. But tcc is much easier for simple stuff like my kindle animation demos.

Last edited by geekmaster; 07-11-2012 at 05:01 PM.
geekmaster is offline   Reply With Quote
Old 07-11-2012, 05:35 PM   #82
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 332
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by NiLuJe View Post
They were built for an older FW version (The KT moved from OpenSSL 0.9.8 to OpenSSL 1.0.x in FW 5.1.0).
It is exactly the opposite. They were built for the 5.1.0. Thus require libssl.so.1.
And imfede must have some older FW.

@imfede
upgrade!

Last edited by baf; 07-11-2012 at 05:50 PM.
baf is offline   Reply With Quote
Old 07-11-2012, 06:09 PM   #83
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,245
Karma: 5189261
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
@baf: Bleh, you're completely right! Sorry ;/

I somehow assumed it was the other way around because that's usually the case, but it didn't really make sense with both the poster's output, and the comments on your webpage . Serves me right for thinking about something else while typing an answer .
NiLuJe is offline   Reply With Quote
Old 07-12-2012, 03:16 PM   #84
atordo
Connoisseur
atordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to behold
 
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
Quote:
Originally Posted by knc1 View Post
Better keep a copy, the next OTA update may empty /usr/local/*
Thanks for the warning, and also about space. I've moved the binary to a directory under /mnt/us which I was already using for my experiments (I try to keep the main fs mounted readonly). Replaced it with a symbolic link, so it's still in the $PATH.
atordo is offline   Reply With Quote
Old 07-17-2012, 09:17 AM   #85
istib
Junior Member
istib began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2012
Device: Kindle Touch
Hi all,

I've been hacking away on xterm and installed vim. A dream come true!
Thanks a lot to baf and the others for your efforts.

Two quick questions:
- what shell file gets started when launching xterm?
(i've tried adding some symlinks or other commands to "/mnt/us/extensions/xterm/bin/xterm.sh" but that doesn't seem to work)

- vim interpreted the "/mnt/us/extensions/xterm/bin/.vimrc" perfectly at first, but then I ran into a pernicious problem, which I cannot trace for the life of me: namely the mapping such as
nmap on :e /mnt/us/notes.txt<cr>
would not call the corresponding <cr> (and similarly with <tab>, <bs> etc.). It wouldn't matter too much for this single one, but I have a lot of such mappings -- and most annoying it worked well at first!

Any help appreciated
istib is offline   Reply With Quote
Old 07-17-2012, 09:36 AM   #86
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,998
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
What about <lf> ?
knc1 is offline   Reply With Quote
Old 07-17-2012, 10:31 AM   #87
istib
Junior Member
istib began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2012
Device: Kindle Touch
<lf> doesn't work either.
istib is offline   Reply With Quote
Old 07-17-2012, 11:37 AM   #88
istib
Junior Member
istib began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2012
Device: Kindle Touch
I found the solution whilst browsing in vim docs.
I needed to set "nocompatible" (to make sure the '<' flag is excluded from 'cpoptions')
istib is offline   Reply With Quote
Old 07-26-2012, 09:25 PM   #89
Fvek
Member
Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.
 
Posts: 23
Karma: 193423
Join Date: Jul 2012
Device: Kindle Touch
Your keyboard.xml in 0.6 has an apostrophe as the action for the double quote key.

It should look like this instead:

Code:
<default display="image:/mnt/us/extensions/xterm/layouts/img/apostrophe.png" action="'" />
<shifted display="image:/mnt/us/extensions/xterm/layouts/img/quot.png" action="&quot;" />
Fvek is offline   Reply With Quote
Old 07-26-2012, 09:35 PM   #90
Fvek
Member
Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.Fvek can program the VCR without an owner's manual.
 
Posts: 23
Karma: 193423
Join Date: Jul 2012
Device: Kindle Touch
Quote:
Originally Posted by imfede View Post
(oh, btw, how can i change the PATH permanently so that every time i login my PATH contains also /mnt/us/bin ?)
Add the following line to the /mnt/us/extensions/xterm/bin/xterm.sh after the one with "PS1" in it:
Code:
export PATH=$PATH:/mnt/us/bin
Fvek is offline   Reply With Quote
Reply

Tags
launcher add-ons

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Battery life in kindle keyboard an kindle non touch. ersott Amazon Kindle 24 10-30-2013 05:33 AM
[Progress] Jailbreaking Kindle 4.0 (Touch/No Keyboard) yifanlu Kindle Developer's Corner 429 10-22-2012 09:58 PM
[Kindle Touch] Touch-screen keyboard demo JoppyFurr Kindle Developer's Corner 6 05-19-2012 12:04 PM
Kindle Touch add new keyboard Novas Kindle Developer's Corner 2 01-12-2012 09:29 AM
Matchbox Keyboard Update Grimulkan iRex 17 05-13-2009 05:24 PM


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


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