Windows 10 & 11

This section contains instructions on how to setup your development environment in Windows 10 & 11 in order to compile the Skydel Plug-ins examples.

MSVC

Download latest Build Tools for Visual Studio 2019 online installer and install C++ build tools.

Drawing
Version should at least be 19.29.30158 for cl

Please note that the version in the execution path of cl might be different on newer versions.

C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
> Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30158 for x64

CMake

Download and install CMake. Make sure to add CMake to the system PATH during installation.

Version should be 4.0.3 for cmake
cmake --version
> cmake version 4.0.3

Ninja

  • Download and unzip ninja-win.zip to Program Files / ninja-win

  • From the search bar, search for Edit the system environment variables

  • Select Envrionment Variables...

  • Select Path in System variables and select Edit...

  • Select Browse... and find the folder Program Files / ninja-win (where you unziped ninja-win.zip)

  • After those steps, ninja should be accessible from anywhere

Version should be 1.12.1 for ninja
ninja --version
> 1.12.1

Git

Download and install latest git.

Version should at least be 2.40.1 for git
git --version
> git version 2.40.1.windows.1

Perl

Download and install latest Perl, needed for Qt compilation.

Version should at least be 5.40.2.1 for perl
perl -v
> This is perl 5, version 40, subversion 2 (v5.40.2) built for MSWin32-x64-multi-thread

QtCreator

Follow the instructions below to setup the QtCreator IDE:

  1. Download qtcreator-windows-x64-msvc-10.0.1.7z and unzip to C:\Qt\QtCreator

  2. Download qtcreatorcdbext-windows-x64-msvc-10.0.1.7z and unzip to C:\Qt\QtCreator such that you have C:\Qt\QtCreator\lib\qtcreatorcdbext64

  3. Optional: To make accessing Qt Creator easier, navigate to C:\Qt\QtCreator\bin and launch qtcreator.exe. It may take some time to open the first time. Once it's open, you can pin the application to the taskbar for quicker access in the future.

OpenSSL

Since OpenSSL is required for Qt compilation, follow the instructions below to compile and install it:

From an elevated Command Prompt
powershell -Command "Invoke-WebRequest -Uri 'https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz' -OutFile 'C:\'"
cd /d "C:\"
tar -xzf "openssl-1.1.1w.tar.gz"
del "openssl-1.1.1w.tar.gz"
cd openssl-1.1.1w
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
perl Configure VC-WIN64A
nmake

Qt

Once you've completed all the steps in the sections above, compile and install Qt using the following command:

From an elevated Command Prompt
cd /d "C:\"
git clone --branch v5.15.17-lts-lgpl --single-branch https://github.com/qt/qt5
cd qt5
perl init-repository --module-subset="qtbase,qtsvg,qtserialport"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
set CL=/MP
configure -prefix C:\Qt\5.15.17\msvc2019_64 -opensource -nomake tests -nomake examples -openssl-linked -I C:\openssl-1.1.1w\include -L C:\openssl-1.1.1w OPENSSL_LIBS="-lWs2_32 -lGdi32 -lAdvapi32 -lCrypt32 -lUser32 -llibssl_static -llibcrypto_static"
nmake
nmake install
Version should be 5.15.17 for Qt
C:\Qt\5.15.17\msvc2019_64\bin\qmake --version
> QMake version 3.1
> Using Qt version 5.15.17 in C:/Qt/5.15.17/msvc2019_64/lib

Last updated