mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 13:08:52 +08:00
Move PX4 Guide source into /docs (#24490)
* Add vitepress tree * Update existing workflows so they dont trigger on changes in the docs path * Add nojekyll, package.json, LICENCE etc * Add crowdin docs upload/download scripts * Add docs flaw checker workflows * Used docs prefix for docs workflows * Crowdin obvious fixes * ci: docs move to self hosted runner runs on a beefy server for faster builds Signed-off-by: Ramon Roche <mrpollo@gmail.com> * ci: don't run build action for docs or ci changes Signed-off-by: Ramon Roche <mrpollo@gmail.com> * ci: update runners Signed-off-by: Ramon Roche <mrpollo@gmail.com> * Add docs/en * Add docs assets and scripts * Fix up editlinks to point to PX4 sources * Download just the translations that are supported * Add translation sources for zh, uk, ko * Update latest tranlsation and uorb graphs * update vitepress to latest --------- Signed-off-by: Ramon Roche <mrpollo@gmail.com> Co-authored-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
co-authored by
Ramon Roche
parent
8e6d2ebe4a
commit
88d623bedb
@@ -0,0 +1,99 @@
|
||||
# CentOS 개발 환경
|
||||
|
||||
:::warning
|
||||
This development environment is [community supported and maintained](../advanced/community_supported_dev_env.md).
|
||||
It may or may not work with current versions of PX4.
|
||||
|
||||
See [Toolchain Installation](../dev_setup/dev_env.md) for information about the environments and tools supported by the core development team.
|
||||
:::
|
||||
|
||||
빌드에는 Python 2.7.5가 필요합니다. 따라서, 이 글을 쓰는 시점에서 Centos 7을 사용하여야 합니다.
|
||||
(이전 Centos 릴리스의 경우 Python v2.7.5를 설치할 수 있습니다. 하지만 yum을 깨뜨릴 수 있으므로 권장하지 않습니다.)
|
||||
|
||||
## 공통 종속성
|
||||
|
||||
EPEL 저장소는 openocd libftdi-devel libftdi-python에 필요합니다.
|
||||
|
||||
```sh
|
||||
wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
|
||||
sudo yum install epel-release-7-5.noarch.rpm
|
||||
yum update
|
||||
yum groupinstall “Development Tools”
|
||||
yum install python-setuptools python-numpy
|
||||
easy_install pyserial
|
||||
easy_install pexpect
|
||||
easy_install toml
|
||||
easy_install pyyaml
|
||||
easy_install cerberus
|
||||
yum install openocd libftdi-devel libftdi-python python-argparse flex bison-devel ncurses-devel ncurses-libs autoconf texinfo libtool zlib-devel cmake vim-common
|
||||
```
|
||||
|
||||
:::info
|
||||
You may want to also install `python-pip` and `screen`.
|
||||
:::
|
||||
|
||||
## GCC 툴체인 설치
|
||||
|
||||
<!-- GCC toolchain documentation used for all Linux platforms to build NuttX -->
|
||||
|
||||
아래 스크립트로 GCC 7-2017-q4를 설치합니다.
|
||||
|
||||
:::warning
|
||||
This version of GCC is out of date.
|
||||
At time of writing the current version on Ubuntu is `9-2020-q2-update` (see [focal nuttx docker file](https://github.com/PX4/PX4-containers/blob/master/docker/Dockerfile_nuttx-focal#L28))
|
||||
:::
|
||||
|
||||
```sh
|
||||
pushd .
|
||||
cd ~
|
||||
wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
|
||||
tar -jxf gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
|
||||
exportline="export PATH=$HOME/gcc-arm-none-eabi-7-2017-q4-major/bin:\$PATH"
|
||||
if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
||||
popd
|
||||
```
|
||||
|
||||
이제 시스템을 다시 시작하십시오.
|
||||
|
||||
**Troubleshooting**
|
||||
|
||||
다음 명령을 입력하여 버전을 확인하십시오.
|
||||
|
||||
```sh
|
||||
arm-none-eabi-gcc --version
|
||||
```
|
||||
|
||||
출력 결과는 다음과 비슷하여야 합니다.
|
||||
|
||||
```sh
|
||||
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
|
||||
Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
```
|
||||
|
||||
<!-- import docs ninja build system -->
|
||||
|
||||
## Ninja 빌드 시스템
|
||||
|
||||
[Ninja](https://ninja-build.org/) is a faster build system than _Make_ and the PX4 _CMake_ generators support it.
|
||||
|
||||
Ubuntu Linux에서는 일반 저장소에서 자동으로 설치할 수 있습니다.
|
||||
|
||||
```sh
|
||||
sudo apt-get install ninja-build -y
|
||||
```
|
||||
|
||||
다른 시스템은 패키지 관리자에 Ninja를 포함하지 않을 수 있습니다.
|
||||
이 경우 대안은 바이너리를 다운로드하여 경로에 추가하는 것입니다.
|
||||
|
||||
```sh
|
||||
mkdir -p $HOME/ninja
|
||||
cd $HOME/ninja
|
||||
wget https://github.com/martine/ninja/releases/download/v1.6.0/ninja-linux.zip
|
||||
unzip ninja-linux.zip
|
||||
rm ninja-linux.zip
|
||||
exportline="export PATH=$HOME/ninja:\$PATH"
|
||||
if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
||||
. ~/.profile
|
||||
```
|
||||
Reference in New Issue
Block a user