r-windows / rtools-packages

Toolchains and libraries for R-4.0 to R-4.2 (legacy)
https://cran.r-project.org/bin/windows/Rtools/rtools40.html
BSD 3-Clause "New" or "Revised" License
54 stars 36 forks source link

Add minimal build of VTK 9.0.1 for IO capabilities. #248

Closed astamm closed 2 years ago

jeroen commented 2 years ago

Are you aware upsteam msys2 has a vtk recipe that maybe you can adapt from (remove dependencies + shared libraires)? https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-vtk/PKGBUILD

astamm commented 2 years ago

Oh I missed that. That should be helpful indeed! I am not quite clear what the differences is between this repo and what you call the upstream msys2? In the long run, should we be better off contributing here or to this upstream repo?

jeroen commented 2 years ago

The packages in upstream msys2 cannot be used with R. They are built as shared libraries, and often have many dependencies. To build an R package, you need a static library, with only important dependencies (as you did above).

But sometimes you can borrow some patches or other flags from their recipe.

astamm commented 2 years ago

It seems I have it working. What else can I do to move this forward?