-
Notifications
You must be signed in to change notification settings - Fork 6
macOS Setup
The below instructions have been tested on macOS Catalina 10.15.7 on an x86 processor as well as macOS Big Sur on Apple M1.
-
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew update
-
Install various system-level dependencies.
Note that you may need to upgrade your system using the
softwareupdate
command or install xcode if some of the below installations fail.# install general tools brew install python3 git # install ARM (target device) toolchain and tools brew tap osx-cross/arm brew install arm-gcc-bin brew install openocd --HEAD # install host gcc compiler and boost lib for tests brew install boost gcc@11 cmake
-
Choose a directory to store your source code.
repos
is a good choice:mkdir repos cd repos
-
Build and install googletest:
git clone --branch release-1.10.0 https://github.com/google/googletest.git cd googletest mkdir build cd build cmake -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11 ../ make sudo make install cd ../../ # Do not forget this step
-
Install
clang-format-10
:Download it from here: https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-x86_64-apple-darwin.tar.xz
Place the downloaded
clang+llvm-10.0.0-x86_64-apple-darwin
in a good location and add the pathbin
directory to your.zshrc
file:export PATH="/path/to/Users/stlp/uw/aruw/repos/clang+llvm-10.0.0-x86_64-apple-darwin/bin:$PATH"
Visit the README of the repo you are working in to find next steps. You'll want to:
- Clone your repository
- Build the project and run the tests to confirm your environment is set up correctly
Looking for something else or would like to contribute to the wiki?
This wiki is a readonly mirror of our GitLab wiki. We use mermaid diagrams in this wiki, which are not supported in GitHub. We recommend referring to the GitLab wiki for the best experience or if you would like to contribute.
Architecture Design
- Directory Structure
- Build Targets Overview
- Drivers Architecture
- Command Subsystem Framework
- Generated Documentation
Using Taproot
Software Tools
- Docker Overview
- Debugging Safety Information
- Debugging With ST-Link
- Debugging With J-Link
- Git Tutorial
- How to Chip Erase the MCB
RoboMaster Tools
Software Profiling
System Setup Guides
- Windows Setup
- Debian Linux Setup
- Fedora Linux Setup
- macOS Setup
- Docker Container Setup
- (deprecated) Windows WSL Setup
Control System Design Notes
Miscellaneous and Brainstorming
Submit edits to this wiki via the taproot-wiki-review repo.