Install clangd clang-tidy clang-format and g++-9 compiler:
sudo apt install -y clang-tidy-15 clangd-15 clang-format-15 clang-format-15 g++-9
Create links:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-15 100
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 15
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 15
Install gdb for debugging:
sudo apt-get -y install gdb
The script build.sh
๐ will configure and build the project but if you want you may also want to add a .env
file to define some cmake variables.
There is a launch.json
defined you can modify and ajust.