8000 Fix #748 - add libopencv-core4.5 for aarch64 systems. by smoser-frc · Pull Request #749 · PhotonVision/photonvision · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix #748 - add libopencv-core4.5 for aarch64 systems. #749

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

Merged
merged 2 commits into from
Jan 18, 2023
Merged
Changes from all 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
17 changes: 16 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

package_is_installed(){
dpkg-query -W -f='${Status}' "$1" 2>/dev/null | grep -q "ok installed"
}

if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
Expand Down Expand Up @@ -50,13 +54,24 @@ else
fi

echo "Installing the JDK..."
if [ $(dpkg-query -W -f='${Status}' openjdk-11-jdk-headless 2>/dev/null | grep -c "ok installed") -eq 0 ];
if ! package_is_installed openjdk-11-jdk-headless
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we only need the JRE, but that's an issue for later

then
apt-get update
apt-get install --yes openjdk-11-jdk-headless
fi
echo "JDK installation complete."

if [ "$ARCH" == "aarch64" ]
then
if package_is_installed libopencv-core4.5
then
echo "libopencv-core4.5 already installed"
else
# libphotonlibcamera.so on raspberry pi has dep on libopencv_core
echo "Installing libopencv-core4.5 on aarch64"
apt-get install --yes libopencv-core4.5
fi
fi

echo "Downloading latest stable release of PhotonVision..."
mkdir -p /opt/photonvision
Expand Down
0