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 Yesterday, 09:52 AM   #1
jsky
Member
jsky began at the beginning.
 
jsky's Avatar
 
Posts: 16
Karma: 10
Join Date: May 2025
Device: kindle
How to solve: Could not find the Qt platform plugin "headless"

I am compiling Calibre on Ubuntu using the command
Code:
python3.14 setup.py bootstrap
, but I get an error that the Qt platform cannot find the headless plugin.
Code:
Compiling content-server translations
qt.qpa.plugin: Could not find the Qt platform plugin "headless" in "/root/calibre/src/calibre/plugins"
However, libheadless.so does exist in /root/calibre/src/calibre/plugins,
Code:
root@ubuntu-linux-2404:~/calibre/src/calibre/plugins# ls
bzzdec.so              html_as_json.so             libmtp.so           piper.so               sqlite_extension.so
certgen.so             html_syntax_highlighter.so  libusb.so           platforms              tokenizer.so
cPalmdoc.so            hunspell.so                 lzx.so              podofo.so              translator.so
fast_css_transform.so  hyphen.so                   matcher.so          progress_indicator.so  uchardet.so
fast_html_entities.so  icu.so                      msdes.so            rcc_backend.so         unicode_names.so
ffmpeg.so              imageops.so                 _patiencediff_c.so  speedup.so
freetype.so            libheadless.so              pictureflow.so      sqlite_custom.so
and I am not sure how to fix this.

the detail infos:
Code:
root@ubuntu-linux-2404:~/calibre# python3.14 setup.py bootstrap

*
* Running build
*

Package libonnxruntime was not found in the pkg-config search path.
Perhaps you should add the directory containing `libonnxruntime.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libonnxruntime', required by 'virtual:world', not found
Package libonnxruntime was not found in the pkg-config search path.
Perhaps you should add the directory containing `libonnxruntime.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libonnxruntime', required by 'virtual:world', not found
Package libonnxruntime was not found in the pkg-config search path.
Perhaps you should add the directory containing `libonnxruntime.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libonnxruntime', required by 'virtual:world', not found
Building 31 extensions
Compiling 3 files...
g++ -Wall -DNDEBUG -fno-strict-aliasing -pipe -O3 -fPIC -fvisibility=hidden -pthread -fdiagnostics-color=always -I/usr/local/include/python3.14 '-DCALIBRE_MODINIT_FUNC=extern "C" __attribute__ ((visibility ("default"))) PyObject*' -std=c++20 -I/root/calibre/src/calibre/utils/translator -c /root/calibre/src/calibre/utils/translator/plural_expression_parser.cpp -o /root/calibre/build/objects/translator/plural_expression_parser.o

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

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

Linking 1 files...
g++ /root/calibre/build/objects/translator/main.o /root/calibre/build/objects/translator/mo_parser.o /root/calibre/build/objects/translator/plural_expression_parser.o -o /root/calibre/src/calibre/plugins/translator.so -Wall -shared -L/usr/local/lib -lpython3.14 -Xlinker -export-dynamic


####### Building headless QPA plugin #######
* build took 1.1 seconds

*
* Running iso_data
*

* iso_data took 0.0 seconds

*
* Running iso639
*

Packing ISO-639 codes to /root/calibre/resources/localization/iso639.calibre_msgpack
* iso639 took 0.7 seconds

*
* Running iso_data
*

* iso_data took 0.0 seconds

*
* Running iso3166
*

Packing ISO-3166 codes to /root/calibre/resources/localization/iso3166.calibre_msgpack
* iso3166 took 0.0 seconds

*
* Running translations
*

Compiling main UI translation files...
	Compiling 0 files
Compiling ISO639 files...

____________________ WARNING ____________________
No ISO 639 translations for locale: nb
__________________________________________________
	Compiling 0 files
Compiling ISO3166 files...

____________________ WARNING ____________________
No ISO 3166 translations for locale: nb
__________________________________________________
	Compiling 0 files
Compiling content-server translations
qt.qpa.plugin: Could not find the Qt platform plugin "headless" in "/root/calibre/src/calibre/plugins"
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, vnc, minimalegl, eglfs, offscreen, minimal, vkkhrdisplay, wayland-brcm, wayland-egl, wayland, xcb.

已中止 (核心已转储)
jsky is offline   Reply With Quote
Old Yesterday, 09:59 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: 46,155
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
run with QT_DEBUG_PLUGINS=1
kovidgoyal is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 5.0.1 Could not load the Qt platform plugin "xcb" FIXED brown131 Calibre 61 08-12-2025 06:04 AM
A problem after "Find history" plugin instalation ichnilatis KOReader 3 09-19-2021 11:20 AM
Calibre 4.0 - qt.qpa.pluginCould not load the Qt platform plugin "xcb" in "" even tho PaceyIV Calibre 3 10-04-2019 08:58 PM
Multi-solve "no character data is allowed"? boksida Sigil 2 01-31-2013 03:19 PM
Headless Calibre-Server enable "Wireless device connection" mohataj Devices 11 10-11-2012 05:39 AM


All times are GMT -4. The time now is 10:11 AM.


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