[RSDK-11420] - Use conan for cpp-sdk dep#40
Open
seanavery wants to merge 23 commits intoviam-modules:mainfrom
Open
[RSDK-11420] - Use conan for cpp-sdk dep#40seanavery wants to merge 23 commits intoviam-modules:mainfrom
seanavery wants to merge 23 commits intoviam-modules:mainfrom
Conversation
Collaborator
Author
|
NOTE: need to upload new pi base image with ssl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the viam-cpp-sdk bundled in Docker base images with Conan package management for both Jetson and Pi targets.
conanfile.pypinningviam-cpp-sdk/0.20.1make build,make package) now go through Conan (conan install+conan build)Dockerfile.base,Dockerfile.base.bullseye)libboost-all-dev,libgrpc++-dev,libprotobuf-dev, etc.)CI Changes
buildjet-2vcputobuildjet-8vcpu(SDK builds from source, OOMs on 2vcpu)actions/cachefor.conan-homeacrossbuild.yml,unit.yml,deploy.yml— first build is ~20min, cached builds are fastconan-build.ymlsmoke check intobuild.ymland deleted the redundant workflowmake conan-testwhich chains install → build → testjetson/pi) to avoid GCC 10/11 cache conflictsBullseye (Pi) Linker Fix
The SDK
libviam_rust_utils.areferences POSIX AIO symbols (aio_read,aio_write, etc.) that live inlibrton Debian Bullseye (glibc 2.31). On Jammy (glibc 2.34+) these are merged into libc. The SDK Conan package declares-lrtbut placeslibviam_rust_utils.alast in link order, after-lrtis already discarded. Fixed with-Wl,--no-as-neededin CMakeLists.txt.Base Images
New base images pushed to ghcr.io with SDK removed (image size ~70% smaller):
Known Constraint
No Linux arm64 prebuilt binaries exist on viamconan for any viam-cpp-sdk version. The SDK
conan-publish.ymlhas an arm64 runner in its matrix but packages are not appearing — likely silent CI failure. Every CI run builds the full SDK dep chain from source;actions/cacheamortizes this after the first run.Test Plan
make build→make package→ ldd clean (no libviam deps) — Canon + CImake build→make package→ ldd clean — Canon + CI0.0.7) with SDK removed0.0.7base images