Repository navigation
cvcgl: build the SDK bundle WITH Dear ImGui - #369
Merged
Merged
Conversation
The published cvc/cvcgl bundle was built without imgui — cvc::gl::ImGuiOverlay was an inert stub and it exported no CVC_ENABLE_IMGUI — so GUI consumers (dbg_austin_live*, cvcgl-examples) got no working overlay and had to rebuild cvcGL from source. The stated reason for keeping imgui off the SDK step (avoid baking imgui's abs path into cvcGLTargets.cmake) is obsolete: the export is $<INSTALL_INTERFACE:imgui> / include/imgui (a relocatable link name), verified. - publish-cvcpkg.yml: join imgui to the cvcGL SDK build steps (Linux + Windows) so cvcGL builds CVC_ENABLE_IMGUI=ON; add imgui to the pycvc-gl steps (Linux + Windows) which link the now-imgui'd cvcGL (bare -limgui in its interface). - recipes/cvcgl: declare imgui a build+runtime dep (a consumer of cvc::cvcGL must have imgui in its prefix); bump cvc_revision 1 -> 2. Verified end-to-end: an imgui'd cvcGL makes the three cvcdbg demos compile AND link through cvcdbg's OWN CMakeLists (CVC_ENABLE_IMGUI inherited from the export), which is what lets the cvcdbg recipe drop its from-source cvcGL build + demo staging entirely. Follow-ups (flagged, not in this PR): pycvc-gl-cp311-cuda (dormant CUDA host) needs the same imgui prefix when enabled; downstream cvcGL consumers (volrover3) install imgui alongside cvc/cvcgl (now a runtime dep, so cvcpkg resolves it). A cleaner long-term fix is an imgui cmake-config (imgui::imgui imported target) so no consumer wires -limgui by hand.
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.
Why
The published
cvc/cvcglbundle is built without imgui. Confirmed on the installed3.4.0+cvc.1:cvcGLTargets.cmakecarries noCVC_ENABLE_IMGUI, andImGuiOverlay.hdocuments that without it the overlay class is inert. So any GUI consumer ofcvc::cvcGL(e.g.cvcgl-examples) gets a dead overlay — which is exactly why those recipes rebuild cvcGL from source with imgui instead of installing the bundle. cvcpkg exists so nobody does that.The SDK step (L631 Linux / L849 Windows) uses
-DCMAKE_PREFIX_PATH="$STAGE;$PY;$DEPS"— no imgui — so cvcGL'sfind_library(imgui)silently fails andCVC_ENABLE_IMGUIauto-turns off. imgui was deliberately kept off the SDK step to avoid baking its abs path into the export, but that reasoning is obsolete: the export is already$<INSTALL_INTERFACE:imgui>+include/imgui(a relocatable link name, not a builder path). Verified in the currentcvcGLTargets.cmake.What
publish-cvcpkg.yml— join imgui to the cvcGL SDK build steps (Linux + Windows) so cvcGL buildsCVC_ENABLE_IMGUI=ON. Also add imgui to the pycvc-gl steps (Linux + Windows), which link the now-imgui'd cvcGL and would otherwise fail on the bare-limguiit exports.cvcpkg/recipes/cvcgl/recipe.yaml— declareimguia build and runtime dep (a consumer ofcvc::cvcGLmust have imgui in its prefix), bumpcvc_revision1 → 2.Verified end-to-end
Built cvcGL with imgui locally and rebuilt a downstream consumer's GUI demos through the consumer's own
CMakeListsagainst it:CVC_ENABLE_IMGUInow appears in the exportedcvcGLTargets.cmake, the earlier#ifdef-guarded compile failure in the consumer is gone (macro inherited), and the demos compile and link.libimguiresolves once the deps lib dir is on the link path (cvcpkg's build env provides it). This is what lets a downstream recipe drop its from-source cvcGL build and justcvcpkg install cvc/cvcgl && cmake.Blast radius / follow-ups (flagged, not in this PR)
-limgui. Handled here for the in-workflow cvcGL builds.pycvc-gl-cp311-cuda(dormant CUDA host) will need the same imgui prefix when that path is enabled.cvc/cvcgl— the new runtime dep makescvcpkg installresolve it, but a source build needs the deps lib dir on the link path.imgui::imguiimported target) so cvcGL links a target and no consumer wires-limguiby hand.Republish
This needs a
publish-cvcpkg.ymlrun (dry_run=false) to producecvcgl 3.4.0+cvc.2with imgui.