View Single Post
Old 10-18-2010, 05:16 PM   #1
michaelbn
Junior Member
michaelbn began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Feb 2010
Device: Sony PRS-600
calibre on opensuse 11.3 with KDE 4.5.2

Hi there,
I recently installed opensuse 11.3 with kde 4.4. on my new computer. On this ocasion I also installed calbre from the oss repositories. It worked fine, but after changing to KDE 4.5.2 ist stopped working. So I uninstalled it and tried to build it from source (with wget -O- http://status.calibre-ebook.com/dist/src | tar xvz). I had to resolve some dependencies but now I am stuck:
when I do
python setup.py install
I get the following:

*
* Running build
*


####### Building extension chmlib #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -pthread -I/usr/include/python2.6 -DSWIG_COBJECT_TYPES -c /root/calibre/src/calibre/utils/chm/swig_chm.c -o /root/calibre/build/objects/chmlib/swig_chm.o
/root/calibre/src/calibre/utils/chm/swig_chm.c: In function ‘SWIG_ConvertPtr’:
/root/calibre/src/calibre/utils/chm/swig_chm.c:450:6: warning: suggest explicit braces to avoid ambiguous ‘else’
/root/calibre/src/calibre/utils/chm/swig_chm.c: At top level:
/root/calibre/src/calibre/utils/chm/swig_chm.c:681:21: fatal error: chm_lib.h: No such file or directory
compilation terminated.
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 "/root/calibre/setup/__init__.py", line 159, in run_all
self.run_cmd(self, opts)
File "/root/calibre/setup/__init__.py", line 152, in run_cmd
self.run_cmd(scmd, opts)
File "/root/calibre/setup/__init__.py", line 155, in run_cmd
cmd.run(opts)
File "/root/calibre/setup/extensions.py", line 271, in run
self.build(ext, dest)
File "/root/calibre/setup/extensions.py", line 312, in build
subprocess.check_call(cmd)
File "/usr/lib64/python2.6/subprocess.py", line 498, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-pthread', '-I/usr/include/python2.6', '-DSWIG_COBJECT_TYPES', '-c', '/root/calibre/src/calibre/utils/chm/swig_chm.c', '-o', '/root/calibre/build/objects/chmlib/swig_chm.o']' returned non-zero exit status 1

I am afraid I don't understand what went wrong.
Thanks in advance for any hint.
Michael
michaelbn is offline   Reply With Quote