mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 06:50:59 +08:00
docs(i18n): PX4 guide translations (Crowdin) - zh-CN (#27210)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
1 parent
5c7d08f1d0
commit
92cc4db33d
32 files changed
+565
-280
No files matched your search
@@ -38,7 +38,7 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will
|
||||
|
||||
4. **Ensure Python 3 is available.** Some PX4 build scripts require `python3` and `pip3` to be in your `PATH`. The Xcode Command Line Tools include Python 3 by default.
|
||||
|
||||
:::tip
|
||||
::: tip
|
||||
If you need to install or manage a different Python version, we recommend [pyenv](https://github.com/pyenv/pyenv), which lets you set global and per-directory Python versions.
|
||||
|
||||
:::
|
||||
@@ -59,6 +59,19 @@ To build for [other targets](../dev_setup/dev_env.md#supported-targets) you will
|
||||
./Tools/setup/macos.sh --sim-tools
|
||||
```
|
||||
|
||||
::: info
|
||||
The setup script creates a Python virtual environment at `.venv` in the repo root and installs all Python dependencies into it. This keeps PX4's Python requirements isolated from your system Python and avoids conflicts with Homebrew's externally-managed Python.
|
||||
|
||||
Activate it before building:
|
||||
|
||||
```sh
|
||||
source .venv/bin/activate
|
||||
```
|
||||
|
||||
You'll need to re-run this command in each new terminal session. To activate it automatically when you `cd` into the repo, consider a tool like [direnv](https://direnv.net/) or add the activation to your `~/.zshrc`.
|
||||
|
||||
:::
|
||||
|
||||
This installs:
|
||||
|
||||
- **Toolchain packages** from the `osx-cross/arm` and `PX4/px4` Homebrew taps — ARM cross-compiler (`arm-gcc-bin@13`), `cmake`, `ninja`, `ccache`, `fastdds`, `genromfs`, `kconfig-frontends`, and other build tools
|
||||
|
||||
Reference in new issue
Block a user