|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Enthusiast
![]() ![]() ![]() Posts: 29
Karma: 244
Join Date: Aug 2011
Location: North Pole, Alaska
Device: Kindle DXG
|
Is it possible to compile Calibre without QT, but still use it's command line tools?
Is it possible to compile Calibre without QT, and still use it's command line tools such as ebook-convert?
Reason being, using Linux + DWM desktop, absolute minimalist here. QT requires bringing in an additional 20+ dependencies and takes a huge time to compile, too! Not too mention the ability, also, to pipe simple commands. The ebuild for Gentoo doesn't have any relevant build flags from a glance... |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() ![]() ![]() Posts: 29
Karma: 244
Join Date: Aug 2011
Location: North Pole, Alaska
Device: Kindle DXG
|
... and from what I see, there's no command to pull news feeds via command line. If a host is power-cycled, Calibre will miss pulling news using it's scheduler.
Using cron+anacron, news pulling just happens if it's passed it time. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
Code:
epub-convert recipe outputfile As to your other question, I can't help, but I'm sure someone will be along shortly. What I can say is that Calibre uses Qt for more than 'just' the GUI, for example, I believe parts of the PDF conversion runs using some parts of Qt. |
|
![]() |
![]() |
![]() |
#4 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Qt is required and is also used by portions of the conversation process. PDF and rasterization of SVG images to name a few. You need Qt to compile and run calibre. However you do not need a full xorg install. Search here for info on using calibre with xvfb.
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() Posts: 29
Karma: 244
Join Date: Aug 2011
Location: North Pole, Alaska
Device: Kindle DXG
|
... some really good info here.
Not a huge QT (KDE) fan, nor Python mainly due to their overhead. I like basic C and Bash Scripting. I'll look into incorporating the cron (for anacron) trick as anacron is a lot more reliable. ... granted would be really nice to build just calibre & it's CLI tools and not bring in qt (and qt deps)! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Is there any particular reason you need to build from source? Are you on a platform that calibre's binary install doesn't support? Typically it's easier to use the binary installer (even for development) than it is to build from source. calibre has a lot of dependencies.
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() Posts: 29
Karma: 244
Join Date: Aug 2011
Location: North Pole, Alaska
Device: Kindle DXG
|
user_none: I maintained binary installs prior to year 2000, but became annoyed by upgrading one package introduced many unsatisfied deps. This particular scenario is common when running SVN/CVS, or just the latest and greatest version.
As such, I switched to Gentoo (a source based distro) and have been happy & peaceful ever since. I've looked into xvfb (networking framebuffer), but not what I really need as it just networks stuff requiring me to use twice the computer resources I even need. :Manichean - I don't have "epub-convert" here with my install of calibre-0.8.14. This command grabs a News RSS feed? Sounds more like an epub converter. |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
The whole point of the Calibre binary package is that it does NOT have dependencies on lots of other packages. It includes any packages that calibre needs set up to be used from the Calibre install location. As such it does not interfere with other (possibly different) versions of those packages. That does make the download larger, but it means that Kovid can easily move Calibre onto a new version of a dependant package without having to worry if the final host system has also done so.
This approach has been taken as with Calibre having a weekly release cycle it can be a hard work for anyone who wants to compile from source to keep all dependent packages at the right version level. It also makes setting up a Calibre development environment relatively trivial as again everything (other than the source itself) that is required is already present. |
![]() |
![]() |
![]() |
#9 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
The manual lists all of the command line commands and their functions. Last edited by DoctorOhh; 08-27-2011 at 05:02 AM. |
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#11 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
xvfb is a virtual X server. calibre command line tools such as ebook-convert (which when given a recipe will download the content from the internet and output it in the format of your choice) must run in X. If you don't have X and want to run the command line tools in a headless environment you can use xvfb which gives the program a virtual X environment so you don't have to run a full X session.
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() ![]() ![]() Posts: 29
Karma: 244
Join Date: Aug 2011
Location: North Pole, Alaska
Device: Kindle DXG
|
itimpi: we already know all this.
dwanthny: woo! Now that's the man page info I was looking for! ... the system installed man page here for ebook-convert doesn't list all that info, just the very very basic definition of what ebook-convert does. Thanks I think, maybe I can get ebook-convert pulling a news recipe now via command line only. user_none: The problem, Everybody uses the latest and greatest CPU with mega memory and forget about people using P3's, etc. A lot of code is just bloat and sitting doing nothing except eating cpu/memory power. Also, the more code you've got running, the more problems one might get. I get a lot more done via command line, except for reading stuff online through a browser. If I do use a GUI, it's only for a short time to get to know the tool, then I just write my recipe for automating the task via CLI. If I get free time this Winter, I'll look into the calibre source to figure if I can configure --without-qt. Technically speaking, should be able to, but as you guys stated, PDF conversion stuff is using QT stuff instead of non-GUI tools. :-/ |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy/Move books between libraries using command line tools | jameszh | Library Management | 3 | 02-15-2011 09:02 AM |
Problem installing Command line tools | patc890 | Calibre | 7 | 12-12-2010 08:02 AM |
Autotagging with Calibre (command line) | erion | Calibre | 11 | 08-28-2010 01:33 PM |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 12:08 PM |
command-line conversion tools in 0.6.0? | WayneD | Calibre | 3 | 06-03-2009 01:30 PM |