MomentInvariantsJava link issue VS 2019 VTK 9.2.6
Hello Everyone, I have to compile VTK to generate the Java wrapper and use it in Java.
I am using CMake 3.20.5 to configure and generate a Visual Studio 2019 project.
The SLN is generated with no issues and then VS 2019 builds almost every project in the solution without any issues either, except for the MomentInvariantsJava ** project: the link fails because the void vtkDataSetAlgorithm_Typecast(void me,char dType)* function cannot be found in the referenced *.lib files.
So I had a look at where this function is implemented, and it's in the vtkCommonExecutionModelJava project.
I manually added the path to the ....\lib[configName]\vtkCommonExecutionModelJava.lib lib file to the MomentInvariantsJava project *.lib files list, and as expected it solved the issue.
Now, obviously editing manually the VS project file is not the greatest idea since there are the CMakeList files above it, but I am not experienced enough with CMake to patch it myself — I had a quick look but cannot find anything obvious.
Do you reckon I made a mistake when I configured the project in CMakeGui? I don't think so since there are others projects than MomentInvariantsJava which are using the vtkDataSetAlgorithm_Typecast from vtkCommonExecutionModelJava just fine because these projects are referencing the vtkCommonExecutionModelJava.lib? So I think there could be a slight mistake in that particular project definition
Thanks in advance!
Versions :
- VTK 9.2.6
- CMake 3.20.5
- Visual Studio 2019.