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-07-2011, 06:57 PM   #1
bobmor99
Junior Member
bobmor99 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: kindle 3
OpenCPN on Kindle 3

Greetings from an IT geezer and Kindle 3 (K3) hacker uber-newb.

I recently bought a K3 with the idea that an e-ink display would be great in the cockpit of my sailboat. There's a very high quality, open source chart plotter application (opencpn.org) that I'd like to use in direct sunlight. It runs on Linux (and Windows and Mac) and uses the wxWidgets and GTK libraries.

My K3 is jailbroken and I can telnet to it. Thanks to many for this.

In this post I'd like to ask how to to go about compiling the opencpn source for the K3. I have Scratchbox setup on a PC and have managed to compile and run Hello World on the K3. The output goes to the PC's telnet session. (Lots of knowledge holes here...) (I am also able to recompile the openCPN source and run it on my Linux desktop.)

I hope I've conveyed my level of expertise.

Is it a bad idea to try to port a "massive application" to the K3?
If not, what might be the main hurdles?
Should I focus on the K3's missing libraries?

Many thanks in advance.
bobmor99 is offline   Reply With Quote
Old 09-08-2011, 11:34 AM   #2
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,096
Karma: 2114647
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I wouldn't say it's a bad idea... Note that for GUI applications, there's a bit more to "porting" than just compiling the application as-is for the Kindle. You will also need to make the parts that output graphics aware that they are rendering to an e-ink display. The main difference to "usual" framebuffer output is that you have to tell the display explicitly to refresh changed parts of the visual output - it's a display that doesn't constantly refresh.

Personally, I didn't take a look at the sources, but there's a recent thread about a DirectFB/WebKit/GTK+ bundle - however, since you're targeting the K3, I think those should already be in place.

And yes, you should focus on "missing libraries"... You'll just need them to run the app, it's this simple.

However, there might be another way: You could use a full-fledged Debian installation as a base (search this forum on how to do this). This would spare you of the work to compile all that stuff, and you could focus on the e-ink problem.

Besides the mentioned output speciality, also the input will probably need a bit of work, too. The keyboard isn't quite the "standard PC" stuff.
hawhill is offline   Reply With Quote
Old 09-10-2011, 08:49 AM   #3
bobmor99
Junior Member
bobmor99 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: kindle 3
Thank you for the general guidance. That's what I was looking for.
I'm going to try the Debian route. Lots to learn. I'll report back on my progress in a year. :-)
bobmor99 is offline   Reply With Quote
Old 09-11-2011, 02:30 AM   #4
dasmoover
Connoisseur
dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.dasmoover is not intimidated by interfenestral monkeys.
 
Posts: 84
Karma: 26720
Join Date: Mar 2011
Device: Kindle 3 WIFI
I would also suggest using Debian as a base. There are guides on this forum explaining how to get xorg installed under a chroot, from there install the libraries and binaries with aptitude.
dasmoover 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
Font hacks for the Kindle 2, Kindle International and Kindle DX edge777 Kindle Developer's Corner 17 04-30-2010 04:11 PM
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 Xia Deals, Freebies, and Resources (No Self-Promotion) 2 11-07-2009 10:06 AM


All times are GMT -4. The time now is 07:11 AM.


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