aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL_linux.txt
blob: 406b4e467407232e01d3e34ba129ca13b376d77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (C) 2022 The Qt Company Ltd.
//

Qt Licenser daemon for Linux

- Tested in Ubuntu 16.04, Mint 20.3, Macbook Pro M1 (Mac from console only, not as a daemon)
- This README does not include Windows version, because it's not supported yet

Prerequisites:
    cmake, curl, build-essentials

To build, run the build script:  (from project root)

    ./build.sh


----------  Install it as a service: ----------

cd to deploy/ directory (created by build.sh):
    cd deploy

At this point, you might want to edit the licd.ini file, where most important is the License Server address to be able to connect to it. If you do this later, you need to edit /opt/licd.ini as root. See licd.ini in deploy directory.

Run installation script as root:
    sudo ./installer.sh

(will now start automatically after reboot, too)

To get MOC wrapper working, too, please note: Installation script does not know your Qt installation location (Something like /home/user/Qt/6.3.1/gcc_64/libexec/). That's why you need to set MOC wrapper working by doing:
    1. cd [your Qt framework install dir]
    2. mv moc orig_moc   <--- Note: has to be exactly 'orig_moc'
    3. ln -s /opt/licd/mocwrapper moc
    4. Try it by building any Qt-enabled app wit any IDE or from command line

In case youre using Qt5, you need to enable legacy support for its qmake licensing system by replacing licheck binary with the provided one:
    (Still in the Qt installation location):
    1. cp licheck licheck.bak   <--- This is just to back up the original, you can name it freely
    2. ln -s /opt/licd/licheck licheck


Check if the service running:
    sudo systemctl status licd

To stop it:
    sudo systemctl stop licd

to disable it:
    sudo systemctl disable licd

To view logs:
        journalctl -u licd -n 100
        (Displays last 100 lines. If -n is not given, it will show all the logs)

To completely uninstall, run 'uninstaller.sh' from deploy directory (as root, of course)
    In addition, you need to remove symlinks from Qt installation dir and restore original binaries there:
    - cd <your Qt installation dir>
    - mv orig_moc moc
    - mv licheck.bak licheck    <-- or whatever you named your backup