Step 1 : Install cmake Dependencies ==================================== .. tab-set:: .. tab-item:: Install cmake Dependencies * In this program, you are going to learn .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow * How to ? .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Update Your Operating System ` * :ref:`Install Requirements and Dependencies ` * :ref:`CMake ` .. _zephyr_rpi_step2_0: .. tab-set:: .. tab-item:: Update Your Operating System * Ensure your host system is up to date. We can use following commands to update os. .. code-block:: c $ sudo apt-get update $ sudo apt-get upgrade .. _zephyr_rpi_step2_1: .. tab-set:: .. tab-item:: Install Requirements and Dependencies * Note that both Ninja and Make are installed with these instructions; you only need one. .. code-block:: c $ sudo apt-get install --no-install-recommends git cmake ninja-build gperf \ ccache dfu-util device-tree-compiler wget \ python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \ make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1 .. _zephyr_rpi_step2_2: .. tab-set:: .. tab-item:: Dependencies * A recent CMake version is required. * Check what version you have by using below command. .. code-block:: c $ cmake --version. * The current minimum required version for the main dependencies are: .. code-block:: c CMake 3.20.5 Python 3.8 Devicetree compiler 1.4.6 * Verify the versions of the main dependencies installed on your system by entering: .. code-block:: c $ cmake --version $ python3 --version $ dtc --version