Install the packages for cmake, ninja, and basic X11 development libraries - and python pip.
(if you already have conan package installer
(an older version) you might need to add --force
to the end of the pip3
command)
apt install build-essential libx11-dev cmake ninja-build python3-pip clang-format
pip3 install conan==1.64.1
NOTE
Under Debian - you should use
pipx
to install applications. See this https://itsfoss.com/install-pipx-ubuntu/ for more information
To compile the demo app from the command line:
cmake -s . -b build
cmake --build build --parallel
./build/bin/demo
# To reformat code after changes:
ninja -C build fix-clang-format
Any IDE with CMake support is good enough for you. I usually run QtCreator and VSCode to run/debug.
File
->Open file or project
-> choose the directory in which you cloned SVision2.- Press
Control+r
to execute the program. - Press
Control+k
to quick search files in your project. - To use the same code style recommended by the project:
Edit
->Preferences
->C++
->ClangFormat options
- Formatting mode: Full formatting
- Check all options
File
->Open folder
-> choose the directory in which you cloned SVision2.- If you don't have this installed, install the C/C++ Extension Pack.
- Press
Control+F5
to execute the program, if this does not work, at the bottom of the window, choosedemo
, and press the play button: - To use the same code style recommended by the project:
- Open settings
- Search for
format on save
- Mark the checkbox
- Mode should be file.