Build Qt License Service from sources
As an alternative to installing Qt License Service manually, you can also build Qt License Service from sources.
Prerequisites
First, install the following tools:
- CMake
- build-essential
- libuuid
To install them, run the following command:
sudo apt install cmake build-essential uuid-dev
- CMake
- Perl
- Netwide Assembler (NASM)
- OpenSSL (latest 3.x version, static build)
Build OpenSSL before building Qt License Service
- Ensure Perl and NASM are available in your PATH.
- Fetch the sources from the OpenSSL website.
- Extract the sources to
C:\openssl\
.
- Extract the sources to
- Configure the sources for a static build:
- In the developer command prompt for the MSVC version you are using, change directory to the extracted sources:
cd C:\openssl\
- Run the configure script:
perl Configure no-shared no-pinshared
- In the developer command prompt for the MSVC version you are using, change directory to the extracted sources:
- Build OpenSSL:
- In the developer command prompt, run:
nmake
- In the developer command prompt, run:
- Microsoft Windows SDK
- MSVC
Building
To build Qt License Service from sources:
- Set the
OPENSSL_ROOT_DIR
variable to point to the OpenSSL installation:export OPENSSL_ROOT_DIR=</path/to/your/openssl/installation>
- In the project root folder, run the build script:
./build_unix.sh
- Set the
OPENSSL_ROOT_DIR
variable to point to the OpenSSL installation:export OPENSSL_ROOT_DIR=</path/to/your/openssl/installation>
- In the project root folder, run the build script:
./build_unix.sh
- Set the
OPENSSL_ROOT_DIR
variable to point to the OpenSSL installation:set OPENSSL_ROOT_DIR=C:\openssl\
- In the project root folder, run the build script:
build_windows.bat
If the default CMake generator does not match the desired Visual Studio version, add the Visual Studio version as a parameter to the build script:
build_windows.bat "Visual Studio 17 2022"
Configuration
Configure the server address as described in Configure the server address.
Note: If you build Qt License Service from sources, the qtlicd.ini
file is in the deploy
directory created during the build process.
After configuring the server address, copy the Qt License Service files to the destination path:
- Go to the
<project root>/deploy
directory:cd <project root>/deploy
- Copy the files:
mkdir $HOME/qtlicd
cp *.* $HOME/qtlicd/
- Go to the
<project root>/deploy
directory:cd <project root>/deploy
- Copy the files:
mkdir $HOME/qtlicd
cp *.* $HOME/qtlicd/
- Go to the
<project root>\deploy
directory:cd <project root>\deploy
- Copy the files:
mkdir C:\"Program Files"\qtlicd
copy *.* C:\"Program Files"\qtlicd\
See also {Qt License Service configuration}.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.