Skip to content

build: pull eigen + libigl into the libcvc recipes and assert CVC_ENABLE_LIBIGL in CI - #799

Merged
transfix merged 1 commit into
masterfrom
build/libcvc-requires-libigl
Oct 26, 2026
Merged

transfix merged 1 commit into
masterfrom
build/libcvc-requires-libigl

Conversation

@transfix

Copy link
Copy Markdown
Owner

Follow-up to #591. That PR merged mesh_ops.h / fem.h behind CVC_ENABLE_LIBIGL, but the libcvc recipe never declared eigen or libigl. As a result, every lane that installs dependencies from the recipe has configured with the option auto-OFF:

  • PR CI, ci-recipe, publish, and release/nightly never compiled the libigl code;
  • the published libcvc bundles ship the stubs that throw mesh_ops_unavailable.

Changes

  • Recipe dependencies. eigen and libigl become runtime dependencies of libcvc (scoped to linux/macos/windows, like pocketfft) and of libcvc-cuda. Both packages are header-only. They are compiled only into the private cvc_igl helper, so cvcTargets.cmake and the public headers never name them.
  • CI guard. package-linux, package-macos and package-windows now fail if no MeshOps.* / Fem.* tests are registered, which would mean libigl silently resolved OFF. This mirrors the existing cvcgl_* registration check. The physics-wasm lane keeps -DCVC_ENABLE_LIBIGL=OFF deliberately and is untouched.

Bundles available

All are release/shared, from cy-pca/cvcpkg#145 and #148.

Package Linux macOS Windows
eigen 5.0.1+cvc.1 x86_64, arm64 arm64, x86_64 x86_64
libigl 2.6.4+cvc.2 x86_64, arm64 arm64, x86_64 x86_64

Every lane fetches release dependencies (Windows is release-only), so nothing needs a debug bundle.

What to expect

CI on this PR is the first CI run that actually compiles and runs the libigl paths on Linux, macOS and Windows: mesh_ops_test, fem_test, cvcgl_scalar_field, cvcgl_tet_surface and the mesh_lab/fe_lab sections of cvcgl_ariadne_realize.

…BLE_LIBIGL in CI

#591 landed mesh_ops.h / fem.h behind CVC_ENABLE_LIBIGL, but the libcvc recipe
never declared eigen or libigl, so every install-deps-based lane (PR CI,
ci-recipe, publish, release/nightly) configured with the option auto-OFF:
CI never compiled the libigl code and the published libcvc bundles ship the
throwing stubs.

The bundles now exist on cvcpkg.org for every libcvc platform (eigen
5.0.1+cvc.1 and libigl 2.6.4+cvc.2, release/shared: linux x86_64 + arm64,
macos arm64 + x86_64, windows x86_64; cy-pca/cvcpkg#145, #148), and every
lane fetches release deps (Windows is release-only), so declare them as
runtime deps of libcvc (scoped to linux/macos/windows, like pocketfft) and
libcvc-cuda.

CVC_ENABLE_LIBIGL flips itself OFF when the packages are missing, which would
pass green while testing nothing, so the package-linux/macos/windows test
steps now fail unless MeshOps.* / Fem.* tests are registered (the same guard
the cvcgl_* tests already have).
@transfix
transfix merged commit df17e71 into master Oct 26, 2026
24 checks passed
@transfix
transfix deleted the build/libcvc-requires-libigl branch October 29, 2026 20:51
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.

1 participant