Page 1 of 2

Compiling calibre [Solved]

Posted: 19. Nov 2014, 18:01
by Van_Vinkle
I've been trying to install the package "calibre" through Sourcery in my system (salix 13.37 mate 64 bit), but after installing all the explained dependencies in the readme file, the compilation crashes with these messages (only the last ones):

Code: Select all


####### Building extension icu #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -O2 -fPIC -pthread -I/usr/include/python2.6 -c /usr/src/slapt-src/office/calibre/calibre/src/calibre/utils/icu.c -o /usr/src/slapt-src/office/calibre/calibre/build/objects/icu/icu.o
Linking icu


 gcc /usr/src/slapt-src/office/calibre/calibre/build/objects/icu/icu.o -o /usr/src/slapt-src/office/calibre/calibre/src/calibre/plugins/icu.so -Wall -shared -lpython2.6 -licudata -licui18n -licuuc -licuio 



####### Building extension sqlite_custom #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -O2 -fPIC -pthread -I/usr/include/python2.6 -c /usr/src/slapt-src/office/calibre/calibre/src/calibre/library/sqlite_custom.c -o /usr/src/slapt-src/office/calibre/calibre/build/objects/sqlite_custom/sqlite_custom.o
Linking sqlite_custom


 gcc /usr/src/slapt-src/office/calibre/calibre/build/objects/sqlite_custom/sqlite_custom.o -o /usr/src/slapt-src/office/calibre/calibre/src/calibre/plugins/sqlite_custom.so -Wall -shared -lpython2.6 



####### Building extension chmlib #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -O2 -fPIC -pthread -I/usr/include/python2.6 -DSWIG_COBJECT_TYPES -c /usr/src/slapt-src/office/calibre/calibre/src/calibre/utils/chm/swig_chm.c -o /usr/src/slapt-src/office/calibre/calibre/build/objects/chmlib/swig_chm.o
/usr/src/slapt-src/office/calibre/calibre/src/calibre/utils/chm/swig_chm.c: En la función ‘SWIG_ConvertPtr’:
/usr/src/slapt-src/office/calibre/calibre/src/calibre/utils/chm/swig_chm.c:450:6: aviso: se sugieren llaves explícitas para evitar un ‘else’ ambiguo
/usr/src/slapt-src/office/calibre/calibre/src/calibre/utils/chm/swig_chm.c: En el nivel principal:
/usr/src/slapt-src/office/calibre/calibre/src/calibre/utils/chm/swig_chm.c:681:21: error fatal: chm_lib.h: No existe el fichero o el directorio
compilación terminada.
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 "/usr/src/slapt-src/office/calibre/calibre/setup/__init__.py", line 159, in run_all
    self.run_cmd(self, opts)
  File "/usr/src/slapt-src/office/calibre/calibre/setup/__init__.py", line 155, in run_cmd
    cmd.run(opts)
  File "/usr/src/slapt-src/office/calibre/calibre/setup/extensions.py", line 294, in run
    self.build(ext, dest)
  File "/usr/src/slapt-src/office/calibre/calibre/setup/extensions.py", line 335, in build
    subprocess.check_call(cmd)
  File "/usr/lib64/python2.6/subprocess.py", line 488, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-O2', '-fPIC', '-pthread', '-I/usr/include/python2.6', '-DSWIG_COBJECT_TYPES', '-c', '/usr/src/slapt-src/office/calibre/calibre/src/calibre/utils/chm/swig_chm.c', '-o', '/usr/src/slapt-src/office/calibre/calibre/build/objects/chmlib/swig_chm.o']' returned non-zero exit status 1
fakeroot -- sh calibre.SlackBuild Error

Any idea?

Re: Compiling calibre

Posted: 19. Nov 2014, 18:07
by djemos
calibre exist on salix repos.
So look at the dep file

Re: Compiling calibre

Posted: 19. Nov 2014, 18:18
by Van_Vinkle
djemos wrote:calibre exist on salix repos.
Not in my system:

Code: Select all

root[lluis]# slapt-get --search calibre
root[lluis]# 
djemos wrote:So look at the dep file
I've followed the list of dependencies of "readme" file at Sourcery.

Re: Compiling calibre

Posted: 19. Nov 2014, 18:22
by djemos
I said to look at the dep file to see what is missing. Calibre has a lot of deps.
version 1.11 exist on 14.1 salix repos and version 1.0 exist on slackel repos.
So you have to first install what is missing to be able to compile calibre.

It seems that you need chmlib package which exist on slackware/l 13.37

Re: Compiling calibre

Posted: 19. Nov 2014, 18:40
by ElderDryas
Salix 13.37 appears to have Calibre 0.7.45 (which is really really old) http://download.salixos.org/sbo/13.37/office/calibre/ .

I'd suggest grabbing the binaries from the calibre website (http://calibre-ebook.com/download_linux) and installing them (current calibre is 2.10.0), further down the page will tell you how to get and install older versions of calibre (I use 1.48, the 2.x versions have some font display issues for <me>).

This is the way I install and use calibre under salix, and have had NO problems with either calibre or it's dependencies (it's been a long while, but I think I remember doing this under 13.37 as well as 14.X).

Re: Compiling calibre

Posted: 19. Nov 2014, 18:45
by gapan
I don't think you can compile the newer calibre versions in 13.37. But alienbob provides packages for calibre 1.11 here:
http://taper.alienbase.nl/mirrors/peopl ... s/calibre/

You will also need the icu package from the salix repositories (which you probably already have) and the podofo package from alienbob's repo for 13.37 (or probably from sourcery):
http://taper.alienbase.nl/mirrors/peopl ... ds/podofo/

Re: Compiling calibre

Posted: 19. Nov 2014, 19:05
by ElderDryas
gapan wrote:I don't think you can compile the newer calibre versions in 13.37.
I<think> that calibre packages are binary (no compiling), but I did not think about all the dependency version differences between calibre and Salix 13.37. Mea Culpa. I'd try Alien Bob, as gapan so rightly posted.

Re: Compiling calibre

Posted: 19. Nov 2014, 19:23
by djemos
Also there is fbreader on salix 13.37 repos in case you could not compile calibre.

Re: Compiling calibre

Posted: 19. Nov 2014, 20:01
by Van_Vinkle
Thanks a lot to everybody who has tried to aid me.

I installed calibre from alien's repo, but despite the download and install were without error, the program did not work.

I've installed also fbreader and now all is smoothly.

Thanks again.

Van Vinkle.

Re: Compiling calibre

Posted: 19. Nov 2014, 20:33
by gapan
Van_Vinkle wrote:I installed calibre from alien's repo, but despite the download and install were without error, the program did not work.
What happens if you launch it from the terminal?

fbreader is a fine app if all you want to do is read ebooks. But calibre is much more than that.