03-06-2012, 12:29 PM | #16 |
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
The Kindle Touch's root (where all the amazon pre-installed stuff is) is mounted read-only (unless you changed that [which you shouldn't unless you know what you are doing]).
By default programs can only write to /mnt/us (this part gets exported over USB), /tmp and IIRC /var/local (there's also stuff by amazon in there but I think it's only preferences and stuff?). |
03-06-2012, 04:24 PM | #17 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
just tried the candy.
it crashed several times (while performing fonts setup in the menu), but apart from that it works and it is cool!!! thanks! I am impressed. Keep up the good work! A few notes: 1) the menu looks messy because its font size is too big. Are you aware of that or it is just only me who faced this issue? I attached a screenshot. 2) I wasn't able to find a way to "close" the app. is there any way? 3) It seems the app's settings (font settings, enable/disable clock, etc) get discarded on the next app's run. is it a bug? |
Advert | |
|
03-07-2012, 03:47 AM | #18 | ||||
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Quote:
Quote:
I was really puzzled about this and also the program displaying different fonts with different heights even though the same height was set. After installing a self built version of the FreeType2 library (that is used on the Touch for handling fonts) all the problems just vanished. It seems Amazon either installed a broken FreeType2 library on the Touch (but didn't notice it as their code doesn't really use the full functionality of freetype) or they installed a stripped down customized version of it that's not as thoroughly tested as the full build. I'm not yet sure how to fix that for the next release. Quote:
You have to kill -QUIT it from the command line. Or let it crash although since I've added the new freetype2 library it didn't crash for me anymore. Quote:
I think the settings for individual e-books aren't saved. That may be due to the missing of a proper way of quitting the application. But I haven't looked into that yet. |
||||
03-07-2012, 04:09 AM | #19 | |
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Quote:
|
|
03-07-2012, 04:57 AM | #20 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
I don't think so (but I haven't tried it). For instance, there is the com.lab126.draw app (or the web browser, for that matter), which are WAF applications launched by a command line (/usr/bin/wafapp ...)
|
Advert | |
|
03-07-2012, 05:05 AM | #21 | |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
Maybe we could come up with a custom solution (say, a hack which overrides the freetype libs). I'm not sure wrt to binary compatibility between different KT firmwares, but I'd be willing to test it... That's why I'm asking you for some help Thanks! |
|
03-07-2012, 05:42 AM | #22 | ||||
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
Good day.
I wanted to cross-compile your app for kindle but had no luck. Could you help me? here's what I tried so far: Quote:
Quote:
One more question: what is that PKG_CONFIG_LIBDIR directory? There should be 'lib/pkgconfig' within it but I don't see any. updated ps: I installed missed build-essential package under Ubuntu and now I have another Ips: I figured out that one more package was missed. It was "libfontconfig1-dev". so I installed it as well. here's the latest errors: Quote:
BUT the problem is that I cannot compile it with arm-kindle-linux-gnueabi compilers (I downloaded the toolchain from https://github.com/samsheff/Amazon-K...ross-Toolchain by the way ). Here is the output: Quote:
Last edited by varnie; 03-07-2012 at 07:37 AM. |
||||
03-07-2012, 05:00 PM | #23 | |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
I changed the toolchain, successfully built the app, but I get
Quote:
does it mean that the toolchain was incorrect? |
|
03-08-2012, 03:06 PM | #24 | |
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Quote:
Download the current version from http://sourceforge.net/projects/free...eetype2/2.4.8/ Compile it with the following lines, adjust the host to fit your kindle gcc: Code:
./configure --prefix /tmp/freetype --host=arm-kindle-linux-gnueabi make install Code:
scp /tmp/freetype/lib/libfreetype.so.6.8.0 root@kindle:/usr/lib/ cd /usr/lib; rm libfreetype.so.6; ln -s libfreetype.so.6.8.0 libfreetype.so.6 Code:
[root@kindle lib]# ls -l libfreetype.so* lrwxrwxrwx 1 root root 21 Nov 3 20:03 libfreetype.so -> libfreetype.so.6.3.20 lrwxrwxrwx 1 root root 20 Mar 8 19:04 libfreetype.so.6 -> libfreetype.so.6.8.0 -rwxr-xr-x 1 root root 716900 Nov 3 20:05 libfreetype.so.6.3.20 -rwxr-xr-x 1 root root 2075463 Mar 2 10:07 libfreetype.so.6.8.0 [root@kindle lib]# |
|
03-10-2012, 08:25 AM | #25 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
I managed to compile it for Kindle Touch (it runs well from the device) but the "menu" is absent. (i.e. it is impossible to invoke it from the application).
And it is impossible to turn pages as well. The compiled executable file is about 2.7MB instead of '3.3MB' (which comes from your github page). Any ideas where's my fault? Last edited by varnie; 03-10-2012 at 08:37 AM. |
03-10-2012, 09:26 AM | #26 | |
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Quote:
That can be due to different CFLAGS. I think my build still has debugging info builtin. Last edited by bhaak; 03-10-2012 at 09:43 AM. Reason: fix formatting |
|
03-10-2012, 09:33 AM | #27 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
wait!! it works!!! just tried it again.
BTW, I used /usr/lib/* libraries from Kindle Touch for compiling. I don't see any issues with fonts I had before. Everything looks well. |
03-10-2012, 10:08 AM | #28 |
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Great to hear.
I just pushed some small changes to the github repository. Most important the configuration change that will show a "close book" entry in the menu. Sometime later today I'll also push out the GUI launcher extension (unfortunately, it needs some root fs manipulation, otherwise it can't reliably start HackedUpReader from the GUI launcher menu). So stay tuned. |
03-10-2012, 10:33 AM | #29 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
@varnie: Would you mind attaching your libfreetype.so here? I'd like to test it with font hack, but for the moment I gave up on installing the cross-compiling stuff
|
03-10-2012, 10:48 AM | #30 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
here it is (rename it to libfreetype.so.6.8.1).
but as for me CoolReader3 works well with the default libfreetype library on Kindle Touch (5.0.4), after reset to the factory settings. And I am out of ideas what caused that bug. Last edited by varnie; 03-10-2012 at 10:53 AM. |
Tags |
epub, launcher add-ons |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Raccoon Reader - reads ePub, fb2, fb2.zip, txt on WP7 for free | Andrei_Shvydryk | Reading and Management | 0 | 10-31-2011 03:17 PM |
inserting blank lines into rtf/txt/html | errata | Ectaco jetBook | 7 | 07-10-2010 09:16 PM |
rtf -- > epub / fb2 conversion | Brandobras | Calibre | 2 | 04-14-2010 01:24 AM |
TXT, RTF, and HTML conversion issues | daesdaemar | Calibre | 15 | 12-10-2008 09:05 PM |
ereader pdb to rtf, txt, anything? | Dave Berk | Reading and Management | 11 | 03-24-2007 07:45 PM |