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 09-17-2012, 10:07 PM   #661
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
dont use cinnamon 13 imho. mint lxde much more stable. cinnamon has 'issues' it hangs randomly. cheers
twobob is offline   Reply With Quote
Old 09-18-2012, 04:16 AM   #662
tigran
Zealot
tigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
Kai771 (and others new to git)
I highly recommend a "Pro Git" book pre-formatted for Kindle and freely available here:

https://github.com/danchoi/kindlefodder/downloads
tigran is offline   Reply With Quote
Old 09-18-2012, 12:34 PM   #663
dracodoc
Connoisseur
dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.
 
Posts: 83
Karma: 322
Join Date: Mar 2009
Device: Kindle DXG, Sony T1
Quote:
Originally Posted by twobob View Post
dont use cinnamon 13 imho. mint lxde much more stable. cinnamon has 'issues' it hangs randomly. cheers
I chose mint Mate instead of cinnamon too, mainly because it seemed that the Genome 3 needed graphic acceleration is not supported in vmware, so there could be problem at least for virtual machine.
dracodoc is offline   Reply With Quote
Old 09-18-2012, 12:42 PM   #664
dracodoc
Connoisseur
dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.
 
Posts: 83
Karma: 322
Join Date: Mar 2009
Device: Kindle DXG, Sony T1
Quote:
Originally Posted by Kai771 View Post
Now that I managed to properly compile kindlepdfviewer, I thought I should write a guide about it while my memory is still fresh.
Great guide. I think you can put it into the github site wiki.
Besides, it may be helpful for newcomer to include these tips:
1. Wonder which key you should use in emulation mode? Check the file keys.lua and look for the function setEmuKeycodes(). Also the debug output while using the emulator is very helpful.
2. At the first time I didn't compile the emulator for 600x800 since I'm using DX, then I realized the DX resolution is more than my monitor height! So I have to compile the emulator again for 600x800, it should serve the purpose anyway.
dracodoc is offline   Reply With Quote
Old 09-18-2012, 01:00 PM   #665
tigran
Zealot
tigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
Quote:
Originally Posted by dracodoc View Post
2. At the first time I didn't compile the emulator for 600x800 since I'm using DX, then I realized the DX resolution is more than my monitor height! So I have to compile the emulator again for 600x800, it should serve the purpose anyway.
I was going to mention this point, but the solution (if one really wants to run emulator in DX mode) is to go to your Monitor Settings and enable panning with vertical dimension big enough --- this solves the problem. For example, my monitor's physical resolution is 1920x1200 but virtual resolution is 1920x1600, so I can run DX emulator. (this was "mission critical" when I was changing kpdfview's menu shortcuts for DX and the ones I actually _needed_ to see were off the bottom of the screen, so I had no choice but to find a solution
tigran is offline   Reply With Quote
Old 09-18-2012, 01:31 PM   #666
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
it's "exactly" the same thing

Quote:
Originally Posted by Kai771 View Post
@dpavlin
Well, modifying the Makefile or adding HOST=arm-linux-gnueabi to make is practically the same thing, isn't it?

Nope, it's "exactly" the same thing that was his point.

HTH
twobob is offline   Reply With Quote
Old 09-18-2012, 03:10 PM   #667
Kai771
Just a Noob
Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.
 
Kai771's Avatar
 
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
@twobob and others
Quote:
dont use cinnamon 13 imho. mint lxde much more stable. cinnamon has 'issues' it hangs randomly.
I don't really use Linux Mint 13 Cinnamon. I just happened to have the iso, and when tigran suggested that maybe my distro was causing me problems when compiling emulation mode (it turned out he was right - but dave2008 fixed Makefile so it works on Ubuntu now), I tried it on cinnamon. I know that cinnamon has ubuntu as base, and if I really wanted to change the distro I should've went for something else, but since I already had the iso, I thought I might give it a go. (I was going to download FC12, since tigran said he was using that one, but it was 3GB - kinda large - so I tried cinnamon first). Stability of the distro aside, compiling KindlePDFViewer following the guide DOES work.

@dracodoc
Quote:
Great guide. I think you can put it into the github site wiki.
I'm glad you like it. I don't know how to edit wiki, but if you or someone else wants to do it (or use it for whatever) please just go ahead.

@tigran
Quote:
I was going to mention this point, but the solution (if one really wants to run emulator in DX mode) is to go to your Monitor Settings and enable panning with vertical dimension big enough --- this solves
My laptop only has 768 vertical resolution, so I can't see even the full 600x800 - the lower part of the Emulation window ends up in lower virtual desktop. This may sound stupid, but how about adding vertical scrollbar to Emulator window and enabling window resizing? Not feasible? Feasible but hard?
Kai771 is offline   Reply With Quote
Old 09-18-2012, 03:22 PM   #668
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Kai771 View Post
My laptop only has 768 vertical resolution, so I can't see even the full 600x800 - the lower part of the Emulation window ends up in lower virtual desktop. This may sound stupid, but how about adding vertical scrollbar to Emulator window and enabling window resizing? Not feasible? Feasible but hard?
Same problem, different numbers.

Same solution, different numbers.

I.E: Change your monitor settings.
And when your done working with the Emulator, change them back.
(Or, enable two profiles and switch profiles - here I assume you are using the "Only Operating System in the World" since you didn't say.)
knc1 is offline   Reply With Quote
Old 09-18-2012, 03:42 PM   #669
tigran
Zealot
tigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
Kai771
Correction to your guide: there is no need to install Lua 5.2. We are actually using LuaJIT which is downloaded when you run "make fetchthirdparty", so it makes no difference which version of Lua (if any) you are running on the host machine.

Concerning the resolution issue: I just run nvidia-settings and it lets me configure a metamode 1920x1600 with the physical resolution of 1920x1200. I assumed that the other graphics cards and OSes have a similar capability. Are you saying that Windows 7 does not have a concept of virtual screen, i.e. screen with the size bigger than physical resolution?
tigran is offline   Reply With Quote
Old 09-18-2012, 04:20 PM   #670
Kai771
Just a Noob
Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.
 
Kai771's Avatar
 
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
Quote:
Originally Posted by tigran View Post
Kai771
Correction to your guide: there is no need to install Lua 5.2. We are actually using LuaJIT which is downloaded when you run "make fetchthirdparty", so it makes no difference which version of Lua (if any) you are running on the host machine.
That's what I thought too, except luajit needs lua for it's make to succeed (if I remember correctly... I'm pretty sure it failed until I installed lua, but I'll check it again).

Checked: without lua, you get this:
Code:
make -C luajit-2.0
make[1]: Entering directory `/home/kai771/kindlepdfviewer/luajit-2.0'
==== Building LuaJIT 2.0.0-beta10 ====
make -C src
make[2]: Entering directory `/home/kai771/kindlepdfviewer/luajit-2.0/src'
DYNASM    buildvm_x64.h
make[2]: lua: Command not found
make[2]: *** [buildvm_x64.h] Error 127
make[2]: Leaving directory `/home/kai771/kindlepdfviewer/luajit-2.0/src'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/kai771/kindlepdfviewer/luajit-2.0'
make: *** [luajit-2.0/src/libluajit.a] Error 2
In Ubuntu 12.04, just apt-get install lua doesn't get you anything - you need to specify version. So I went with the latest. But will check that again, and get back to you (Checked - you need to specify version. It offers lua50, lua5.1 and lua5.2).


Quote:
Concerning the resolution issue: I just run nvidia-settings and it lets me configure a metamode 1920x1600 with the physical resolution of 1920x1200. I assumed that the other graphics cards and OSes have a similar capability. Are you saying that Windows 7 does not have a concept of virtual screen, i.e. screen with the size bigger than physical resolution?
No, I'm saying I'd much prefer a scrollbar on the window. I'm aware of xrandr, but it's a bit buggy in VM. Anyway, here's a simple way, at least in Ubuntu - hold alt, click anywhere in window, and drag it. This will allow you to move title bar and upper part of the window off the screen.

Last edited by Kai771; 09-18-2012 at 05:12 PM. Reason: Checked!
Kai771 is offline   Reply With Quote
Old 09-18-2012, 04:25 PM   #671
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: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Kai771: It depends on the WM, but the ALT+drag thing is a pretty common enough concept, so there's a good chance it's implemented that way in many, if not all of the WM. (It works fine in kwin, FWIW ).
NiLuJe is offline   Reply With Quote
Old 09-18-2012, 04:28 PM   #672
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Kai771 View Post
That's what I thought too, except luajit needs lua for it's make to succeed (if I remember correctly... I'm pretty sure it failed until I installed lua, but I'll check it again). In Ubuntu 12.04, just apt-get install lua doesn't get you anything - you need to specify version. So I went with latest. But will check that again, and get back to you (Checked - you need to specify version. It offers lua50, lua5.1 and lua5.2).
luajit implies: lua5.1, no luajit for 5.2 (as of a few weeks ago anyway).
Plus, PDFreader is a lua 5.1 application, not likely to move to lua 5.2 any time soon.
knc1 is offline   Reply With Quote
Old 09-18-2012, 05:06 PM   #673
Kai771
Just a Noob
Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.Kai771 can program the VCR without an owner's manual.
 
Kai771's Avatar
 
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
Quote:
@Kai771: It depends on the WM, but the ALT+drag thing is a pretty common enough concept, so there's a good chance it's implemented that way in many, if not all of the WM. (It works fine in kwin, FWIW ).
I thought so too, but since I only tried it on Ubunty, I could only say it for certain for Ubuntu.

Quote:
luajit implies: lua5.1, no luajit for 5.2 (as of a few weeks ago anyway).
Plus, PDFreader is a lua 5.1 application, not likely to move to lua 5.2 any time soon.
That might be so. KPdfView uses freshly compiled luajit. Luajit needs some lua installed so it would compile. 5.2 works. It's only used so luajit would compile. So what's the problem?
Kai771 is offline   Reply With Quote
Old 09-18-2012, 05:14 PM   #674
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Kai771 View Post
I thought so too, but since I only tried it on Ubunty, I could only say it for certain for Ubuntu.


That might be so. KPdfView uses freshly compiled luajit. Luajit needs some lua installed so it would compile. 5.2 works. It's only used so luajit would compile. So what's the problem?
See the change log at lua.org in the section of incompatibilities.

Plus, the VM instruction set is different between 5.1 and 5.2, which is always true when either x or y of X.Y Lua version numbers change.

If everything does work - then check what version of LuaJIT you used - it may be one that is new enough to support 5.2.
If by "5.2 works" you mean it compiles - then test a bit further.
knc1 is offline   Reply With Quote
Old 09-18-2012, 08:50 PM   #675
dracodoc
Connoisseur
dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.
 
Posts: 83
Karma: 322
Join Date: Mar 2009
Device: Kindle DXG, Sony T1
I thought how the emulator or kpv works should be irrelevant with screen resolution, i.e. the changes made for kpv with emulator running in 600x800 should also work for DX. So this is not the case? Even if the emulator have to run for some device target, why can't we just emulate the DX for keys, but with a different resolution?
For example, create a virtual device named DX_small, which is identical to DX except the resolution is 600x800. I think this could work since the resolution number should not be hard coded everywhere.

Panning with virtual space seemed a unneeded effort to me.

Quote:
Originally Posted by tigran View Post
I was going to mention this point, but the solution (if one really wants to run emulator in DX mode) is to go to your Monitor Settings and enable panning with vertical dimension big enough --- this solves the problem. For example, my monitor's physical resolution is 1920x1200 but virtual resolution is 1920x1600, so I can run DX emulator. (this was "mission critical" when I was changing kpdfview's menu shortcuts for DX and the ones I actually _needed_ to see were off the bottom of the screen, so I had no choice but to find a solution
dracodoc is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1269 02-27-2024 11:49 AM
Librerator - multi-format e-reader, fork of KPV Kai771 Kindle Developer's Corner 432 10-06-2017 12:20 PM
Yet another PDF viewer (muPDF based) melihron PocketBook 66 09-02-2014 03:03 AM
Text-based PDF to Mobi, etc./Kindle 3 kidblue Calibre 41 07-20-2012 03:19 PM
muPDF on Kindle DX!! DairyKnight Kindle Developer's Corner 8 03-21-2010 03:39 AM


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


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