Skip to content

Successfully building this with yotta and Ubuntu 20.04 in 2023 #40

@fabianhugo

Description

@fabianhugo

Hi,
just started from a fresh install of Ubuntu 20.04.6 and wanted to document the necessary steps of building this in march '23:

Install requirements of yotta, leaving out easy_install pip (link)

sudo apt-get update && sudo apt-get install python-setuptools cmake build-essential ninja-build python-dev libffi-dev libssl-dev

Create VirtualEnv to protect Python Installation (Installing yotta with pip3/python3 can mess up your python installation!)

sudo apt install virtualenv
cd [workingdirectory]
virtualenv --python=$(which python2) yottaenv
source yottaenv/bin/activate

Install pip2

wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2 get-pip.py

Install Yotta inside your Virtual Environment

pip install yotta

Install requirements for microbit-samples

sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi srecord

Clone microbit-samples and build

git clone https://github.com/lancaster-university/microbit-samples.git
cd microbit-samples
yotta build

Hope this helps someone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions