Skip to content

04 Install required packages

Dave Glover edited this page Oct 17, 2022 · 6 revisions

Installing the required libraries and packages

The following list outlines the steps you'll need to complete. Be sure to follow the steps for your computer operating system.

  1. Install Visual Studio Code.
  2. Install the required libraries.

Windows 10 and 11 users

Complete the following steps:

  1. If you have not done so already, then install Windows Subsystem for Linux (WSL2) and Ubuntu 20.04.
  2. Optional, but recommended, install the Windows Terminal

Install the required packages

The Altair project requires the following packages:

  1. libuv event loop library.
  2. SSL development library required for the Azure IoT SDK C.
  3. OSSP uuid library required for the Azure IoT SDK C.
  4. C compiler and debugging tools.

Windows Subsystem for Linux users

Follow these steps to install the required packages.

  1. Open an WSL Ubuntu Terminal window.

  2. Run the following command to install the required packages

    sudo apt-get install -y libuv1-dev cmake build-essential gdb curl libcurl4-openssl-dev libssl-dev uuid-dev ca-certificates git clang libgpiod-dev gpiod

Linux desktop users

Follow these steps to install the required packages.

  1. Open a Terminal window.

  2. Run the following command to install the required packages

    sudo apt-get install -y libuv1-dev cmake build-essential gdb curl libcurl4-openssl-dev libssl-dev uuid-dev ca-certificates git clang libgpiod-dev gpiod

macOS users

  1. Install Xcode command line tools

    xcode-select --install
  2. Install Homebrew

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. Open a Terminal window.

  4. Run the following command to install the required packages.

    brew install libuv openssl ossp-uuid

Raspberry Pi and Beaglebone users

  1. From your desktop computer, start an SSH session to your Raspberry Pi.

  2. From the SSH session, run the following command to install the required packages

    sudo apt-get install -y libuv1-dev cmake build-essential gdb curl libcurl4-openssl-dev libssl-dev uuid-dev ca-certificates git clang libgpiod-dev gpiod

Install Visual Studio Code and extensions

  1. Install Visual Studio Code.
  2. Install CMake Tools
  3. Install C/C++
  4. Install the Visual Studio Code CodeLLDB extension
  5. Install the Remote-WSL extension if building solution with Windows Subsystem for Linux.
  6. Install the Remote-SSH extension if building solution on a remore Linux device including Raspberry Pi.
Clone this wiki locally