Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-25-2021, 04:36 AM   #1
thyworld
Junior Member
thyworld began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2021
Device: none
Unhappy Error in building Calibre on ubuntu

Hi
I'm trying to build Cabilre from scratch by following instructions in
https://github.com/kovidgoyal/calibr...ypy/README.rst

I'm stuck with the below error for 2 days now
Spoiler:

Building 25 extensions
SIPing 3 files...
/usr/bin/python3 -c from sipbuild.tools.build import main; main(); --verbose --no-make --qmake /usr/bin/qmake
Querying qmake about your Qt installation...
/usr/bin/qmake -query
These bindings will be built: pictureflow.
Generating the pictureflow bindings...
-c: Unable to find file "QtWidgets/QtWidgetsmod.sip"


I have uninstall qmake-qt5 and reinstalled
I have installed and uninstalled PyQt5 umpteen times in all possible ways
I have even tried reinstalling everything on a new system, all leading to this error

I have even tried copying QtWidgets to various qt5 folders, no success

/usr/bin/qmake -query ; returns the below

QT_SYSROOT:
QT_INSTALL_PREFIX:/usr
QT_INSTALL_ARCHDATA:/usr/lib/x86_64-linux-gnu/qt5
QT_INSTALL_DATA:/usr/share/qt5
QT_INSTALL_DOCS:/usr/share/qt5/doc
QT_INSTALL_HEADERS:/usr/include/x86_64-linux-gnu/qt5
QT_INSTALL_LIBS:/usr/lib/x86_64-linux-gnu
QT_INSTALL_LIBEXECS:/usr/lib/x86_64-linux-gnu/qt5/libexec
QT_INSTALL_BINS:/usr/lib/qt5/bin
QT_INSTALL_TESTS:/usr/tests
QT_INSTALL_PLUGINS:/usr/lib/x86_64-linux-gnu/qt5/plugins
QT_INSTALL_IMPORTS:/usr/lib/x86_64-linux-gnu/qt5/imports
QT_INSTALL_QML:/usr/lib/x86_64-linux-gnu/qt5/qml
QT_INSTALL_TRANSLATIONS:/usr/share/qt5/translations
QT_INSTALL_CONFIGURATION:/etc/xdg
QT_INSTALL_EXAMPLES:/usr/lib/x86_64-linux-gnu/qt5/examples
QT_INSTALL_DEMOS:/usr/lib/x86_64-linux-gnu/qt5/examples
QT_HOST_PREFIX:/usr
QT_HOST_DATA:/usr/lib/x86_64-linux-gnu/qt5
QT_HOST_BINS:/usr/lib/qt5/bin
QT_HOST_LIBS:/usr/lib/x86_64-linux-gnu
QMAKE_SPEC:linux-g++
QMAKE_XSPEC:linux-g++
QMAKE_VERSION:3.1
QT_VERSION:5.12.8


qmake --version
QMake version 3.1
Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu


find / -name QtWidgetsmod.sip
/usr/local/lib/python3.8/dist-packages/PyQt5/bindings/QtWidgets/QtWidgetsmod.sip


Don't understand why I'm getting this error, Any help on this please.....

Last edited by theducks; 06-25-2021 at 08:48 PM. Reason: spoilered
thyworld is offline   Reply With Quote
Old 06-25-2021, 05:36 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those instructions are for building inside a container. If you actually follow the instructions you will be fine.

./setup.py build_dep linux
./setup.py linux64
kovidgoyal is offline   Reply With Quote
Advert
Old 06-25-2021, 05:47 AM   #3
thyworld
Junior Member
thyworld began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2021
Device: none
oh, so we don't have to run "./setup.py bootstrap" after cloning the source?
thyworld is offline   Reply With Quote
Old 06-25-2021, 07:12 AM   #4
thyworld
Junior Member
thyworld began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2021
Device: none
The dependencies were built successfully.

When I run python3 setup.py linux

I get the below error.

sudo mount /dev/mapper/elib/calibre/bypy/b/linux/64/chroot.img /dev/mapper/elib/calibre/bypy/b/linux/64/chroot
in-chroot python3.7 /bypy main /dev/mapper/elib/bypy program --sign-installers --notarize --compression-level=9
linux64: python3.7: No such file or directory

I have uninstalled python3.8, installed3.7 and still the same error.

Any specific place I have to create a directory? Kindly help me in this...
thyworld is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building 0.9.3 on Ubuntu 14.04 seanos Sigil 10 03-15-2016 03:29 PM
Problem building Calibre from source on Ubuntu 10.10 rozen Calibre 1 03-28-2011 02:02 AM
Error Building on Ubuntu from latest Bazaar Source RoninTech Calibre 5 04-09-2010 10:01 PM
Problem building openinkpot on Ubuntu 9.04 nseger OpenInkpot 3 08-23-2009 04:51 AM
Issues building Madshelf on Ubuntu migge OpenInkpot 1 08-22-2009 07:59 PM


All times are GMT -4. The time now is 09:53 AM.


MobileRead.com is a privately owned, operated and funded community.