Before you start the installation, verify that your system complies with the LuciadCPillar Hardware and software requirements.
Installing LuciadCPillar for C++ development
To install LuciadCPillar and compile the C++ samples:
-
Extract the
LuciadCPillar_Pro-Windows.zip
archive. -
Extract the
LuciadCPillar_Pro_Documentation.zip
archive. -
Extract the
LuciadCPillar_Pro_Data.zip
archive. -
Copy your LuciadCPillar license file, named
luciadcpillar_development.txt
, into the folderlicenses
. -
Open the x64 Native Tools Command Prompt that came installed with the Visual Studio version you are working in.
-
Go to the extracted LuciadCPillar folder.
-
Go to the folder
cpp
:>cd cpp
-
Create a folder
build
, and step into that folder:>mkdir build >cd build
-
Generate the Visual Studio solution:
-
Make sure to include the folder with the Qt executable Programs in the Windows
PATH
environment variable:C:\Tools\Qt\5.15.2\msvc2019_64\bin
, for example. -
Use CMake to generate the Visual Studio solution with the generator related to your Visual Studio version, for example
Visual Studio 16 2019
orVisual Studio 17 2022
.
Make sure to point to the correct location for Qt5 in the command. These are examples of thecmake
command:>cmake ../ -G "Visual Studio 16 2019" -A x64 -DQt5_DIR="C:/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5"
or
>cmake ../ -G "Visual Studio 17 2022" -A x64 -DQt5_DIR="C:/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5"
-
-
Open the generated solution file
cpp/build/AllSamples.sln
with Visual Studio. -
Select
ALL_BUILD
in the Solution Explorer, go to Build > Configuration Manager, and select the desired Active solution configuration. -
Right-click
ALL_BUILD
in the Solution Explorer, and click Build to build all samples. -
Select the sample you want to run. For instance, to select sample_firstapp:
-
Right-click on sample_firstapp in the Solution Explorer.
-
Select Set as StartUp Project.
-
-
Run the application sample, by pressing F5 for instance.
Troubleshooting
See troubleshooting for commonly encountered problems.