![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2021
Device: none
|
Building Calibre
Hi
I'm trying to build but getting this error: ./setup.py install * * Running build * Building 25 extensions Compiling 15 files... g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/include/python3.9 -O3 -std=c++14 -DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject* -I/root/src/calibre-5.22.1/src/ -I/usr/include/libstemmer -c /root/src/calibre-5.22.1/src/calibre/db/sqlite_extension.cpp -o /root/src/calibre-5.22.1/build/objects/sqlite_extension/sqlite_extension.o /root/src/calibre-5.22.1/src/calibre/db/sqlite_extension.cpp:25:10: fatal error: libstemmer.h: No such file or directory 25 | #include <libstemmer.h> | ^~~~~~~~~~~~~~ compilation terminated. libstemmer.h is installed and can be found in /usr/include/libstemmer Does anyone have idea what is wrong? Regards |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,258
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre assumes libstemmer.h is in the default include path aka /usr/include
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2021
Device: none
|
I copied it to /usr/include and it compiled ok.
Thanks. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2021
Device: none
|
Compilation worked fine until 5.23 version. Then I'm getting error below.
File "/usr/lib/calibre/calibre/db/backend.py", line 1214, in user_version return self.conn.get('pragma user_version;', all=False) File "/usr/lib/calibre/calibre/db/backend.py", line 927, in conn self._conn = Connection(self.dbpath) File "/usr/lib/calibre/calibre/db/backend.py", line 342, in __init__ plugins.load_apsw_extension(self, 'sqlite_extension') File "/usr/lib/calibre/calibre/constants.py", line 325, in load_apsw_extension conn.enableloadextension(True) AttributeError: 'Connection' object has no attribute 'enableloadextension' I build and install apsw version from sources.json but still same error. What I'm missing? |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,374
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2021
Device: none
|
Compiled apsw with --enable-all-extensions and it works fine now.
Thanks. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building Calibre on Fedora 33 | komple | Development | 3 | 01-24-2021 11:58 AM |
Building Calibre on Honeycomb | phm92190 | Library Management | 5 | 12-21-2011 07:24 PM |
Building Calibre from source | al35 | Calibre | 3 | 03-24-2010 02:22 PM |
Having problems building calibre 0.15.4 | angevin | Calibre | 11 | 06-12-2009 07:54 PM |
Building calibre backend only? | jesse | Calibre | 2 | 03-15-2009 05:32 PM |