-
Notifications
You must be signed in to change notification settings - Fork 23
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 9 API changes are causing compilation errors #118
Comments
I've added a directive to test for VTK version >= 9 and selectively define
Tested on MacOS and Ubuntu. |
Hi Dave, Thanks for working on this! Our HPC environment recently dropped support for VTK8.x, so I had to recompile svSolver for VTK 9.x. It got stuck at one error where VTK attempted an interface link of MPI::MPI_C, which was not set in the CMakeFiles. I got it resolved by defining the MPI_C linking in SimVascularExternals.cmake. Suggested solution: In https://github.com/SimVascular/svSolver/blob/master/Code/CMake/SimVascularExternals.cmake#36 before invoking VTK, add an explicit MPI_C interface link.
Steps to reproduce and resolve: OS: RHEL8, GCC 12.3.0, OpenMPI 4.1.5, CMake 3.26.5, mpicc During the make process, the calling of VTK gave the following error:
The lines in the vtk-config file that produced the error were
Perhaps this link usage was new in VTK 9? Either way, after some GPT consulting, I got the error resolved with the mentioned MPI_C interface link in SimVascularExternals.cmake. I suggest to update that. Or perhaps include the link in another CMakeFile, I'm not sure what is good practice. |
@lennartvi Thanks for looking into this! I don't know why Note that we are planning to terminate svSolver development and will soon archive this repository. Our primary solver will be svMultiPhysics; See the documentation. The svMultiPhysics solver can be used with a Docker container so you won't need to build it on your HPC system. |
There were a lot of API changes from VTK 8 to VTK 9. This is causing compilation errors in some VTK calls
The fix is to add a
const
declaration, for example changeto
We need to think about how we want to make these changes, maybe add a test for VTK versions.
The text was updated successfully, but these errors were encountered: