Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ubuntu dependencies not to break ROS installation #474

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/source/_static/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ readonly ubuntu_pkgs=(
libsm6
libxext6
libgl1-mesa-glx
python3-pyqt5
python3-pyqt5.qtquick
qml-module-qtquick-controls2
qml-module-qt-labs-platform
qtdeclarative5-dev
Expand Down Expand Up @@ -124,6 +122,16 @@ elif [ -f /etc/os-release ]; then
python3 -m pip install --upgrade pip
fi

if python3 -c "import PyQt5"; then
echo "PyQt5 already installed, skipping..."
else
if [[ -d /opt/ros ]]; then
echo "ROS detected - skipping \"python3-pyqt5\" and \"python3-pyqt5.qtquick\" installation. These packages can break ROS installation so please install them manually if needed"
else
sudo apt-get install -y python3-pyqt5 python3-pyqt5.qtquick
fi
fi

dpkg -s uvcdynctrl > /dev/null 2>&1
# is uvcdynctrl installed
if [ $? -eq 0 ]; then
Expand Down