kchmviewer

Utilities

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
6.5
Available as/for: -
Description:

KchmViewer is a chm (MS HTML help file format) viewer, written in C++. Unlike most existing CHM viewers for Unix, it uses Trolltech Qt widget library, and does not depend on KDE or Gnome. However, it may be compiled with full KDE support, including KDE widgets and KIO/KHTML.

The main advantage of KchmViewer is non-English language support. Unlike others, KchmViewer in most cases correctly detects help file encoding, correctly shows tables of context of Russian, Korean, Chinese and Japanese help files, and correctly searches in non-English help files (search for MBCS languages - ja/ko/ch is still in progress).

KchmViewer is written by George Yunaev, and is licensed under GNU GPL v3 license.

jonnymccullagh

14 years ago

I too have been unable to make with the same errors as described here by other users.

Report

bennyrascal

14 years ago

I can now see that my initial analysis was wrong KQPopupMenu is a type and not a class. It would appear to me that tr is a function but I can not find it declared anywhere. It is used in a few other files without any problem. Can anyone help?

Report

bennyrascal

14 years ago

Suse 10.1 make fails on kchmviewerwindow.cpp in KQPopupMenu * KCHMViewWindow::getContextMenu and KQPopupMenu * KCHMViewWindow::createListItemContextMenu.

i18n is referenced in both these functions and the compiler says tr is out of scope.

i18n is defined in kde-qt.h
#define i18n(A) tr(A)

Haven't coded C++ for almost 7 years so forgot how to give KQPopupMenu scope or i'd just fix my source.

Report

linux3114a

14 years ago

On SuSE 10.1 KDE 3.5.3
----------------------
Always the same error ! ! !


Good - your configure finished. Start make now

+ make -j 2
Making all in src
make[1]: Entering directory `/usr/src/packages/BUILD/kchmviewer-2.6/src'
make all-recursive
make[2]: Entering directory `/usr/src/packages/BUILD/kchmviewer-2.6/src'
Making all in pics
make[3]: Entering directory `/usr/src/packages/BUILD/kchmviewer-2.6/src/pics'
make[3]: Rien

Report

linux3114a

14 years ago

Your program works now , but the icon's are at the wrong place

joins the list
--------------
/crystalsvg
/crystalsvg/128x128
/crystalsvg/128x128/apps
/crystalsvg/128x128/apps/kchmviewer.png
/crystalsvg/48x48
/crystalsvg/48x48/apps
/crystalsvg/48x48/apps/kchmviewer.png
/crystalsvg/64x64
/crystalsvg/64x64/apps
/crystalsvg/64x64/apps/kchmviewer.png
/opt/kde3
/opt/kde3/bin
/opt/kde3/bin/kchmviewer

Report

linux3114a

14 years ago

kchmviewer-2.5-lotus.i586.rpm
at
http://home.tiscali.be/raoul.linux/downloadSuSE10.1.htm


ENJOY !!!

Report

linux3114a

14 years ago

Due waiting a long time for my problem with kchmviewer on Suse 10.1 , I have an alternative solution for Suse 10.1


xchm-1.8-1.i586.rpm
at
http://home.tiscali.be/raoul.linux/downloadSuSE10.1.htm


ENJOY !!!

Sorry for the owner !!!

Report

bitcrazy

14 years ago

Hi Raoul,
just delete KCHMIconStorage:: from line 60 in iconstorage.h and it will compile. Perhaps it's better to remove the admin dir and copy it over from /opt/kde3/share/apps/kdelibs/admin. There are files missing.

Greetings

m0nk

Report

linux3114a

14 years ago

error during make phase
-----------------------

make
Making all in chmlib
make[1]: Entering directory `/home/raoul/work/kchmviewer-2.5/chmlib'
cd .. && /bin/sh /home/raoul/work/kchmviewer-2.5/admin/missing --run automake-1.9 --gnu chmlib/Makefile
configure.in:15: version mismatch. This is Automake 1.9.6,
configure.in:15: but the definition used by this AM_INIT_AUTOMAKE
configure.in:15: comes from Automake 1.9.5. You should recreate
configure.in:15: aclocal.m4 with aclocal and run automake again.
make[1]: *** [Makefile.in] Erreur 1
make[1]: Leaving directory `/home/raoul/work/kchmviewer-2.5/chmlib'
make: *** [all-recursive] Erreur 1
raoul@linux:~/work/kchmviewer-2.5> aclocal
raoul@linux:~/work/kchmviewer-2.5> automake
raoul@linux:~/work/kchmviewer-2.5> make
cd . && rm -f configure
cd . && make -f admin/Makefile.common configure
make[1]: Entering directory `/home/raoul/work/kchmviewer-2.5'
make[1]: admin/Makefile.common: Aucun fichier ou répertoire de ce type
make[1]: *** Pas de règle pour fabriquer la cible « admin/Makefile.common ». Arrêt.
make[1]: Leaving directory `/home/raoul/work/kchmviewer-2.5'
make: *** [configure] Erreur 2

Report

linux3114a

14 years ago

On SuSE 10.1 with KDE 3.5.1
joins log

make[2]: Entering directory `/home/raoul/work/kchmviewer-2.5/src'
Making all in pics
make[3]: Entering directory `/home/raoul/work/kchmviewer-2.5/src/pics'
make[3]: Rien à faire pour « all ».
make[3]: Leaving directory `/home/raoul/work/kchmviewer-2.5/src/pics'
make[3]: Entering directory `/home/raoul/work/kchmviewer-2.5/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/qt3/include -I../chmlib/ -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -MT iconstorage.o -MD -MP -MF ".deps/iconstorage.Tpo" -c -o iconstorage.o iconstorage.cpp; \
then mv -f ".deps/iconstorage.Tpo" ".deps/iconstorage.Po"; else rm -f ".deps/iconstorage.Tpo"; exit 1; fi
iconstorage.h:60: error: extra qualification ‘KCHMIconStorage::’ on member ‘getCloseWindowIcon’
make[3]: *** [iconstorage.o] Erreur 1
make[3]: Leaving directory `/home/raoul/work/kchmviewer-2.5/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/home/raoul/work/kchmviewer-2.5/src'
make[1]: *** [all] Erreur 2
make[1]: Leaving directory `/home/raoul/work/kchmviewer-2.5/src'
make: *** [all-recursive] Erreur 1


Thanks for ypur cooperation

Report

hernan82arg

14 years ago

add /opt/kde/lib64{kdelibsuff} in kde_libdirs= in the configure! :P

cheers

Report

allixdavis

14 years ago

I am using slamd64 with the following
./configure --with-kde --enable-libsuffix=64 --with-Qt-lib-dir=/usr/lib64/qt-3.3.5/lib --with-Qt-include-dir=/usr/lib64/qt-3.3.5/include

everything works from configure but when i issue make i get the following

pfile.Tpo"; exit 1; fi
kqtempfile.cpp: In constructor `KQTempFileKeeper::KQTempFileKeeper()':
kqtempfile.cpp:32: error: `getenv' undeclared (first use this function)
kqtempfile.cpp:32: error: (Each undeclared identifier is reported only once for each function it appears in.)
kqtempfile.cpp: In member function `bool KQTempFileKeeper::generateTempFile(QFile&, const QString&)':
kqtempfile.cpp:55: error: `time' undeclared (first use this function)
make[3]: *** [kqtempfile.o] Error 1
make[3]: Leaving directory `/home/allix/kchmviewer-2.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/allix/kchmviewer-2.5/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/allix/kchmviewer-2.5/src'
make: *** [all-recursive] Error 1
allix@allix:~/kchmviewer-2.5$

Report

allixdavis

14 years ago

i got it to work by adding to kqtempfile.cpp
#include stdio.h
#include iostream

Report

linux3114a

15 years ago

kchmviewer-2.5-S10K352.i586.rpm
at
http://home.tiscali.be/raoul.linux/downloadSuSE10.0.htm



ENJOY !!!

Report

resal

15 years ago

Thanks for rpm providing.
Great ;)

Report

ghostdog17

15 years ago

Error building on Fedora core 5 gcc 4.1 removing KCHMIconStorage:: from iconstorage.h all goes well.
Find attached error log
-------------------------------
iconstorage.h:60: error: extra qualification ‘KCHMIconStorage::’ on member ‘getCloseWindowIcon’
make[3]: *** [iconstorage.o] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/kchmviewer-2.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/kchmviewer-2.5/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/kchmviewer-2.5/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43048 (%build)

Report

poisoned

15 years ago

Hi =)
since version 2.0 the content tree of most chm files doesn't get displayed correctly anymore.
For example the PHP manual: http://www.php.net/get/php_manual_en.chm/from/a/mirror
In 'Function Reference' everything should be Folders(like 'Array Functions'), but it's displayed as Documents.

Also, copying text from kchmviewer only works by selecting and using the middle mouse button to paste (doesn't appear in klipper).

Report

linux3114a

15 years ago

kchmviewer-2.0-S10K35.i586.rpm
at
http://home.tiscali.be/raoul.linux/downloadSuSE10.0.htm

ENJOY !!!

Report

iges

15 years ago

Hi,

great program :)

Could you add tabs for content window so for example different chapters could be opened in different tabs.

Would make reading a manual a lot faster.

There is also another chm viewer on this site called 'kchm' which has this feature, perhaps some code reuse is possible.

kchm link:
http://www.kde-apps.org/content/show.php?content=21837

regards,
iges.

Report

iges

15 years ago

Forgot...

although in kchm tabs are used for different chm files, but it would be nice if both ways worked:

1) opening different chapters from a chm in different tabs

2) opening several chm-s in different tabs

Report

C

gyunaev

15 years ago

I'll try it.

Report

gohanz

15 years ago

A SlackWare 10.2 Package with SlackBuild script is ready to download!!


http://www.slacky.it/index.php?option=com_remository&Itemid=1&func=fileinfo&filecatid=732&parent=category

Report

linux3114a

15 years ago

kchmviewer-1.2-SuSE9.3K343.i586.rpm
at
http://home.tiscali.be/raoul.linux/download.htm



ENJOY !!!

Report

tingxx

15 years ago

When I open a chm file under chinese dir with the chmviewer .it will show that the file can't find.But when run chmviewer and open the chm file, it will be fine.
I don't know why ?

Report

KanKer

15 years ago

Here is the patch:

--- kchmviewer-1.1/src/kchmmainwindow.cpp.orig 2005-07-29 02:37:01.000000000 +0800
+++ kchmviewer-1.1/src/kchmmainwindow.cpp 2005-11-01 13:32:32.000000000 +0800
@@ -636,7 +652,7 @@

if ( !filename.isEmpty() )
{
- if ( !loadChmFile( filename ) )
+ if ( !loadChmFile( QString::fromLocal8Bit(filename )) )
return false;
/*
if ( search_index.isEmpty() )
@@ -796,7 +812,7 @@

// remove it, so it will be added again at the history top, and will not shitf anything.
// appConfig.m_History.remove ( appConfig.m_History.begin() + item);
- loadChmFile ( filename );
+ loadChmFile ( QString::fromLocal8Bit(filename) );
}

void KCHMMainWindow::updateHistoryMenu()
@@ -804,7 +820,7 @@
m_menuHistory->clear ();

for ( int i = appConfig.m_History.size() - 1; i >= 0; i-- )
- m_menuHistory->insertItem( appConfig.m_History[i], i );
+ m_menuHistory->insertItem( QString::fromLocal8Bit(appConfig.m_History[i]), i );
}

void KCHMMainWindow::slotActivateContentTab( )

Report

12345678910
3
product-maker tcat Jun 22 2011 9 excellent
product-maker Alesvol Jan 14 2011 9 excellent
product-maker felmur Jan 14 2011 9 excellent
Be the first to comment
parcox
Feb 17 2013
eugenez
Jan 14 2011
AngelBlue01
May 27 2009
File (click to download) Version Description PackagetypeArchitectureRelease ChannelDevices Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
5.3
updated Jan 14 2011
added Jun 08 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2
System Tags app software