!REDIRECT “https://docs.px4.io/master/ja/dev_setup/dev_env_linux_centos.html

Development Environment on CentOS

Note These instructions have not been tested with recent builds of PX4. We hope to provide fully tested instructions with the supported toolchain in the near future.

The build requires Python 2.7.5. Therefore as of this writing Centos 7 should be used. (For earlier Centos releases a side-by-side install of python v2.7.5 may be done. But it is not recommended because it can break yum.)

Common Dependencies

The EPEL repositories are required for openocd libftdi-devel libftdi-python

  1. wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  2. sudo yum install epel-release-7-5.noarch.rpm
  3. yum update
  4. yum groupinstall Development Tools
  5. yum install python-setuptools python-numpy
  6. easy_install pyserial
  7. easy_install pexpect
  8. easy_install toml
  9. easy_install pyyaml
  10. easy_install cerberus
  11. yum install openocd libftdi-devel libftdi-python python-argparse flex bison-devel ncurses-devel ncurses-libs autoconf texinfo libtool zlib-devel cmake vim-common

Note You may want to also install python-pip and screen

GCC Toolchain Installation

{% include “_gcc_toolchain_installation.md” %}

{% include “_ninja_build_system.md” %}