![]() |
#1 |
Zealot
![]() Posts: 103
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
|
Compiling fails wiht not finding qt
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 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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont need to compile from source to run calibre from source
http://manual.calibre-ebook.com/develop.html |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() Posts: 103
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
|
Ah, I see. Now I admit I am confused as hell.
Code:
git clone git://github.com/kovidgoyal/calibre.git cd calibre/src CALIBRE_DEVELOP_FROM=`pwd` vim calibre/__init__.py # insert print("Hello, world!") somewhere near the top calibredb |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
export CALIBRE_DEVELOP_FROM=`pwd`
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() Posts: 103
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
|
Ah, thanks. Stupid me.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Are 2013 Kindles shipped wiht newer dictionaries? | avid01 | Amazon Kindle | 1 | 01-25-2014 10:39 AM |
Compiling for Lubuntu (regarding compiling instructions) | jgratero | Sigil | 5 | 07-15-2012 07:54 PM |
X-Compiling with Kindle | mpetersen3 | Kindle Developer's Corner | 14 | 01-06-2012 02:53 PM |
Problems compiling | unkilbeeg | Sigil | 1 | 09-13-2009 01:49 PM |
iLiad compiling Minimo | jtq | iRex Developer's Corner | 11 | 09-03-2007 05:33 AM |