-
Notifications
You must be signed in to change notification settings - Fork 21
Workspace/open3d fix latest #33
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
base: main
Are you sure you want to change the base?
Conversation
…lations - Update Dockerfile to conditionally install CMake only for ARM64 builds, improving compatibility for Open3D source builds. - Modify setup-open3d-slam.sh to determine installation method based on system architecture, supporting both PPA for AMD64 and source for ARM64. - Adjust setup-robot-host.sh to reflect architecture-specific CMake installation, ensuring proper setup for different environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances ARM64 (aarch64/arm64) support by detecting the system architecture in setup scripts and choosing appropriate installation methods for CMake and Open3D, and updates the Dockerfile to apply the same logic.
- Add
ARCH
detection andINSTALL_METHOD
variables insetup-robot-host.sh
andsetup-open3d-slam.sh
- Conditionally upgrade or skip CMake based on architecture (source build for ARM64, default for x86_64)
- Switch Open3D installation to PPA for AMD64 and source build for ARM64, and mirror CMake logic in Dockerfile
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
scripts/setup/setup-robot-host.sh | Added architecture detection and conditional CMake installation |
scripts/setup/setup-open3d-slam.sh | Added arch-specific CMake checks and Open3D install paths (PPA vs source) |
.github/docker/Dockerfile | Made CMake install step conditional on $TARGETARCH |
fi | ||
|
||
# Determine system architecture | ||
readonly ARCH=$(uname -m) |
Copilot
AI
Jun 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Both setup scripts reimplement architecture detection. Consider extracting this into a shared helper or common script to reduce duplication.
Copilot uses AI. Check for mistakes.
echo "Upgrading CMake for ARM64 build..." | ||
${ROOT}/scripts/setup/setup-cmake.sh | ||
else | ||
echo "Using default CMake for AMD64 build..." |
Copilot
AI
Jun 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Hardcoding "AMD64" may confuse readers since $ARCH
is reported as "x86_64"; consider echoing $ARCH
or mapping it to a friendly name for consistency.
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
No description provided.