setup_ubuntu_20_04_lts.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright (c) 2021 Project CHIP Authors
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # Installs required packages and configuration for Raspberry Pi to be able
  18. # to build CHIP and run example/integration applications
  19. #
  20. # See docs/guides/BUILDING.md for more details
  21. set -ex
  22. sudo apt-get install -fy \
  23. g++ \
  24. gcc \
  25. git \
  26. libavahi-client-dev \
  27. libcairo2-dev \
  28. libdbus-1-dev \
  29. libgirepository1.0-dev \
  30. libglib2.0-dev \
  31. libssl-dev \
  32. ninja-build \
  33. pi-bluetooth \
  34. pkg-config \
  35. protobuf-compiler \
  36. python \
  37. python3-dev \
  38. python3-venv \
  39. unzip &&
  40. true
  41. echo "You must REBOOT after pi-bluetooth has been installed"