Skip to content

Commit

Permalink
arch.sh: work around gazebo AUR build error and correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR committed Oct 12, 2019
1 parent bba464d commit 50c5150
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Tools/setup/arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if [[ $INSTALL_NUTTX == "true" ]]; then
# add user to dialout group (serial port access)
sudo usermod -aG uucp $USER

# Remove modem manager (interferes with PX4 serial port/USB serial usage).
# remove modem manager (interferes with PX4 serial port/USB serial usage).
sudo pacman -R modemmanager --noconfirm

# arm-none-eabi-gcc
Expand Down Expand Up @@ -124,12 +124,12 @@ if [[ $INSTALL_SIM == "true" ]]; then
jdk8-openjdk \
;

# Simulation tools
# Gazebo setup
if [[ $INSTALL_GAZEBO == "true" ]]; then
echo
echo "Installing gazebo and dependencies for PX4 simulation"

# java (jmavsim or fastrtps)
# PX4 gazebo simulation dependencies
sudo pacman -S --noconfirm --needed \
eigen3 \
hdf5 \
Expand All @@ -139,8 +139,20 @@ if [[ $INSTALL_SIM == "true" ]]; then
yay \
;

# enable multicore gazebo compilation
sudo sed -i '/MAKEFLAGS=/c\MAKEFLAGS="-j'$(($(grep -c processor /proc/cpuinfo)+2))'"' /etc/makepkg.conf

# install gazebo from AUR
yay -S gazebo --noconfirm

# fix incompatible compile flag to disable default testing that leads to build error
# see https://bitbucket.org/ignitionrobotics/ign-cmake/issues/62/compilation-failing-when-performing
pushd ~/.cache/yay/ignition-cmake/
sed -i 's/-DENABLE_TESTS_COMPILATION:BOOL=False/-DBUILD_TESTING=OFF/g' PKGBUILD
makepkg -si --noconfirm
popd

# continue installing gezebo
yay -S gazebo --noconfirm

if sudo dmidecode -t system | grep -q "Manufacturer: VMware, Inc." ; then
Expand Down

0 comments on commit 50c5150

Please sign in to comment.