blob: 2dc74849c9ff3e23f83d100efae88f70e228d538 [file] [log] [blame] [view] [edit]
## Prerequisites
You'll need Bazel (v7.0.0 or higher) or Bazelisk (a self-updating Bazel
launcher) to build the Pico SDK.
We strongly recommend you set up
[Bazelisk](https://bazel.build/install/bazelisk).
### Linux
Use your favorite package tool to install dependencies. For example, on Ubuntu:
```console
sudo apt install build-essential libudev-dev
```
On Linux you can add udev rules in order to run picotool without sudo:
```console
sudo cp udev/60-picotool.rules /etc/udev/rules.d/
```
### macOS
To build on macOS, you'll need to ensure Xcode is installed.
```console
xcode-select --install
```
### Windows
To build on Windows, you must install [Visual Studio for Desktop Development With C++](https://visualstudio.microsoft.com/vs/features/cplusplus/).
## Building picotool
From the root of the picotool repository, run Bazel with the following command:
```console
bazelisk build //:picotool
```
## Running picotool
To run picotool, run the binary built by Bazel:
```console
./bazel-bin/picotool
```