I am trying to build calibre from source (impatient to try a fix for my problem:
https://www.mobileread.com/forums/sho....php?p=3111149) on Ubuntu 15.04 but fail:
Code:
####### Building extension pictureflow #######
sip -w -c /home/drew/Zdroje_a_programy/Sources/calibre/build/pyqt/pictureflow -b /home/drew/Zdroje_a_programy/Sources/calibre/build/pyqt/pictureflow/pictureflow.sip.sbf -I/usr/share/sip/PyQt5 -x VendorID -t WS_X11 -t Qt_5_4_1 -x Py_v3 /home/drew/Zdroje_a_programy/Sources/calibre/src/calibre/gui2/pictureflow/pictureflow.sip
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o pictureflow.o ../../../src/calibre/gui2/pictureflow/pictureflow.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o sippictureflowcmodule.o sippictureflowcmodule.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o sippictureflowPictureFlow.o sippictureflowPictureFlow.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o sippictureflowFlowImages.o sippictureflowFlowImages.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. ../../../src/calibre/gui2/pictureflow/pictureflow.h -o moc_pictureflow.cpp
make: /usr/lib/x86_64-linux-gnu/qt4/bin/moc: Command not found
Makefile:197: recipe for target 'moc_pictureflow.cpp' failed
make: *** [moc_pictureflow.cpp] Error 127
make: *** Waiting for unfinished jobs....
In file included from ../../../src/calibre/gui2/pictureflow/pictureflow.cpp:59:0:
../../../src/calibre/gui2/pictureflow/pictureflow.h:60:19: fatal error: QWidget: No such file or directory
#include <QWidget>
^
compilation terminated.
Makefile:219: recipe for target 'pictureflow.o' failed
make: *** [pictureflow.o] Error 1
In file included from sippictureflowPictureFlow.cpp:7:0:
sipAPIpictureflow.h:13:21: fatal error: QMetaType: No such file or directory
#include <QMetaType>
^
compilation terminated.
In file included from sippictureflowFlowImages.cpp:7:0:
sipAPIpictureflow.h:13:21: fatal error: QMetaType: No such file or directory
#include <QMetaType>
^
In file included from sippictureflowcmodule.cpp:7:0:
sipAPIpictureflow.h:13:21: fatal error: QMetaType: No such file or directory
#include <QMetaType>
^
compilation terminated.
compilation terminated.
Makefile:225: recipe for target 'sippictureflowPictureFlow.o' failed
make: *** [sippictureflowPictureFlow.o] Error 1
Makefile:222: recipe for target 'sippictureflowcmodule.o' failed
make: *** [sippictureflowcmodule.o] Error 1
Makefile:228: recipe for target 'sippictureflowFlowImages.o' failed
make: *** [sippictureflowFlowImages.o] Error 1
Error while executing: make -j8
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 "/home/drew/Zdroje_a_programy/Sources/calibre/setup/__init__.py", line 181, in run_all
self.run_cmd(self, opts)
File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/__init__.py", line 175, in run_cmd
self.run_cmd(scmd, opts)
File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/__init__.py", line 178, in run_cmd
cmd.run(opts)
File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 422, in run
self.build(ext, dest)
File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 444, in build
return self.build_pyqt_extension(ext, dest)
File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 634, in build_pyqt_extension
self.check_call([make]+([] if iswindows else ['-j%d'%(cpu_count or 1)]))
File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 496, in check_call
subprocess.check_call(*args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j8']' returned non-zero exit status 2
I think I have all qt5 dev files installed:
Code:
dpkg --get-selections | grep qt |grep dev
pyqt5-dev install
pyqt5-dev-tools install
pyqt5.qsci-dev install
qtbase5-dev:amd64 install
qtbase5-dev-tools install
qtbase5-private-dev:amd64 install
Any idea?