This repository supports a source build on Windows with CMake and Visual Studio 2022. The recommended workflow is the PowerShell setup and compile scripts added to the repository.
- Visual Studio 2022 with C++ desktop tooling
- Python 3 on
PATH - Git
- CMake
.\scripts\setup.ps1setup.ps1 performs the Windows-specific project bootstrap:
- Installs Conan 2.11 and aqtinstall with Python.
- Clones
3rdparty\nodeeditorif it is missing. - Installs Qt 6.8.3 for MSVC 2022 with the
qtmultimediamodule into.qt. - Generates Conan outputs for both Debug and Release under
.conan\Debugand.conan\Release.
.\scripts\compile.ps1 -Type Release -DeployUseful options:
-Type Debugto build a debug configuration-QtDir <path>to point at an existing Qt installation instead of.qt\6.8.3\msvc2022_64-Cleanto remove the existingbuild\vs2022-*directory before configuring-Deployto runwindeployqtand copy the runtime dependencies next to the executable
.\build\vs2022-release\dist\ComputerVisionBlueprint.exeIf you omit -Deploy, the compiled executable is located at build\vs2022-release\Release\ComputerVisionBlueprint.exe.
- Qt install root:
.qt\6.8.3\msvc2022_64 - Conan outputs:
.conan\Debugand.conan\Release - Visual Studio build folders:
build\vs2022-debug/build\vs2022-release - Deploy output:
build\vs2022-release\dist\ComputerVisionBlueprint.exe
CMakePresets.jsoncurrently defines Ninja presets, so the Windows workflow uses the Visual Studio 17 2022 generator directly throughcompile.ps1.- The configure step passes
-DCMAKE_POLICY_DEFAULT_CMP0091=NEW, the Conan toolchain file, the Qt path, andOpenCV_DIRsofind_package(OpenCV CONFIG REQUIRED)resolves correctly on Windows. windeployqtmay warn thatdxcompiler.dllanddxil.dllare not present; that warning did not prevent the application from launching in the documented Windows workflow.