Windows: Compiling Samples
Compile in Visual Studio:
Prerequisites: Ensure you have Visual Studio 2022 with v143 toolset installed.
Set up Qt: If you plan to build samples requiring Qt5 (BlockCollection, CommonUIDialog, and CustomEntity), set the system variable QTDIR to the root path of Qt, or pass it to CMake.
Generate Visual Studio Solution: Run CMake in
{InstallDir}\SDK_x64\Samples\CFx\
with the following command:cmake -G"Visual Studio 17 2022" -A x64 -DCMAKE_VS_PLATFORM_TOOLSET=v143 -DQTDIR={rootpath of Qt}
Optionally, you can set QTDIR as an environment variable.Open Solution: Open the generated solution file
{InstallDir}\SDK_x64\Samples\CFx\CFxSamples.sln
in Visual Studio.Compile Solution: Make sure the Release configuration and x64 platform are selected, then build the solution.
Compile without Visual Studio:
Generate Visual Studio Solution: On a system with Visual Studio 2022 installed, follow the steps mentioned above to generate the solution.
Install C++ Build Tools: Install the C++ Build Tools from the Visual Studio Downloads page. Select the download for Build Tools for Visual Studio. This will install the necessary tools without a full Visual Studio IDE installation.
Compile Using Command Prompt: Open the Developer Command Prompt for Visual Studio and navigate to the directory containing the solution file. Use
msbuild.exe
to compile the solution:msbuild "c:\Program Files\Graebert GmbH\ARES Kudo Server\SDK_x64\Samples\CFx\CFxSamples.sln" /p:"Configuration=Release" /p:"Platform=x64"
Output:
The compiled samples will be located in {InstallDir}\SDK_x64\Samples\CFx\{SampleName}\Release\{SampleName}_4.03_17.tx
.
Make sure to adjust paths and configurations according to your setup.
To load module please refer Load modules/plugins (.tx)