Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2023, 12:50 PM   #1
knolle75
Member
knolle75 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2014
Device: Kindle PW5 (2021), Kindle KT2 (2014)
Unable to compile Calibre on a Raspberry 4 (RaspberryOS)

I am trying to build Calibre from source since after the distri upgrade to the latest v12 aka Bookworm (what a surprise ) no binary package is advised by the standard repositories.

This my current notebook where I worked around some road blocks:
Spoiler:

Build podofo from source
https://github.com/podofo/podofo

Install dependencies
sudo apt-get install -y libfontconfig1-dev libfreetype-dev libxml2-dev libssl-dev libjpeg-dev libpng-dev libtiff-dev libidn11-dev cmake

Clone the repository
git clone https://github.com/podofo/podofo.git

Run the build procedure
cd podofo
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build . --config Debug

Install locally
sudo make install

Build calibre from source
https://github.com/kovidgoyal/calibre

Install dependencies
sudo apt install -y libfreetype6 libhunspell-dev qmake6 libuchardet-dev python3-dev libhyphen-dev libicu-dev libsqlite3-dev libstemmer-dev libusb-1.0-0-dev libmtp-dev pyqt6-dev sip-dev python3-pyqt6 python3-pyqt6.sip pkgconf python-is-python3 python3 g++ git

Clone the repository
git clone https://github.com/kovidgoyal/bypy.git
git clone https://github.com/kovidgoyal/calibre.git

Run the build procedure
cd calibre/
export PODOFO_INC_DIR=/usr/local/include/podofo
python3 setup.py install


However, I am stuck at this point:
-c: /home/nico/calibre/build/pyqt/rcc_backend/rcc.sip: line 19: column 9: 'QtCore/QtCoremod.sip' could not be found

Full log:
Spoiler:

*
* Running build
*

Building 27 extensions
Compiling 37 files...
g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++11 -I/usr/include/hunspell -c /home/nico/calibre/src/calibre/utils/spell/hunspell_wrapper.cpp -o /home/nico/calibre/build/objects/hunspell/hunspell_wrapper.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -std=c99 -c /home/nico/calibre/src/calibre/utils/hyphenation/hyphen.c -o /home/nico/calibre/build/objects/hyphen/hyphen.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/usr/include/uchardet -c /home/nico/calibre/src/calibre/ebooks/uchardet.c -o /home/nico/calibre/build/objects/uchardet/uchardet.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -std=c99 -c /home/nico/calibre/src/unicode_names/unicode_names.c -o /home/nico/calibre/build/objects/unicode_names/unicode_names.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/utils/speedup.c -o /home/nico/calibre/build/objects/speedup/speedup.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/utils/certgen.c -o /home/nico/calibre/build/objects/certgen/certgen.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/gui2/tweak_book/editor/syntax/html.c -o /home/nico/calibre/build/objects/html_syntax_highlighter/html.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/tinycss/tokenizer.c -o /home/nico/calibre/build/objects/tokenizer/tokenizer.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c -o /home/nico/calibre/build/objects/_patiencediff_c/_patiencediff_c.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/utils/icu.c -o /home/nico/calibre/build/objects/icu/icu.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/utils/matcher.c -o /home/nico/calibre/build/objects/matcher/matcher.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/library/sqlite_custom.c -o /home/nico/calibre/build/objects/sqlite_custom/sqlite_custom.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++14 -c /home/nico/calibre/src/calibre/db/sqlite_extension.cpp -o /home/nico/calibre/build/objects/sqlite_extension/sqlite_extension.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/home/nico/calibre/src/calibre/utils/lzx -c /home/nico/calibre/src/calibre/utils/lzx/lzxmodule.c -o /home/nico/calibre/build/objects/lzx/lzxmodule.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/home/nico/calibre/src/calibre/utils/lzx -c /home/nico/calibre/src/calibre/utils/lzx/lzxc.c -o /home/nico/calibre/build/objects/lzx/lzxc.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/home/nico/calibre/src/calibre/utils/lzx -c /home/nico/calibre/src/calibre/utils/lzx/lzc.c -o /home/nico/calibre/build/objects/lzx/lzc.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/home/nico/calibre/src/calibre/utils/lzx -c /home/nico/calibre/src/calibre/utils/lzx/lzxd.c -o /home/nico/calibre/build/objects/lzx/lzxd.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/home/nico/calibre/src/calibre/utils/lzx -c /home/nico/calibre/src/calibre/utils/lzx/compressor.c -o /home/nico/calibre/build/objects/lzx/compressor.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -I/usr/include/libpng16 -I/usr/include/freetype2 -c /home/nico/calibre/src/calibre/utils/fonts/freetype.cpp -o /home/nico/calibre/build/objects/freetype/freetype.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/home/nico/calibre/src/calibre/utils/msdes -c /home/nico/calibre/src/calibre/utils/msdes/msdesmodule.c -o /home/nico/calibre/build/objects/msdes/msdesmodule.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -I/home/nico/calibre/src/calibre/utils/msdes -c /home/nico/calibre/src/calibre/utils/msdes/des.c -o /home/nico/calibre/build/objects/msdes/des.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/ebooks/compression/palmdoc.c -o /home/nico/calibre/build/objects/cPalmdoc/palmdoc.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/ebooks/djvu/bzzdecoder.c -o /home/nico/calibre/build/objects/bzzdec/bzzdecoder.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/doc.cpp -o /home/nico/calibre/build/objects/podofo/doc.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/output.cpp -o /home/nico/calibre/build/objects/podofo/output.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/utils.cpp -o /home/nico/calibre/build/objects/podofo/utils.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/outline.cpp -o /home/nico/calibre/build/objects/podofo/outline.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/podofo.cpp -o /home/nico/calibre/build/objects/podofo/podofo.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/impose.cpp -o /home/nico/calibre/build/objects/podofo/impose.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/outlines.cpp -o /home/nico/calibre/build/objects/podofo/outlines.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/images.cpp -o /home/nico/calibre/build/objects/podofo/images.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++17 -I/usr/local/include -I/usr/local/include/podofo -c /home/nico/calibre/src/calibre/utils/podofo/fonts.cpp -o /home/nico/calibre/build/objects/podofo/fonts.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++11 -c /home/nico/calibre/src/calibre/srv/html_as_json.cpp -o /home/nico/calibre/build/objects/html_as_json/html_as_json.o

g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++14 -I/home/nico/calibre/src/perfect-hashing -c /home/nico/calibre/src/calibre/srv/fast_css_transform.cpp -o /home/nico/calibre/build/objects/fast_css_transform/fast_css_transform.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/devices/libusb/libusb.c -o /home/nico/calibre/build/objects/libusb/libusb.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/devices/mtp/unix/libmtp.c -o /home/nico/calibre/build/objects/libmtp/libmtp.o

gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.11 '-DCALIBRE_MODINIT_FUNC= __attribute__ ((visibility ("default"))) PyObject*' -c /home/nico/calibre/src/calibre/devices/mtp/unix/devices.c -o /home/nico/calibre/build/objects/libmtp/devices.o

Linking 23 files...
g++ /home/nico/calibre/build/objects/hunspell/hunspell_wrapper.o -o /home/nico/calibre/src/calibre/plugins/hunspell.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib -lhunspell-1.7

gcc /home/nico/calibre/build/objects/hyphen/hyphen.o -o /home/nico/calibre/src/calibre/plugins/hyphen.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lhyphen

gcc /home/nico/calibre/build/objects/uchardet/uchardet.o -o /home/nico/calibre/src/calibre/plugins/uchardet.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib -luchardet

gcc /home/nico/calibre/build/objects/unicode_names/unicode_names.o -o /home/nico/calibre/src/calibre/plugins/unicode_names.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

gcc /home/nico/calibre/build/objects/speedup/speedup.o -o /home/nico/calibre/src/calibre/plugins/speedup.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm

gcc /home/nico/calibre/build/objects/certgen/certgen.o -o /home/nico/calibre/src/calibre/plugins/certgen.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lcrypto

gcc /home/nico/calibre/build/objects/html_syntax_highlighter/html.o -o /home/nico/calibre/src/calibre/plugins/html_syntax_highlighter.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

gcc /home/nico/calibre/build/objects/tokenizer/tokenizer.o -o /home/nico/calibre/src/calibre/plugins/tokenizer.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

gcc /home/nico/calibre/build/objects/_patiencediff_c/_patiencediff_c.o -o /home/nico/calibre/src/calibre/plugins/_patiencediff_c.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

gcc /home/nico/calibre/build/objects/icu/icu.o -o /home/nico/calibre/src/calibre/plugins/icu.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -licudata -licui18n -licuuc -licuio

gcc /home/nico/calibre/build/objects/matcher/matcher.o -o /home/nico/calibre/src/calibre/plugins/matcher.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -licudata -licui18n -licuuc -licuio

gcc /home/nico/calibre/build/objects/sqlite_custom/sqlite_custom.o -o /home/nico/calibre/src/calibre/plugins/sqlite_custom.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

g++ /home/nico/calibre/build/objects/sqlite_extension/sqlite_extension.o -o /home/nico/calibre/src/calibre/plugins/sqlite_extension.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -licudata -licui18n -licuuc -licuio -lstemmer

gcc /home/nico/calibre/build/objects/lzx/lzxmodule.o /home/nico/calibre/build/objects/lzx/lzxc.o /home/nico/calibre/build/objects/lzx/lzc.o /home/nico/calibre/build/objects/lzx/lzxd.o /home/nico/calibre/build/objects/lzx/compressor.o -o /home/nico/calibre/src/calibre/plugins/lzx.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

g++ /home/nico/calibre/build/objects/freetype/freetype.o -o /home/nico/calibre/src/calibre/plugins/freetype.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib -lfreetype

gcc /home/nico/calibre/build/objects/msdes/msdesmodule.o /home/nico/calibre/build/objects/msdes/des.o -o /home/nico/calibre/src/calibre/plugins/msdes.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

gcc /home/nico/calibre/build/objects/cPalmdoc/palmdoc.o -o /home/nico/calibre/src/calibre/plugins/cPalmdoc.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

gcc /home/nico/calibre/build/objects/bzzdec/bzzdecoder.o -o /home/nico/calibre/src/calibre/plugins/bzzdec.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

g++ /home/nico/calibre/build/objects/podofo/doc.o /home/nico/calibre/build/objects/podofo/output.o /home/nico/calibre/build/objects/podofo/utils.o /home/nico/calibre/build/objects/podofo/outline.o /home/nico/calibre/build/objects/podofo/podofo.o /home/nico/calibre/build/objects/podofo/impose.o /home/nico/calibre/build/objects/podofo/outlines.o /home/nico/calibre/build/objects/podofo/images.o /home/nico/calibre/build/objects/podofo/fonts.o -o /home/nico/calibre/src/calibre/plugins/podofo.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/home/nico/sw/lib -lpodofo

g++ /home/nico/calibre/build/objects/html_as_json/html_as_json.o -o /home/nico/calibre/src/calibre/plugins/html_as_json.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

g++ /home/nico/calibre/build/objects/fast_css_transform/fast_css_transform.o -o /home/nico/calibre/src/calibre/plugins/fast_css_transform.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

gcc /home/nico/calibre/build/objects/libusb/libusb.o -o /home/nico/calibre/src/calibre/plugins/libusb.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lusb-1.0

gcc /home/nico/calibre/build/objects/libmtp/libmtp.o /home/nico/calibre/build/objects/libmtp/devices.o -o /home/nico/calibre/src/calibre/plugins/libmtp.so -Wall -shared -L/usr/lib/arm-linux-gnueabihf -lpython3.11 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lmtp

SIPing 4 files...
/usr/bin/python3 -c 'from sipbuild.tools.build import main; main();' --verbose --no-make --qmake /usr/bin/qmake6
Querying qmake about your Qt installation...
/usr/bin/qmake6 -query
These bindings will be built: rcc_backend.
Generating the rcc_backend bindings...
-c: /home/nico/calibre/build/pyqt/rcc_backend/rcc.sip: line 19: column 9: 'QtCore/QtCoremod.sip' could not be found


Any advise please.
knolle75 is offline   Reply With Quote
Old 11-27-2023, 10:09 PM   #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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre comes with prebuilt arm and intel 64 bit binaries. You dont need to build from source.
kovidgoyal is offline   Reply With Quote
Old 11-28-2023, 07:35 AM   #3
knolle75
Member
knolle75 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2014
Device: Kindle PW5 (2021), Kindle KT2 (2014)
Quote:
Originally Posted by kovidgoyal View Post
calibre comes with prebuilt arm and intel 64 bit binaries. You dont need to build from source.
Thanks for the fast response, however please consider the the OS being 32bit, as the original Raspberry OS (based on Debian) still is. This is running on a ARMv7, aka armv7l.
knolle75 is offline   Reply With Quote
Old 11-28-2023, 07:41 AM   #4
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I am pretyt sure the RPI4 supports 64 bit OSes. As for your error it means the PyQt6 sip files are not installed.
kovidgoyal is offline   Reply With Quote
Old 11-28-2023, 10:04 AM   #5
knolle75
Member
knolle75 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2014
Device: Kindle PW5 (2021), Kindle KT2 (2014)
I dont decline that, only saying the current Raspberry OS is a 32bit, which is the reason I am looking to the from-source installation.

For the presence of the missed file, I would expect the existing files will detected some how.
Code:
nico@raspi01:~/calibre$ dpkg -S QtCoremod.sip
pyqt6-dev: /usr/lib/python3/dist-packages/PyQt6/bindings/QtCore/QtCoremod.sip

nico@raspi01:~/calibre$ find /usr -name QtCoremod.sip
/usr/lib/python3/dist-packages/PyQt6/bindings/QtCore/QtCoremod.sip
knolle75 is offline   Reply With Quote
Old 11-28-2023, 09:20 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Considering that the currently, QT does not supply 32-bit binaries for QT6, compiling calibre versions 6/7 is going to require you to build your own 32-bit version or find one of the few distros that include a pre-built 32-bit QT (I vaguely remember seeing one for Debian but not certain what the CPU support was).

It might be easier to install the 64-bit version of Raspberry Pi OS which has been around since early 2020.
Attached Thumbnails
Click image for larger version

Name:	raspios_64.png
Views:	32
Size:	46.1 KB
ID:	204967  

Last edited by DNSB; 11-28-2023 at 09:25 PM.
DNSB is offline   Reply With Quote
Old 11-29-2023, 03:16 AM   #7
rantanplan
Guru
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 623
Karma: 8592298
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Paperwhite (2021), Boox Note Air 2+, Kobo Clara 2E, Tolino Vision 6
Quote:
Originally Posted by knolle75 View Post
I dont decline that, only saying the current Raspberry OS is a 32bit, which is the reason I am looking to the from-source installation.
It may be true that you have installed the 32-bit version, however here's the 64-bit of Raspberry OS:
https://www.raspberrypi.com/software...y-pi-os-64-bit
rantanplan is offline   Reply With Quote
Old 11-29-2023, 03:26 AM   #8
knolle75
Member
knolle75 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2014
Device: Kindle PW5 (2021), Kindle KT2 (2014)
Thank you @rantanplan and @DNSB. I hear what your saying and it seems, there is a task pending, to met some prerequisites.

Will add it to my backlog for now.
knolle75 is offline   Reply With Quote
Old 11-29-2023, 04:33 AM   #9
Fithaly
Junior Member
Fithaly began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2023
Device: none
mentions something about a missing file 'QtCore/QtCoremod.sip'. Double-check if that file is in the right place or if it's missing. Sometimes it's just a small mix-up causing this. Maybe try re-downloading the source files or checking if there's a typo in the file name. Hope this helps!
Fithaly is offline   Reply With Quote
Old 12-01-2023, 12:08 PM   #10
knolle75
Member
knolle75 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2014
Device: Kindle PW5 (2021), Kindle KT2 (2014)
The thing is, there is Python import statement but I am not clear which base directory it expects. Python or Qt are not my favorite programming languages.
knolle75 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre with Raspberry Pi 4 jjparker Devices 10 05-30-2023 05:27 PM
Calibre 6 and Raspberry Pi OS beedaddy Calibre 11 12-16-2022 10:54 PM
Calibre 4 for Raspberry Pi? ganymede Calibre 2 08-03-2020 10:31 PM
Calibre 3.39.1 Raspberry Pi B+ Who Alternative Devices 0 10-22-2019 11:10 AM
Calibre on Raspberry Pi ottischwenk Related Tools 8 03-01-2013 09:43 PM


All times are GMT -4. The time now is 01:46 PM.


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