02-09-2018, 01:44 PM | #1 |
Junior Member
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 |
02-09-2018, 08:47 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You are mixing new and old Qt versions. See for example:
../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1497:13: error: ‘class QImage’ has no member named ‘setDevicePixelRatio’ IIRC setDevicePixelRatio was added to QImage as of version 5.6 or 5.5 |
Advert | |
|
02-10-2018, 06:22 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2013
Device: none
|
The solution was. I am install the package qt5-default.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WHATS UP EVERYONE | GREENEYESP13 | Introduce Yourself | 6 | 12-04-2012 02:27 PM |
Whats wrong - again - conversion to CE (cp 1250) | cistehovado | Conversion | 15 | 06-06-2011 07:53 PM |
The Robbery: A Short Story that goes wrong for all the wrong reasons | brinlingfm | Self-Promotions by Authors and Publishers | 0 | 03-22-2011 08:20 AM |
Dates wrong on scheduled news: what am I doing wrong? | Rod Laird | Calibre | 5 | 11-05-2010 06:06 PM |
MOBILEREAD WHATS UP!! | dirtylc | Introduce Yourself | 10 | 02-09-2009 02:09 PM |