08-31-2011, 02:24 AM | #1 |
Enthusiast
Posts: 27
Karma: 47524
Join Date: Aug 2011
Device: Kindle DXG
|
DirectFB/Gtk+/WebKit on DXG
The following links contains the binary files of DirectFB, Gtk+ , WebKit and related shared libraries for Kindle DXG, back ported from Kindle 3 source code release.
WebKitGtkKindleDXG.tar.xz (19M) Usage:
Even without 3G network, web browser works very well as an alternative UI and application platform for Kindle. It can be used as a viewer for ebooks in html format, or an image viewer if you are willing to write some javascript code. There are also other applications come with the tar ball you may wish to try.
LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/gtk-demo To use vte and gtkterm2, you need to put termcap file in /etc. -------------------------------------------------------------------------------------------------- I made some change into the source code.
If you can read traditional Chinese, more detail can be found at http://weijr-note.blogspot.com/2011/...kindle-dx.html |
12-29-2012, 10:21 PM | #2 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
This is excellent work. surprised it didn't get more attention. appreciation from me.
https://github.com/tjwei/WebKitGtkKindleDXG is a worthy touchstone. Thanks again QUOTE::: (If you dont read chinese) This is a very rough translation... Quote:
Last edited by twobob; 12-30-2012 at 10:44 AM. |
|
01-04-2013, 12:19 PM | #3 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
Okay so I thought I would do a quick - on a 3 howto...
Get the files. Un-zip. Un-Tar. (on the PC) mkdir -p ~/webkitgtk cd ~/webkitgtk dd if=/dev/zero of=~/webkitgtk/webkit.ext3 bs=1M count=150 mkfs.ext3 ~/webkitgtk/webkit.ext3 sudo tune2fs -i 0 -c 0 ~/webkitgtk/webkit.ext3 now mount it and shove the stuff in it that you unzipped... mkdir -p /mnt/loop sudo mount -o loop -t ext3 ~/webkitgtk/webkit.ext3 /mnt/loop cp -r (location of unzipped stuff)/* /mnt/loop/ sudo umount /mnt/loop ssh root@<kindleIP> mkdir -p /mnt/us/webkitgtk scp ~/webkitgtk/webkit.ext3 root@<kindleIP>:/mnt/us/webkitgtk/webkit.ext3 That should cover the first bit... then on the kindle... [root@kindle us]# mount -o loop -t ext3 /mnt/us/webkitgtk/webkit.ext3 /usr/local [root@kindle us]# cp -r /usr/local/root /var/tmp [root@kindle us]# /usr/local/bin/gwebkit Quote:
Enjoy!!! EDIT: If you really want to look at the browser full size? check your $LD_LIBRARY_PATH contains /usr/local/lib [root@kindle root]# echo $LD_LIBRARY_PATH Quote:
[root@kindle root]# GtkLauncher -w 600 -h 800 http://mobileread.com Last edited by twobob; 01-06-2013 at 12:01 PM. |
||
01-04-2013, 12:58 PM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Super!
All the little pieces are starting to come together. |
01-04-2013, 03:10 PM | #5 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
|
01-04-2013, 07:44 PM | #6 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
Just enough to give us keys support and eink updates...
Butchery complete?
Caveats: I did not look to include webkit support in this extraction. Just enough libs to add native eink updates to gtk application OOTB with minimal impact to the devices. Attached: extracted libs and etc files for /mnt/us/local (taken from inside this lot) In the absence of an installer... usage. (transfer to device, untar as /mnt/us/local/) mntroot rw cd /usr/local ln -s /mnt/us/local/etc etc ln -s /mnt/us/local/lib lib chmod a+x /usr/local/bin/gtkinit mntroot ro To Initialise: export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH gtkinit That should be enough EXTRA FILES to get a gtk compiled application using THIS METHOD running nicely on the 3... no loopmounts, no big space waste, and a place to shove usr libs neatly under FAT. There may be a requirement to provide other files... If so I may re-release with the complete support - the idea is to reuse as many of the original libs as possible... Note: The export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH command needs to be included in the shell running the app (and any sub-shells you expect to have access to the libs) you could easily do this in a launch shell script. or include it by default through amending your system details via a .bashrc or whatever you prefer. The gtkinit command would need to be invoked once per reboot at a minimum to load the /tmp/root For my purposes this is enough from this project to provide the little stepping stone required on the 3's over the native gtk invocations. If this helps you too? then great. Pictured it running a custom app. cheers. If I missed a lib nudge me. Works okay on mine now. CHANGES: 0.1 added cairo libs. embedded init script Last edited by twobob; 01-04-2013 at 08:39 PM. Reason: links, gtkinit |
03-07-2013, 12:04 AM | #7 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
cheering myself up doing silly things
Code:
#!/bin/sh mkdir -p /var/tmp/root rm /var/tmp/root/.directfbrc echo no-vt > /var/tmp/root/.directfbrc #echo disable-module=keyboard > /var/tmp/root/.directfbrc #echo disable-module=ps2mouse > /var/tmp/root/.directfbrc echo linux-input-devices=/dev/input/event0,/dev/input/event1 >>/var/tmp/root/.directfbrc rm /var/tmp/root/.gtkrc-2.0 echo gtk-font-name=\"sans 10\" > /var/tmp/root/.gtkrc-2.0 directfbrc file could contain: system = fbdev fbdev = /dev/fb0 mode = 600x800 scaled = 600x800 depth = 8 pixelformat = LUT8 no-cursor # Disable Cursor no-init-layer = 0 # Disable Layer Initialization no-vt # Disable vt no-vt-switch # Don't allow vt switching (redundant?) smooth-upscale # Scaling smooth-downscale window-surface-policy = systemonly # Window surface swapping policy: desktop-buffer-mode = backsystem # Desktop buffer mode: NOTE: want to find this: Vince's patch for armasm_memcpy(). memcpy=armasm # Use the ARM optimized memcpy() <-- Hmm might look at this RSN Last edited by twobob; 03-07-2013 at 12:09 AM. Reason: stuff |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
kindle directfb tutorial | fbdev | Kindle Developer's Corner | 16 | 06-11-2014 01:14 PM |
Getting SDL to work on DirectFB | B_Lizzard | Kindle Developer's Corner | 13 | 10-01-2012 12:42 PM |
directfb | fbdev | Kindle Developer's Corner | 5 | 12-16-2011 09:57 PM |
Cross-compilation question--building directfb | mark03 | Kindle Developer's Corner | 4 | 06-20-2011 11:59 AM |
iLiad What if iLiad adopts GTK on DirectFB? | ericshliao | iRex Developer's Corner | 1 | 01-26-2008 05:36 AM |