Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2017, 04:03 AM   #1
tempura
Connoisseur
tempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipedia
 
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
Calibre and Qt5/GTK theming issues

I'm not sure if this is a Calibre issue or maybe a dependency issue. I recently upgraded to XUbuntu 17.10 which uses Qt 5.9. I have set the CALIBRE_USE_SYSTEM_THEME variable for calibre to use the Gtk/XFCE theme which in my case arc-theme. Note, all my other Qt5 applications including Qt5 Designer, work correctly while using the GTK theme.

A pure binary install from the script as provided on the website here: https://calibre-ebook.com/download_linux doesn't work. The theme is completely broken and there are parts of the menus which I can't access. I initially got this error on Calibre 3.0, and then I uninstalled that, and installed Calibre 3.12, both giving the same error on the system as:
Code:
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
Though, I tried a binary install from the Ubuntu repos for Calibre 3.7.0 which works perfectly fine, and adheres to the environment variable to use my GTK theme.

I hope this issue gets fixed sometime.

tempura

Last edited by tempura; 11-19-2017 at 04:08 AM.
tempura is offline   Reply With Quote
Old 11-19-2017, 05:05 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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's not possible to fix. Basically Qt themeing only reliably works if you use the system Qt, which the binary calibre acnnot use. So either use your distro provided calibre or use the official binary and no Qt themeing.
kovidgoyal is offline   Reply With Quote
Old 11-19-2017, 06:20 AM   #3
tempura
Connoisseur
tempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipedia
 
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
Quote:
Originally Posted by kovidgoyal View Post
It's not possible to fix. Basically Qt themeing only reliably works if you use the system Qt, which the binary calibre acnnot use. So either use your distro provided calibre or use the official binary and no Qt themeing.
Ugh, I was hoping it wasn't this. Oh well, at least my distro changes happens in 6 months, the same should persist over the next period of updates. Thanks for trying.

Just a minor note from my side, which leaves me puzzled is that how did it work with Qt 5.7 on Ubuntu 17.04. Just wondering is all, this probably does not require a answer.
tempura is offline   Reply With Quote
Old 11-19-2017, 06:51 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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's complicated, the involved libraries are not just Qt but also glib, gobject, etc. Only if the Qt versions are compatible and the glib versions are compatible and the versions of a dozen other libraries are compatible will binary themeing work.
kovidgoyal is offline   Reply With Quote
Old 11-19-2017, 07:14 AM   #5
tempura
Connoisseur
tempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipedia
 
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
That makes sense, in a way. Thanks for answering, @kovid
tempura is offline   Reply With Quote
Old 03-19-2018, 01:19 AM   #6
icq70610
Enthusiast
icq70610 will become famous soon enoughicq70610 will become famous soon enoughicq70610 will become famous soon enoughicq70610 will become famous soon enoughicq70610 will become famous soon enoughicq70610 will become famous soon enough
 
icq70610's Avatar
 
Posts: 49
Karma: 510
Join Date: Sep 2008
Device: PSR505
Hi all, kovid

not to necrobump - but that has been a topic that intruiged me for quite some time. just to roll a couple of Ideas here - no intend to ask for a dev change ..but some ideas.

1) if we use the binary version of calibre it will use the internal styling and as I can see from the previous post there is no way to change that except using the distro provided package, and i get the reason ... truly i get it ;-)

2) can we:

a) include at least the 2 major "styles" adwaita and breeze in a selection box - even on specific CALIBRE_QT_THEME variable in the binary release?

export CALIBRE_QT_THEME="awaita"
export CALIBRE_QT_THEME="breeze"

that would incorporate the style nicely with 80% (guess) of the desktops and still using the uptodate version of calibre

b) piggy back on the idea like the icon sets? something similar to "download" a QT style and apply?
so we could for a majority of themeing at the various distros solve that point.

since I dont have a win box I dont know how calibre currently loks on Win10 but I assume simlar behaviour there.

what you guys think?

\Pete
icq70610 is offline   Reply With Quote
Old 09-02-2019, 08:13 PM   #7
Dan__
Connoisseur
Dan__ began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
Question about QT themeing

Hi,
I'm on Fedora 30. Just installed calibre with the suggested wget.
When running calibre I too get the message:
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.

I have no interest in themes.
It is suggested to run calibre with no QT themeing.

I am QT ignorant so please explain how to do that.

Thank you,
Dan
Dan__ is offline   Reply With Quote
Old 09-02-2019, 10:06 PM   #8
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That message is harmless,it just means Qt fallsback to its native theme, fusion.
kovidgoyal is offline   Reply With Quote
Old 09-02-2019, 10:48 PM   #9
Dan__
Connoisseur
Dan__ began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
Thanks

Thank you
Dan__ is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 3 not applying GTK theme (Linux Mint) armaggedon51 Calibre 6 06-17-2017 10:53 AM
Plugins, Qt4, Qt5, and Calibre 2.x JSWolf Plugins 1 08-29-2014 09:08 AM
Theming the Calibre content server look? khahoon Calibre 0 07-21-2013 11:32 PM
QT5 and image height Turtle91 Sigil 23 02-21-2013 01:44 PM
Gtk frontend for Calibre nbdarvin Calibre 6 05-06-2010 12:51 PM


All times are GMT -4. The time now is 03:49 AM.


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