Build CuraEngine from source instead of AppImage extraction#299
Merged
Conversation
The AppImage-extracted + patchelf'd binary doesn't seek back to update G-code header placeholders after slicing (TIME:6666, Filament used: 0m). Building from source with Conan 2 + CMake produces a clean binary that handles the header correctly without workarounds. Key changes to Dockerfile.cura-base: - Stage 1: Build CuraEngine from source (Conan 2 + CMake, GCC 13) with Arcus and plugins disabled (not needed for headless CLI) - Stage 2: Still extract printer definitions from AppImage (JSON only) - Stage 3: Minimal runtime with binary + collected shared libs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Dockerfile.cura-baseto build CuraEngine from source using Conan 2 + CMake instead of extracting from the Cura AppImageDetails
The old approach extracted the CuraEngine binary from the ~300MB Cura AppImage, then used patchelf to fix the ELF interpreter and manually copied bundled shared libraries. This worked for slicing but the binary couldn't seek back to the G-code file to update header placeholders with real values after slicing.
The new approach:
Image size: ~135MB. Build time: ~11 min (mostly Conan deps + CuraEngine compilation).
Test plan
CuraEngine helpruns and prints version 5.12.0-j fdmprinter.def.jsonaccepted)🤖 Generated with Claude Code