1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
## 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
```
|