You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
- C++11 compiler which is supported by the [Qt SDK][1].
16
16
- Qt tools such as `moc` and the resource packer.
17
17
-`CMake` or `Qmake` to generate the build scripts. For builds I recommend CMake, and Qmake is mainly used as a Qt Creator project.
18
-
- SDK for `Qt 4`, `Qt 5` or `KDE 4`.
18
+
- SDK for `Qt5` or `Qt6`. Note that with Qt6 you need an additional `Core5Compat` module.
19
19
- The [CHMLib][2] library for handling chm files. You can choose dynamic or static linking. In the first case, you need a library and headers for development. In the second case you need to download the repository submodule and specify `USE_STATIC_CHMLIB` flag when generating the build script.
20
20
- The [libzip][3] library and headers for software development. When building this library from source you will need the [zlib][4] library.
21
21
@@ -24,6 +24,7 @@
24
24
25
25
- I recommend using [Git][5] to retrieve the source code. Although you can download and unpack the archive with the sources, this option is not covered here. Also, Git is more convenient if you want to use a submodule with CHMLib.
26
26
-[GNU Gettext][6] is required to translate the user interface.
27
+
-[KDELibs4Support][7] and [ECM][8] to build with KDE support.
A modern [cmake][7] generates an build system script and also can be used as a build and installation driver.
43
+
A modern [cmake][9] generates an build system script and also can be used as a build and installation driver.
43
44
44
45
```sh
45
46
# Generate build system
@@ -59,11 +60,14 @@ cmake --install . [<options>]
59
60
60
61
**Project-specific variables**
61
62
62
-
-`FRAMEWORK=<Qt4 | Qt5 | KDE4>` - choosing the framework with which to build the application, default is `Qt5`.
63
+
-`USE_KF5=<ON | OFF>` - build application with KDE support.
63
64
-`USE_STATIC_CHMLIB=<ON | OFF>` - choosing static linking with CHMLib, default is `OFF`. For static linking, the library is compiled from source in the `lib/CHMLib` folder. This folder can be obtained along with the sources of the application using the command `git clone --recursive`.
64
65
-`USE_WEBENGINE=<ON | OFF>` - choosing WebEngine instead of WebKit, default is `OFF`. WebEngine requires Qt version 5.9 or higher.
65
66
-`USE_GETTEXT=<ON | OFF>` - enabling translation of the application, default is `ON`. If Gettext is not available, this option will be ignored.
66
67
-`USE_DEPLOY_RUNTIME=<ON | OFF>` - copying runtime dependencies for deployment, default is `OFF`.
68
+
-`USE_MACOS_BUNDLE=<ON | OFF>` - install as macOS bundle, default is `ON`.
69
+
-`USE_MAC_APP=<ON | OFF>` - use derived QApplication, default to `ON` on macOS.
70
+
-`USE_DBUS=<ON | OFF>` - use D-Bus integration, default to `ON` on Linux.
67
71
-`chmlib_ROOT=<path/to/chmlib>`- specifies an additional folder to look up the library and headers for CHMLib. The `chm_lib.h` file is expected either in the root folder or the `include` folder. The `chm` library must be either in the root folder or in the `lib` folder.
68
72
-`libzip_ROOT=<path/to/libzip>`- specifies an additional folder to look up the library and headers for libzip. The `zip.h` file is expected either in the root folder or the `include` folder. The `zip` library must be either in the root folder or in the `lib` folder.
69
73
@@ -81,26 +85,19 @@ cmake --install . [<options>]
81
85
82
86
### Cpack
83
87
84
-
CMake comes with a `cpack` utility for generating installers. The build scripts have basic `cpack` support, but in some cases [additional options][8] and [variables][9] may need to be specified. The [generator][10] must be specified in any case.
88
+
CMake comes with a `cpack` utility for generating installers. The build scripts have basic `cpack` support, but in some cases [additional options][10] and [variables][11] may need to be specified. The [generator][12] must be specified in any case.
85
89
86
90
87
91
## Building in Debian
88
92
89
-
In GNU/Linux with package manager DEB-based for any build configurations you need the following packages and their dependencies:
93
+
In GNU/Linux with package manager DEB-based you need the following packages and their dependencies:
90
94
91
95
-`build-essential``cmake``git``libzip-dev`
96
+
-`qt5-default`; `libqt5webkit5-dev` or `qtwebengine5-dev`
97
+
-`libkf5kdelibs4support-dev` if you choose build with KDE support.
92
98
-`libchm-dev`
93
99
-`gettext`
94
100
95
-
The table lists the required additional packages and CMake options for varios build configuration.
Copy file name to clipboardExpand all lines: NEWS.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,14 @@
1
+
## 2022-02-12 v8.2-rc
2
+
3
+
The release adds support for KDE Framework 5 instead of KDE4 and initial support for Qt6 instead of Qt4.
4
+
5
+
* Fork renamed to uChmViewer. Also removed the code checking for updates.
6
+
* Ended support for Qt4 and KDE4 on the master branch. Qt4 specific code has been removed.
7
+
* Added support for the KDE Framework 5 with KDELibs4Support.
8
+
* Added limited support for Qt6. The application is built with Qt6.2, but had to disable printing and rely on default settings when browsing pages.
9
+
* Added USE_DBUS option to the CMake build script. The option allows you to enable/disable building with D-Bus on any platform where this technology is available. Previously, building with D-Bus was supported only on Linux.
10
+
11
+
1
12
## 2021-11-15 v8.1-rc2
2
13
3
14
* Fixed build failure with Qt WebKit. In some cases compilation of the src/qtwebkit/viewwindowmgr.cpp file failed with the message `error: invalid use of incomplete type 'class QTabBar'`.
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This is a fork of the [kchmviewer](http://www.ulduzsoft.com/linux/kchmviewer) wi
13
13
14
14
## Overview
15
15
16
-
KchmViewer is a chm (MS HTML help file format) and epub 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. It has full KDE 4 support.
16
+
KchmViewer is a chm (MS HTML help file format) and epub 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. It has full KDE Framework 5 support.
17
17
18
18
The main advantage of KchmViewer is extended support for non-English languages. Unlike others, KchmViewer in most cases correctly detects chm file encoding, correctly shows tables of context of Russian, Korean, Chinese and Japanese help files. It also correctly searches text in non-English help files, including Korean, Chinese and Japanese.
19
19
@@ -22,14 +22,14 @@ KchmViewer is written by [Georgy Yunaev](https://github.com/gyunaev), and is lic
22
22
23
23
## What's New
24
24
25
-
The 8.1 release is dedicated to the translation of the UI. Initially, translation worked only in an application which was built with KDE support. Now, this is possible with GNU Gettext for the target platform and is independent of KDE. However, the translation files are outdated and only Russian translation is up to date.
26
-
Read more in the [release notes](NEWS.md).
25
+
Release 8.2 says goodbye to Qt4 and KDE4 and welcomes KDE Framework 5.
26
+
Read more in the [release note](https://github.com/u-235/uchmviewer/releases/latest) and in the [news](NEWS.md).
27
27
28
28
29
29
## Features
30
30
31
-
- Standalone viewer, depends on Qt 4 or Qt 5 only. Does not require KDE, GNOME or wxWidgets toolkit.
32
-
- Could be optionally built with KDE 4 or KDE 5 support, using KDE dialogs.
31
+
- Standalone viewer, depends on Qt 5 or Qt 6 only. Does not require KDE, GNOME or wxWidgets toolkit.
32
+
- Could be optionally built with KDE Framework 5 support, using KDE dialogs.
33
33
- Completely safe and harmless. JavaScript can be disabled in the settings, optionally warns you before opening an external web page, or switching to another help file.
34
34
- Correctly detects and shows encoding of any valid chm file.
35
35
- Correctly shows non-English chm files, including Cyrillic, Chinese, Japanese and others.
0 commit comments