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-28-2021, 10:29 AM   #1
komple
Junior Member
komple began at the beginning.
 
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
komple is offline   Reply With Quote
Old 06-28-2021, 10:32 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,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
kovidgoyal is offline   Reply With Quote
Advert
Old 06-29-2021, 11:02 AM   #3
komple
Junior Member
komple began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2021
Device: none
I copied it to /usr/include and it compiled ok.
Thanks.
komple is offline   Reply With Quote
Old 07-14-2021, 02:46 PM   #4
komple
Junior Member
komple began at the beginning.
 
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?
komple is offline   Reply With Quote
Old 07-14-2021, 06:15 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,374
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
See https://bugs.launchpad.net/calibre/+bug/1935747
chaley is offline   Reply With Quote
Advert
Old 07-15-2021, 10:04 AM   #6
komple
Junior Member
komple began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2021
Device: none
Compiled apsw with --enable-all-extensions and it works fine now.
Thanks.
komple is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:39 AM.


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