Skip to content

Getting Started

Welcome to the Thor Vision developer docs! This guide will walk you through building and deploying the app from source.


Building from Source (coming soon)

Before you begin, ensure the following tools and dependencies are installed on your system:

Install Build Tools

Note

The build is done in Visual Studio 2022 Community with SDK version 10.0.22621.0 and Qt 6 Community Edition.

Install XDAQ Libraries

Build xdaqmetadata

  1. Get the source code and go to project directory

    git clone https://github.com/kontex-neuro/xdaqmetadata.git
    cd xdaqmetadata
    

  2. Create python virtual environment .venv in project directory and activate it

    py -m venv .venv
    .venv\Scripts\activate
    

  3. Install Conan and ninja in .venv via pip

    pip install conan ninja
    

  4. Install dependencies using Conan

    conan install . -b missing -pr:a <profile> -s build_type=Release
    

  5. Generate the build files with CMake

    cmake -S . -B build/Release --preset conan-release -G "Ninja" -DCMAKE_BUILD_TYPE=Release
    

  6. Build the project

    cmake --build build/Release --preset conan-release
    

  7. Export as conan package to local cache

    conan export-pkg . -pr:a <profile> -s build_type=Release
    

Note

Replace <profile> with the Conan profile from your environment, To see more about how to create Conan profile.

Example Conan profile for Windows:

[settings]
arch=x86_64
compiler=msvc
compiler.cppstd=20
compiler.runtime=dynamic
compiler.version=194
os=Windows
[conf]
tools.cmake.cmaketoolchain:generator=Ninja

Build libxvc

  1. Get the source code and go to project directory

    git clone https://github.com/kontex-neuro/libxvc.git
    cd libxvc
    

  2. Create python virtual environment .venv in project directory and activate it

    py -m venv .venv
    .venv\Scripts\activate
    

  3. Install Conan and ninja in .venv via pip

    pip install conan ninja
    

  4. Install dependencies using Conan

    conan install . -b missing -pr:a <profile> -s build_type=Release
    

  5. Generate the build files with CMake

    cmake -S . -B build/Release --preset conan-release -G "Ninja" -DCMAKE_BUILD_TYPE=Release
    

  6. Build the project

    cmake --build build/Release --preset conan-release
    

  7. Export as conan package to local cache

    conan export-pkg . -pr:a <profile> -s build_type=Release
    

Build order

Be sure to build xdaqmetadata first then libxvc, since libxvc is depended on xdaqmetadata.


Build the app

Follow these steps to build the app from source:

  1. Get the source code and go to project directory

    git clone https://github.com/kontex-neuro/ThorVision.git
    cd ThorVision
    

  2. Create python virtual environment .venv in project directory and activate it

    py -m venv .venv
    .venv\Scripts\activate
    

  3. Install Conan and ninja in .venv via pip

    pip install conan ninja
    

  4. Install dependencies using Conan

    conan install . -b missing -pr:a <profile> -s build_type=Release
    

  5. Generate the build files with CMake

    cmake -S . -B build/Release --preset conan-release -G "Ninja" -DCMAKE_BUILD_TYPE=Release
    

  6. Build the project

    cmake --build build/Release --preset conan-release
    


Building the docs (Optional)

Before you begin, ensure the following tools are installed on your system:

First generate build files using CMake with the -DBUILD_DOC=ON option enabled. Then compile the target doc, for example:

cmake --build build/Release --preset conan-release --target doc

This will generate documentation in <project_directory>/build/Release/site.