View Single Post
Old 02-09-2018, 01:44 PM   #1
kbdcalls
Junior Member
kbdcalls began at the beginning.
 
kbdcalls's Avatar
 
Posts: 5
Karma: 10
Join Date: Dec 2013
Device: none
Whats wrong here ?

####### Building extension pictureflow #######
sip -w -c /usr/src/0002-calibre/calibre-3.17.0/build/pyqt/pictureflow -b /usr/src/0002-calibre/calibre-3.17.0/build/pyqt/pictureflow/pictureflow.sip.sbf -I/usr/share/sip/PyQt5 -x VendorID -t WS_X11 -t Qt_5_9_2 -x Py_v3 /usr/src/0002-calibre/calibre-3.17.0/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 -DQT_SHARED -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 -DQT_SHARED -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 -DQT_SHARED -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 -DQT_SHARED -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/share/sip/PyQt5/QtGui/qwindow.sip:26:10: fatal error: qwindow.h: Datei oder Verzeichnis nicht gefunden
#include <qwindow.h>
^~~~~~~~~~~
compilation terminated.
Makefile:229: die Regel für Ziel „sippictureflowPictureFlow.o“ scheiterte
make: *** [sippictureflowPictureFlow.o] Fehler 1
make: *** Es wird auf noch nicht beendete Prozesse gewartet...
/usr/share/sip/PyQt5/QtCore/qregularexpression.sip:26:10: fatal error: qregularexpression.h: Datei oder Verzeichnis nicht gefunden
#include <qregularexpression.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:232: die Regel für Ziel „sippictureflowFlowImages.o“ scheiterte
make: *** [sippictureflowFlowImages.o] Fehler 1
../../../src/calibre/gui2/pictureflow/pictureflow.cpp: In member function ‘qreal PictureFlow::device_pixel_ratio() const’:
../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1357:16: error: ‘devicePixelRatio’ was not declared in this scope
return (qreal)devicePixelRatio();
^~~~~~~~~~~~~~~~
../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1357:16: note: suggested alternative: ‘device_pixel_ratio’
return (qreal)devicePixelRatio();
^~~~~~~~~~~~~~~~
device_pixel_ratio
../../../src/calibre/gui2/pictureflow/pictureflow.cpp: In member function ‘virtual void PictureFlow:aintEvent(QPaintEvent*)’:
../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1496:25: error: ‘class QImage’ has no member named ‘devicePixelRatio’
qreal dpr = d->buffer.devicePixelRatio();
^~~~~~~~~~~~~~~~
../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1497:13: error: ‘class QImage’ has no member named ‘setDevicePixelRatio’
d->buffer.setDevicePixelRatio(device_pixel_ratio() );
^~~~~~~~~~~~~~~~~~~
../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1500:13: error: ‘class QImage’ has no member named ‘setDevicePixelRatio’
d->buffer.setDevicePixelRatio(dpr);
^~~~~~~~~~~~~~~~~~~
Makefile:223: die Regel für Ziel „pictureflow.o“ scheiterte
make: *** [pictureflow.o] Fehler 1
Error while executing: make -j4

Traceback (most recent call last):
File "setup.py", line 119, in <module>
sys.exit(main())
File "setup.py", line 104, in main
command.run_all(opts)
File "/usr/src/0002-calibre/calibre-3.17.0/setup/__init__.py", line 236, in run_all
self.run_cmd(self, opts)
File "/usr/src/0002-calibre/calibre-3.17.0/setup/__init__.py", line 232, in run_cmd
cmd.run(opts)
File "/usr/src/0002-calibre/calibre-3.17.0/setup/build.py", line 268, in run
self.build(ext, dest)
File "/usr/src/0002-calibre/calibre-3.17.0/setup/build.py", line 291, in build
return self.build_pyqt_extension(ext, dest)
File "/usr/src/0002-calibre/calibre-3.17.0/setup/build.py", line 497, in build_pyqt_extension
self.check_call([self.env.make]+([] if iswindows else ['-j%d'%(cpu_count or 1)]))
File "/usr/src/0002-calibre/calibre-3.17.0/setup/build.py", line 342, in check_call
subprocess.check_call(*args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j4']' returned non-zero exit status 2

But package qtbase5-dev is installed.

I am using Debian testing/sid
kbdcalls is offline   Reply With Quote