-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
This guide explains all of the steps needed to setup your computer for developing mJacket API based firmware.
- First, clone the mJackets API to your computer using
git clone https://github.com/RoboJackets/mjackets-api.gitin your command terminal. - Open the freshly cloned mjackets-api reposity and run the top-level install script. This script will setup a template project. The script will ask you to specify where you want your project template to be installed to.
- For windows:
./install.batch - For linux:
./install.bash
- For windows:
If you do not want to use the install script, you can setup your project manually using the following steps:
- Clone this repository using
git clone https://github.com/RoboJackets/mjackets-api.git - Copy the contents of the TEMPLATE directory into your project directory.
- If a git project has not already been set up in your project directory, use
git initto initialize an empty git project. - In your project directory, run
git submodule init && git submodule updateto download the mJackets API to your project. - Inside of the mjackets-api directory, run
git submodule init && git submodule updateagain to download all of the API's submodules.
In order to generate a build system and compile firmware, you need several packages on your computer including the ARM toolchain, git, and CMake. Follow the below instructions to setup these packages on your computer.
Run the windows-setup.batch script in the UTIL directory to install the required dependencies.
Run the appropriate setup script from the UTIL directory for your operating system to install the required dependencies.
- Ubuntu -
ubuntu-setup.sh - OSX -
osx-setup.sh
Download all the nessesary packages using:
apt-get update && apt-get install ccache doxygen git clang-format-3.9 python3-pip python3-setuptools gcc-arm-none-eabiYou will need to install CMake manually as the minimum required version of CMake (3.14) for the mJackets API is not available for Ubuntu versions less than 20.04LTS through the apt repos. You can download the binaries from https://cmake.org/download/ and then follow the instructions in https://cmake.org/install/ to install the program. Check to make sure CMake is available from PATH using cmake --version in the command terminal.
apt-get update && apt-get install cmake ccache doxygen git clang-format-3.9 python3-pip python3-setuptools gcc-arm-none-eabi