From f87458bcb7df0ffd27a86a45bae58aa365df0be6 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Thu, 28 Dec 2023 14:15:07 -0500 Subject: [PATCH] add information about targeting other Qt versions --- .../03-writing-your-first-application.asciidoc | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/doc/tutorials/03-writing-your-first-application.asciidoc b/doc/tutorials/03-writing-your-first-application.asciidoc index 884998e9..496195db 100644 --- a/doc/tutorials/03-writing-your-first-application.asciidoc +++ b/doc/tutorials/03-writing-your-first-application.asciidoc @@ -12,18 +12,25 @@ layout: docs In this chapter we will write a simple QSkinny application on Linux from scratch. As a prerequisite, a recent Qt version (>= 5.6) should be available. On debian bullseye we need to install -these packages `build-essential qtbase5-dev qtbase5-private-dev -qtdeclarative5-dev qtdeclarative5-private-dev libqt5svg5-dev`. +these packages `build-essential qtbase6-dev qtbase6-private-dev +qtdeclarative6-dev qtdeclarative6-private-dev libqt5svg6-dev`. Then we can build and install QSkinny to `/opt/qskinny` with the following commands: [source,shell] .... -$ git clone https://github.com/uwerat/qskinny.git +$ git clone https://github.com/uwerat/qskinny.git # clone $ cd qskinny $ mkdir build && cd build -$ cmake ../ && make -$ sudo make install +$ cmake ../ && make # build +$ sudo make install # install +.... + +To target a specific Qt version simply pass the cmake build variable `QSK_QT_VERSION` during the build step: + +[source,shell] +.... +$ cmake -DQSK_QT_VERSION=Qt5 ../ && make .... === Compiling our first app