Follow these steps to build KLog.

KLog requires Qt6 to be built.

Currently, many distributions are still distributing Qt4 as a default Qt
version so it may be needed that you install Qt6 to be able to build KLog in
your system.

install may depend on your distribution, however, check for similar names &
versions and it will probably work :-)

If you have any suggestion for this file, please contact me. (Contact
details in the AUTHORS file).


1. Install the KLog dependencies

There are dependencies to build KLog and dependencies to run KLog.

The dependencies to build KLog are:
	cmake, qt6-tools-dev-tools, qt6-base-dev, libqt6charts6-dev, qt6-serialport-dev, 
	libhamlib++-dev, qmake6, libqt6sql6-sqlite, libhamlib-dev,  qt6-location-dev,
	qt6-positioning-dev, qt6-l10n-tools, qt6-declarative-private-dev, qt6-tools-dev

The dependencies to run KLog once installed are:
    libqt6serialport6, libqt6sql6-sqlite, qml6-module-qtlocation, qml6-module-qtquick-window, 
    qml6-module-qtquick, qml6-module-qtquick-controls, qt6-location-plugins


If your are using the Debian KLog package the dependencies to run KLog will be automatically installed when installing the KLog package.


In your distribution, you should know how to install new packages :-)


Make sure you have qt6 available. You can do it with the qtchooser command.
The output should be something like:

        user@debian:~$ qmake6 -v
        QMake version 3.1
        Using Qt version 6.4.2 in /usr/lib/x86_64-linux-gnu

If Qt is not at least Qt6, check your instalallation as one of the previous packages may be missing.


2.- Untar klog

    tar xvzf klog-version.tar.gz

    enter the KLog directory

    cd klog-version


3.- Prepare build system
    We will create a folde named "build" and all the build process of KLog will happen in that folder.
    Run:
 
    cmake -S . -B build

4. Make everything.

    cmake --build build

If everything goes OK, you should have the klog executable in the folder.

5.- To install KLog, execute the following from the root account.

    cmake --install build --prefix /usr

or simply via sudo: sudo cmake --install build --prefix /usr

Now you are done. Just execute klog and enjoy!


73
