Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 1.68 KB

README_install.md

File metadata and controls

69 lines (44 loc) · 1.68 KB

Software Installation

How to install VCPKG

Official Link: https://vcpkg.io/en/index.html

cd external
git clone https://github.com/Microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat # windows
./vcpkg/bootstrap-vcpkg.sh # Unix

How to install the Conan Package Manager

Official installation guide is here.

The conan database is here.

Installation Steps

  1. Install Python (3.7+)
  2. Type pip install --user -U conan into the terminal
    1. Unix: Append conan to the PATH by: source ~/.profile
  3. Run the conan command: conan
  4. conan profile detect --force
  5. conan profile path default

Formatter and Static Analyzer

Tooling

Clang-Format: Formatting tool for your C/C++ code:

  • Documentation for Clang-Format: Link

Clang-Tidy: Static linting tool for your C/C++ code:

  • Documentation for Clang-Tidy: Link

Cmake-Format:

pip install cmake-format # python 3.7+

Install Clang Tools

It's included in the LLVM toolchain, but also installable by apt, brew, winget etc.

https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0

Cross Compiler as an Example

Install ARM Compiler on x86 64 Ubuntu

sudo apt update
sudo apt install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev build-essential bison flex libssl-dev bc

sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
sudo apt install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi

Install MingW Cross Compiler on x86 64 Ubuntu

sudo apt-get install mingw-w64