Closed opoplawski closed 9 years ago
Dear Orion,
Thank you for the update. Unfortunately we do not have the resources to look at this problem immediately, so if this requires a more in-depth fix, it might take a few weeks before we can solve it..
However, I took the time to look at the link you added to your post, and it states that the error should not occur with CMake, if the CMakeLists files are set up with the correct find_package and include statements. Checking the current CMakeLists files provided with the latest release of enGrid, confirms that we have (for vtk..) the correct parameters. Are you using CMake for your builds, or are you using the build scripts? If you are, then this issue might be more complex to solve..
Kind regards, F.
Sorry for not responding earlier, I don't think got notification of your response. I'm not sure you're reading the link correctly. The vtkRenderingCore_AUTOINIT is only for pre 6.1. For 6.1+ you need to use VTK_MODULE_INIT.
Yes, I partially misread the link. Our CMakeLists.txt already had the include(${VTK_USE_FILE}), which should have avoided the problem altogether. But I overlooked the now redundant vtkRenderingCore_AUTOINIT definition. It has been commented out. As we are using CMake, the VTK_MODULE_INIT call is not needed either, making an ifdef construction redundant.
The fix has been tested with vtk 6.0, 6.1 and 6.3 and enGrid compiled without issues.
Please let us know if you encounter any further problems.
Kind regards, F.
Testing building engrid git baef0ce against VTK 6.3 RC2 I get:
According to http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines there is a new macro for this in 6.1+. This patch:
switches to it. I don't know if you still want to support VTK 6.0 or not. In that case some kind of ifdef will need to be worked out.