Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
35 lines (27 sloc) 2.35 kB
Recommended Compilation Directions
Basically, you'll need a working toolchain, nettle, and libarchive >= 3.0.3 (with gzip support).
If you don't want to bother, static binaries are available:
here for the latest releases: http://www.mobileread.com/forums/showthread.php?t=187880
and here for the latest development snapshots, which are most likely the builds you'll be interested in: http://www.mobileread.com/forums/showthread.php?t=225030
To compile for Linux:
1) Install the required (development) dependencies in the appropriate manner for your distro (i.e., use your PMS).
1.5) For Debian/Ubuntu people: You'll need zlib1g-dev, libarchive-dev and nettle-dev
1.5) For Fedora people: You'll need zlib-devel, libarchive-devel and nettle-devel
1.5) For OpenSuse people: You'll need zlib-devel, libarchive-devel and libnettle-devel
2) Compile using "make" in the tool's directory
3) If you want to install it in /usr/local, run "make install". (I'd recommend using this through the checkinstall tool on Debian/Ubuntu).
2.5) If GCC throws a fit about libarchive, or if it fails to link with a bunch of undefined references to archive_* symbols, your libarchive version is too old.
You'll have to build it manually (get the latest 3.x release from http://libarchive.github.com/).
See https://github.com/NiLuJe/KindleTool/issues/1 for more details. Or try using the simple-linux-static-build.sh script in the tools folder.
Fellow Gentoo users, there's a portage overlay over on https://github.com/NiLuJe/gentoo-kindletool, enjoy ;).
To compile for OSX:
1) If you're using Homebrew, see https://github.com/NiLuJe/homebrew-kindletool
To compile for Windows:
1) Get Cygwin
2) Install the required packages for a proper toolchain (gcc4, binutils, autoconf, automake, libtool, make, ...)
3) Install the packages: zlib / zlib-devel, libarchive13 / libarchive-devel, libnettle4 / libnettle-devel, git, cmake, patch, pkg-config, libxml2-devel
5) Compile using "make" in the tool's directory
6) Install it by running "make install"
BIS) Alternatively, you can also build a native version with a MinGW or MinGW-w64 toolchain.
On a native MinGW+MSYS toolchain, you'll probably have to tweak the Makefile, but it should handle a Linux cross toolchain properly with the mingw target ;).
Check the tools/mingw directory for more details.
Jump to Line
Something went wrong with that request. Please try again.