VTK on conan centre

Hey guys, I wanted to ask if Kitware/VTK would consider/has considered adding a VTK recipe on Conan 2.0: C and C++ Open Source Package Manager . There might be good reasons as to why you haven’t done so already, but nonetheless I thought I would ask since I need to use VTK on a conan project and there doesn’t seem to be a great way of doing so in conan, except from writing my own recipe (which I did).

FYI there is a recipe on GitHub but not on the conan registry, but it is slightly incomplete/outdated see.

This post is more to spark a discussion on the subject and gather the community’s thoughts.

VTK maintainers are not packagers (apart the python wheel obviously) :slight_smile:

But you definitely can add and maintain a conan recipe for VTK if you want to!

1 Like

Hello,

I have a full-fledged working Conan 2 recipe for VTK 9.3.1 here gammaray/conan2_recipes/vtk/9.3.1 at build_with_conan · PauloCarvalhoRJ/gammaray · GitHub . Feel free to use it, though I recommend reviewing the configuration part (the generate() callback) and the Qt dependency.

best,

PC

1 Like

Fair, I will find some time in the coming weeks to upload it to conan centre. I would be more than happy if some of the VTK maintainers chimed in the PR for quality assurance (but also security).

Awesome, thanks a lot! Surprisingly my recipe looks awfully similar

1 Like

Of course!

2 Likes

Just for reference, there is a closed PR for a VTK recipe

The same recipe can be found in GitHub - valgur/conan-center-index: An actively maintained fork of ConanCenter with an emphasis on CV, ML and robotics capabilities on edge devices

1 Like

Thanks for link. I’m not sure if I follow why the PR was closed. Was it because the CLA was unsigned? It’s quite strange to close and lock the thread without any further comments.

Hello,

In the PR comments:


It’s quite clear what was needed to be done in order to have had the PR accepted (that one Martin Valgur user needed to sign the CLA).

best,

PC

I’ll be pushing my local recipe on github soon. Not sure if it would be useful for others but I am happy to include anyone interested and try and merge it into conan centre.