![]() |
#1 |
Linux enthusiast
![]() Posts: 26
Karma: 20
Join Date: Aug 2017
Location: Somewhere in the universe
Device: PW3 PW4 (all jb)
|
[HELP] Compile Linux Apps For Kindle
Hello everyone!
Recently I tried to compile some apps for kindle. For example, Accidental IRC(latest binary) and proxychains etc. But I've met some problems. How to choose compiler's architecture? I tried armhf and armel, not working. When compiling using armhf compiler, on kindle kterm it just doesn't recognize it as an executable file. Also, I tried to compile it on my Raspberry Pi (armv7), got the same result. I've also searched Google and the forum, can't find anything useful. Anyone for help? Thanks! |
![]() |
![]() |
![]() |
#2 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Check this tutorial
|
![]() |
![]() |
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Some points based on my recent attempts:
- Instead of re-inventing the wheel, you can check if the particular package already exists in the debian armel wheezy or jessie repositories. If yes, they can be directly copied to the kindle and most will run. You need to copy any library dependencies too. - As indicated in the link given by encol, you can set up a debian armel VM and compile and test stuff on it and later copy it over to the kindle. - You can also do a cross compile from a desktop linux. This seems to produce executables that are better in terms of speed. - All the above is for command line applications. For graphical applications, you need to fiddle further with things like GTK. (I haven't got there yet! ;-)) |
![]() |
![]() |
![]() |
#4 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
And if you search here a bit among twobob's posts, you will find he posted a script that will determine what library dependences are already satisfied in the Kindle's system image.
That is, things which you don't need to add. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 37
Karma: 50278
Join Date: Feb 2017
Device: Kindle PW3
|
You can also use my tutorial to set up a virtual machine running the kindle processor. You can compile as normal and if any library files are missing you can copy them to the kindle.
Also, you can use the debian on kindle to compile things. https://www.mobileread.com/forums/sh...d.php?t=286561 |
![]() |
![]() |
![]() |
#6 |
Linux enthusiast
![]() Posts: 26
Karma: 20
Join Date: Aug 2017
Location: Somewhere in the universe
Device: PW3 PW4 (all jb)
|
Finally succeed!
I used an armel Debian QEMU and managed to compile some apps. I will release them on the forum if possible since I am still a student. :-) Thanks everyone! |
![]() |
![]() |
![]() |
#7 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Put your sources in a public repository (github, bitbucket, etc) for any binaries you post. Give them an open source license. |
|
![]() |
![]() |
![]() |
Tags |
arm, armhf, compile, development, linux |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre compile error on linux | norbusan | Calibre | 6 | 07-13-2017 12:26 AM |
How to convert linux apps for running in kual? | Aeris | Kindle Developer's Corner | 8 | 09-19-2013 09:37 AM |
Calibre 0.8.36 - Linux Compile Error - No module named dateutil.parser | jasn | Calibre | 2 | 01-21-2012 11:36 PM |
PBSDK-linux-libwine compile -lpthread error | read365 | PocketBook Developer's Corner | 1 | 10-05-2011 08:27 AM |
Calibre 0.7.43/44 - Linux Compile Segmentation Fault | jasn | Calibre | 2 | 02-08-2011 11:52 AM |