Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Okular isnt opening any *.chm files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Wed Oct 07, 2020 3:52 pm    Post subject: Okular isnt opening any *.chm files Reply with quote

Hello. i have okular 20.04.3 versio installed with the "+chm" flag enabled but it doesn open any chm files it says "Cannot find plugin" when i`m trying to open. I`ve looked at Settings - Plugins and there was no chm plugin indeed. Then i`ve tried to re-build okular (in case something was missed during the updates), but that wont help too. Whats wrong how can i make it open these files?
Back to top
View user's profile Send private message
wjb
Guru
Guru


Joined: 10 Jul 2005
Posts: 446
Location: Fife, Scotland

PostPosted: Wed Oct 07, 2020 7:49 pm    Post subject: Reply with quote

Just tried this (seems some packages have installed chm files, which I never noticed before) , and got the same result, but I didn't have +chm. Rebuilt with with +chm, and then it did work for me (on mostly stable).

Have you got dev-libs/chmlib installed, which does the work as far as I can tell and should be getting pulled in by Okular with the chm flag set.

Alternatively, app-text/xchm seems to work and looks scarily like the htmlhelp viewer from the other OS ...
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Wed Oct 07, 2020 9:15 pm    Post subject: Reply with quote

wjb wrote:
Just tried this (seems some packages have installed chm files, which I never noticed before) , and got the same result, but I didn't have +chm. Rebuilt with with +chm, and then it did work for me (on mostly stable).

Have you got dev-libs/chmlib installed, which does the work as far as I can tell and should be getting pulled in by Okular with the chm flag set.

Alternatively, app-text/xchm seems to work and looks scarily like the htmlhelp viewer from the other OS ...


Yes i have that chmlib installed. I even reinstalled it right now, but still nothing changed. About the alternatives yes i`ve found the kchmview program for that, but i prefer to have one multi-purpose program rather than a load of single-purpose programs. If lesser programs are installed, means lesser dependencies for them, so the lesser possibility that something goes wrong someday.
Back to top
View user's profile Send private message
wjb
Guru
Guru


Joined: 10 Jul 2005
Posts: 446
Location: Fife, Scotland

PostPosted: Wed Oct 07, 2020 11:55 pm    Post subject: Reply with quote

Maybe try logging in as a different user, or just remove the okular related stuff under ~/.config and ~/.local/share.

On my setup, the Okular installation has the following files with 'chm' in the name (
Code:

# equery files okular | grep -i chm
/usr/lib64/qt5/plugins/okular/generators/okularGenerator_chmlib.so
/usr/share/applications/okularApplication_chm.desktop
/usr/share/applications/org.kde.mobile.okular_chm.desktop
/usr/share/kservices5/okularChm.desktop
/usr/share/locale/..../LC_MESSAGES/okular_chm.mo    --- translations, lots
/usr/share/metainfo/org.kde.okular-chm.metainfo.xml
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Thu Oct 08, 2020 12:31 pm    Post subject: Reply with quote

wjb wrote:

Code:

# equery files okular | grep -i chm
/usr/lib64/qt5/plugins/okular/generators/okularGenerator_chmlib.so


I dont have that one. The only thing equery had found is
Code:

$ equery files okular | grep -i chm
/usr/share/locale/ru/LC_MESSAGES/okular_chm.mo


What should i do to put it back?
Back to top
View user's profile Send private message
wjb
Guru
Guru


Joined: 10 Jul 2005
Posts: 446
Location: Fife, Scotland

PostPosted: Fri Oct 09, 2020 8:33 am    Post subject: Reply with quote

Although you said you have the chm useflag set, it doesn't look like the installed s/w has been built with it

You need this to be in your package.use:
Code:
kde-apps/okular chm


And then you need Okular to be built:
Code:
# emerge -1 okular
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Fri Oct 09, 2020 2:23 pm    Post subject: Reply with quote

wjb wrote:
Although you said you have the chm useflag set, it doesn't look like the installed s/w has been built with it

You need this to be in your package.use:
Code:
kde-apps/okular chm


And then you need Okular to be built:
Code:
# emerge -1 okular


That flag was set and i even reibuilt okular but still nothing changes.
Back to top
View user's profile Send private message
wjb
Guru
Guru


Joined: 10 Jul 2005
Posts: 446
Location: Fife, Scotland

PostPosted: Fri Oct 09, 2020 2:43 pm    Post subject: Reply with quote

I just tried emerging okular without the chm flag, and the okularGenerator_chmlib.so file was not built this time so its presence definitely depends on the chm flag.

To verify how portage actually sees the chm flag state for okular
Code:
# equery uses okular"


should see chm with two "+".

Also worth checking what the USE variable in make.conf contains.

EDIT: because wasn't happy with the first attempt.


Last edited by wjb on Fri Oct 09, 2020 11:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15985

PostPosted: Fri Oct 09, 2020 4:40 pm    Post subject: Reply with quote

Please post the output of emerge --pretend --verbose kde-apps/okular.
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Sat Oct 17, 2020 11:22 pm    Post subject: Reply with quote

wjb wrote:
I just tried emerging okular without the chm flag, and the okularGenerator_chmlib.so file was not built this time so its presence definitely depends on the chm flag.

To verify how portage actually sees the chm flag state for okular
Code:
# equery uses okular"


should see chm with two "+".

Also worth checking what the USE variable in make.conf contains.

EDIT: because wasn't happy with the first attempt.


Yes it is selected and with the double +

Code:
$ equery uses okular
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for kde-apps/okular-20.04.3:
 U I
 + + chm           : Enable support for Microsoft Compiled HTML Help filesEnable support for Microsoft Compiled HTML Help files
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Sat Oct 17, 2020 11:26 pm    Post subject: Reply with quote

Hu wrote:
Please post the output of emerge --pretend --verbose kde-apps/okular.


here is it

Code:
$ emerge --pretend --verbose kde-apps/okular

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] kde-apps/okular-20.04.3:5::gentoo  USE="chm crypt djvu handbook image-backend pdf postscript tiff -debug -epub -markdown -mobi -mobile -plucker -share -speech -test" 7 067 KiB

Total: 1 package (1 reinstall), Size of downloads: 7 067 KiB


PS Sorry for the late reply it seems that email notification didnt sent me emails when u ve posted your answers.
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Mon Oct 19, 2020 11:18 am    Post subject: Reply with quote

Solved. That plugin wasn't built because of the -examples flag set in the chmlib itself. I assumed that if I`m not a programmer so i never gonna need any examples of using chmlib, that`s why i`ve set such flag earlier. Now i`ve rebuilt the chmlib without that flag and then the okular itself. Everything is working fine now.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7960
Location: Austria

PostPosted: Mon Oct 19, 2020 12:34 pm    Post subject: Reply with quote

That's rather interesting.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1864

PostPosted: Mon Oct 19, 2020 12:48 pm    Post subject: Reply with quote

Indeed.
profile seems involved into the raise of that issue, if I understand correctly...
Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 592

PostPosted: Mon Oct 19, 2020 1:24 pm    Post subject: Reply with quote

Amon2501 wrote:
Solved. That plugin wasn't built because of the -examples flag set in the chmlib itself. I assumed that if I`m not a programmer so i never gonna need any examples of using chmlib, that`s why i`ve set such flag earlier. Now i`ve rebuilt the chmlib without that flag and then the okular itself. Everything is working fine now.

Yes and no. The upstream "examples" makes extra binaries (in addition to the libchm.so.0.0.0 library):
test_chmLib, enum_chmLib, enumdir_chmLib, chm_http and extract_chmLib
Therefore, it suggests that application is using one or more of these binaries.
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7960
Location: Austria

PostPosted: Mon Oct 19, 2020 2:15 pm    Post subject: Reply with quote

chm support in okular will soon be gone though, it is still tied to KHTML. https://tsdgeos.blogspot.com/2020/05/chmk-simple-chm-viewer.html
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 92

PostPosted: Mon Oct 19, 2020 5:10 pm    Post subject: Reply with quote

asturm wrote:
chm support in okular will soon be gone though, it is still tied to KHTML. https://tsdgeos.blogspot.com/2020/05/chmk-simple-chm-viewer.html


Are there any good replacements (for chm) then?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7960
Location: Austria

PostPosted: Thu Oct 22, 2020 6:00 pm    Post subject: Reply with quote

Amon2501 wrote:
Are there any good replacements (for chm) then?

kchmviewer depends on dev-qt/qtwebkit, which is also a dead package walking.
I guess eventually chmk will be packaged, after getting it ready upstream. I'm hoping sooner than later, only very few KHTML revdeps remain.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24653
Location: here

PostPosted: Thu Oct 22, 2020 6:06 pm    Post subject: Reply with quote

Amon2501 wrote:
Are there any good replacements (for chm) then?

You can try app-text/xchm, also calibre read chm but maybe isn't what you are looking for.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum