![]() |
#1 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
[Rant] New dependencies for 0.6.11?
I was going to upgrade the Calibre version in my work computer (Mandriva 2008) and got a new error:
Code:
Extracting application files... Traceback (most recent call last): File "/tmp/init.py", line 43, in <module> File "/home/kovid/build/calibre/src/calibre/__init__.py", line 15, in <module> File "ExtensionLoader_PyQt4_QtGui.py", line 12, in <module> ImportError: /lib/i686/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/calibre/libxml2.so.2) I understand that is the price to pay if one wishes cutting edge applications, though ![]() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's pretty much impossible for me to keep calibre compatible with older system. This is because it needs to keep on using new features from various dependencies, like Qt and python. For example, currently the viewer has a bug where it doesn't display soft hyphens at the end of the line. This is because of a bug in Qt, so as soon as a new Qt is released, calibre will be upgraded.
And the recent customizable Save to disk feature depends on a feature in the latest python 2.6 And then there is a bug in lxml that affects handling if unicode CSS selectors which neccessitates an upgrade as soon as the next version is rleased. (lxml is what uses libxml2, among other things). Still glibc 2.7 is almost 2 years old. Instead of recompiling individual dependencies that depend on it, you should just manuall compile glibc2.7 and put it into the calibre folder. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Da'i
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,144
Karma: 1217499
Join Date: Oct 2008
Location: Baltimore
Device: Toshiba Thrive, Kobo Touch, Kindle 1, Aluratek Libre, T-Mobile Comet
|
WOuld it be possible to make some type of note as to OS compatibility for linux distros though? So that we don't accidently break a perfectly working version calibre with no possibility of returning to the older version?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I am certainly not going to sit and test calibre on a dozen different distros before every release. If you're concerned, I suggest you get your distro maintainers to package calibre and then use only the distro packages.
|
![]() |
![]() |
![]() |
#5 | |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Your best options for a binary distro in order of preference are: use the distro package and live with the shipped version, build it yourself, use the binary installer. If you can't build it yourself or use the binary installer due to packages that you can't update without breaking the system (python, pyqt4) then either live with the last version that you can get working or switch to a distro with more recent version of those packages. In the OPs case updating to the latest Mandriva release will solve the python and glib version issues. Just because there is a newer version doesn't mean that you have to upgrade. While a new version has bug fixes and new features that doesn't mean you will need or use them. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
![]() |
![]() |
![]() |
![]() |
#7 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Does anyone have a copy of the 0.6.10 binaries? ![]() Quote:
|
||
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's a sticky thread in this forum with links to old binaries, best to ask there.
|
![]() |
![]() |
![]() |
#9 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 1029955
Join Date: Feb 2009
Device: Palm IIIx, EBM-911, REB-1100(dead), PRS-505
|
Actually, I like the binary distros as I had my fill of dependency hell YEARS ago.
Ubuntu does what Debian does as well. They release a particular version of apps + kernel + X.org with a release and backport security fixes to that version. Alternatively you can sometimes find newer version in the various PPAs, or the backports repo from the next release. But since Ubuntu has a 6m release cycle you're pretty close to the bleeding edge all of the time anyways. Lastly, and entirely undesireable(and mostly unnecessary) is to build more recent version from "source". [EDIT] Good thing about Ubuntu being a Debian derived distro is that one can usually find source .debs to build from and therefore not break your entire system(hopefully) if you decided to install system wide... [/EDIT] The only good reason to use a source based distro is to be able to compile with specific architectural optimizations, but I found the few %age points of performance to no be worth the hassle. (That said the only version of calibre in the Ubuntu repos is very very very old....) Last edited by cutterjohn42; 09-10-2009 at 10:01 AM. |
![]() |
![]() |
![]() |
#11 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2009
Location: Vietnam
Device: PRS505
|
Quote:
hmm, i wonder which features i'm missing out on! ![]() |
|
![]() |
![]() |
![]() |
#12 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 1029955
Join Date: Feb 2009
Device: Palm IIIx, EBM-911, REB-1100(dead), PRS-505
|
Just use the Debian install CLI option... works fine for me since I didn't want to be using an ancient version...
It even creates a menu entry in the Office menu group. You MAY need to download some extra things though, like some basic Qt libs if you're only using GNOME/GTK apps ATM. [EDIT] You could also check the 9.10 backports repo or check the various PPAs and see if someone has packaged up a version already. [/EDIT] Last edited by cutterjohn42; 09-10-2009 at 11:06 AM. |
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2009
Location: Indiana, USA
Device: PRS-600, EZReader PPro 5
|
*** Never mind, I found out that the libpng version shipped with Ubuntu included the header error at line 326 about 'dont' as well as poppler was not shipped with the xpdf headers. Problem solved! ***
I'm running Ubuntu (JJ) and trying to compile from source (latest, checked out last night). After satisfying all the dependencies I could see I'm still getting an error when running python setup.py build: /apps/books/calibre/src/calibre/ebooks/pdf/images.cpp: In member function ‘void calibre_reflow::XMLImages::add(GfxState*, Object*, Stream*, unsigned int, unsigned int, GfxImageColorMap*, bool, int*, bool)’: /apps/books/calibre/src/calibre/ebooks/pdf/images.cpp:160: error: ‘class ImageStream’ has no member named ‘close’ Traceback (most recent call last): File "setup.py", line 99, in <module> sys.exit(main()) File "setup.py", line 85, in main command.run_all(opts) File "/apps/books/calibre/setup/__init__.py", line 158, in run_all self.run_cmd(self, opts) File "/apps/books/calibre/setup/__init__.py", line 154, in run_cmd cmd.run(opts) File "/apps/books/calibre/setup/extensions.py", line 232, in run self.build(ext, dest) File "/apps/books/calibre/setup/extensions.py", line 269, in build subprocess.check_call(cmd) File "/usr/lib/python2.6/subprocess.py", line 462, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['g++', '-O3', '-Wall', '-DNDEBUG', '-fPIC', '-fno-strict-aliasing', '-pipe', '-pthread', '-I/usr/include/python2.6', '-DPNG_SKIP_SETJMP_CHECK', '-I/usr/include', '-I/usr/include/ImageMagick', '-I/usr/include/poppler', '-c', '/apps/books/calibre/src/calibre/ebooks/pdf/images.cpp', '-o', '/apps/books/calibre/build/objects/pdfreflow/images.o']' returned non-zero exit status 1 Doess anyone have any ideas? Thanks- Larry Last edited by lbattraw; 10-14-2009 at 10:25 AM. Reason: Bad poppler version/no xpdf headers |
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Are you sure you're using poppler 0.12.0?
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2009
Location: Indiana, USA
Device: PRS-600, EZReader PPro 5
|
Positive. I compiled it from source myself. I finally got everything working but it was definitely not a small effort with all the dependencies and the couple adjustments necessary to get it to compile. I was hoping to get better results than the pre-compiled version since I've had a lot of problems with it locking up the KDE task bar such that I can no longer click on any of the icons/active programs and get a response. Have you noticed this?
Thanks- Larry |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Enough already!!! (short rant) | Ea | Lounge | 38 | 04-12-2010 02:26 PM |
Missing Dependencies : Building Cool Reader 3 as libfb2.so | biodiesel | HanLin eBook | 5 | 01-03-2010 09:33 PM |
Re: rant | AprilHare | Sony Reader | 0 | 11-21-2009 12:12 AM |
Sorry Just Have to Rant! | jerryleejr | Lounge | 6 | 07-05-2008 06:31 AM |
Why, Oh Why! [RANT] | Vesper | Lounge | 19 | 06-19-2008 11:50 AM |