*** 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
|