Skip to content

Conversation

@dg0yt
Copy link
Contributor

@dg0yt dg0yt commented Oct 15, 2025

Resolves #47785.
Resolves #47053. Resolves #35683.

AFAICS there is no acceptable way to install embree 3 and embree 4 simultaneously under vcpkg terms. Embree 4.0.0 was released on Feb 8, 2023, so there was more than two years for reverse dependencies to get ready.

libigl was packaged as "header-only" since #14888 and again since #30617. This PR was developed with the compiled library. IMO this is the better fit for a package manager like vcpkg. It would be more obvious if it would be used by multiple reverse dependencies.

  • Upstream advertises "header-only" but also optionally compilation to a linkable library. https://libigl.github.io/
  • If there were reverse dependencies, the header-only variant would need to be compiled for every single usage. The total build time would be higher.
  • Without reverse dependencies in vcpkg, some features became unusable because dependencies changed without effective integration test.
  • However, the compiled library is really big.

But in the end, I restored the header-only configuration, now subject to a triplet variable.

The libigl port now also applies upstream's defaults for CGAL_CMAKE_EXACT_NT_BACKEND (BOOST_BACKEND) and CGAL_DISABLE_GMP (ON). In header-only mode, these options are cache variables in the user project.

@BillyONeal
Copy link
Member

microsoft/vcpkg-tool#1817 bug fix

@BillyONeal BillyONeal closed this Oct 16, 2025
@BillyONeal BillyONeal reopened this Oct 16, 2025
@dg0yt dg0yt changed the title WIP [libigl,embree] WIP Oct 17, 2025
@dg0yt dg0yt marked this pull request as ready for review October 27, 2025 04:43
@dg0yt dg0yt changed the title [libigl,embree] WIP [embree] Update (embree3) to 4.4.0 [libigl] Install library Oct 27, 2025
@dg0yt dg0yt marked this pull request as draft October 27, 2025 04:55
@dg0yt dg0yt changed the title [embree] Update (embree3) to 4.4.0 [libigl] Install library [embree] Update (embree3) to 4.4.0 [libigl] Test and fix Oct 27, 2025
@dg0yt dg0yt marked this pull request as ready for review October 27, 2025 07:12
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the submission and tests!

-DEMBREE_STATIC_LIB=${EMBREE_STATIC_LIB}
-DEMBREE_TASKING_SYSTEM:STRING=${EMBREE_TASKING_SYSTEM}
-DEMBREE_TUTORIALS=OFF
-DVCPKG_TRACE_FIND_PACKAGE=ON
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-DVCPKG_TRACE_FIND_PACKAGE=ON

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to leave trace on?

Copy link
Member

@BillyONeal BillyONeal Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! In the future do you want me to just remove this if I see it again? With my naïve understanding I assumed this would be an investigation only thing that shouldn't stay but I also know that was your feature so I err'd on the side of 'there's got to be some reason he left it here'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I shall add a comment when it needs to be merged (e.g. flaky port).

@BillyONeal BillyONeal added category:port-bug The issue is with a library, which is something the port should already support category:port-update The issue is with a library, which is requesting update new revision info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. labels Oct 27, 2025
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@BillyONeal BillyONeal merged commit fef715d into microsoft:master Oct 31, 2025
18 checks passed
@dg0yt dg0yt deleted the embree4 branch November 1, 2025 06:05
@BillyONeal BillyONeal removed the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Nov 3, 2025
theartful added a commit to theartful/polychase that referenced this pull request Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support category:port-update The issue is with a library, which is requesting update new revision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[libigl] libigl 2.6 requires Embree 4 as a dependency [embree] update to 4.4.0 [New Port Request] embree4

2 participants