-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VTK: enable VTK_USE_SYSTEM_<library> for all 3rd-party dependencies #1627
Comments
#1547 has been merged, so oggtheora can now be depended on. |
OGGTHEORA will be enabled by #1632 |
Great! Thanks! I will update the VTK port as soon as the PRs are merged. |
I could not enable
|
@albertziegenhagel I think they didn't introduce it. It already exists here |
You are right. So it seems that VTK actually uses a mixed version. They have The version macros in the I think it should be easy to apply a patch to VTK so that it will work with gl2ps master, but not with the currently stable 1.4.0. @alexkaratarakis @ras0219-msft what would be the best procedure here? I don't think that having VTK do depend on gl2ps being installed with --head is a good idea. On the other hand, if we make the current master of gl2ps the stable version, this would probably not work with any future ports that assume gl2ps 1.4.0. |
Completely agree, we shouldn't do that. Every checked-in library should work with every other checked-in library. Another option would be to patch our copy of gl2ps exactly how VTK is patching it (assuming it is using the function definition from ~master). This approach might preclude us from updating to 1.4.0 however, which could be problematic if The argument against using the latest gl2ps master instead of the latest stable would be exactly as you've stated: other ports (or users) relying directly on gl2ps might break. This may or may not be concerning depending on how popular gl2ps is outside of VTK. I know VTK is pretty popular, but I don't know anything about gl2ps. If neither of the above work, I think it would be best to just mark this particular dependency as a "to look at in the future once gl2ps releases 1.4.1", at which point we can look at patching VTK to use the latest master. For now, we would just leave it having a separate compilation of gl2ps and hope it doesn't cause too many issues. |
Libharu will be enabled by #1723. I've checked which packages depend on gl2ps in homebrew-core and homebrew-science and it seems there is only OpenCASCADE is a pretty popular CAD kernel, so at least there is the potential that it becomes popular when added to vcpkg as well. Octave, being a free alternative for Matlab, is of course very popluar, but I do not know the exact reasons why one would like to build this by oneself instead of just downloading the pre-build binary packages. I would say for now we could just stick with VTK building gl2ps itself, just like Homebrew does. Maybe we are lucky and gl2ps 1.4.1 will be released before OpenCASCADE or Octave are added to vcpkg :) |
@albertziegenhagel any follow-up on this? |
There is still no gl2ps 1.4.1 as far as I can see. And VTK still depends on a version > 1.4.0 if I understand the latest commit to the gl2ps code within the VTK repository correctly [1]. So I don't think anything has changed yet... [1] https://gitlab.kitware.com/vtk/vtk/commit/fdbb98be6ef70ab8a6b6e6dfb24d6ce83647f959 |
@albertziegenhagel ,VTK update to 9.0.3-pv5.9.1,and gl2ps update version to 1.4.2,Has this list been updated? |
Currently the VTK port builds and distributes an own version for some of its 3rd-party dependencies.
These should be transitioned to use libraries build by vcpkg via the
VTK_USE_SYSTEM_<library>
option. The following libraries are still build by VTK:The text was updated successfully, but these errors were encountered: