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

Conversation

smoser-frc
Copy link
Contributor

Its not perfect, but I think this is a better over-all solution than PhotonVision/photonvision-docs#265

…lled.

Move the "is a package installed" code into a function.
The libphotonvision.so on Raspberry pi depends on libopencv-core4.5.
The code here installs that package on all aarch64 systems, as
there was not an obvious way to install on only Raspberry pi systems.

Fixes PhotonVision#748.
@@ -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

@mcm001 mcm001 merged commit a985c6c into PhotonVision:master Jan 18, 2023
MrRedness pushed a commit to MrRedness/photonvision that referenced this pull request Feb 8, 2023
…otonVision#749)

* Add and use a function in install.sh to determine if package is installed.

Move the "is a package installed" code into a function.

* Install libopencv-core4.5 on aarch64, which is likely raspberry pi.

The libphotonvision.so on Raspberry pi depends on libopencv-core4.5.
The code here installs that package on all aarch64 systems, as
there was not an obvious way to install on only Raspberry pi systems.

Fixes PhotonVision#748.

Co-authored-by: Scott Moser <smoser@brickies.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0