Java Wrapping VTK 8.90 fails in Windows.
It seems to work in Ubuntu 18.10 with a few warnings however it fails in Windows 10: This is the first error:
vtkConvertSelectionDomainJava.cxx.obj : error LNK2019: unresolved external symbol vtkPassInputTypeAlgorithm_Typecast referenced in function vtkConvertSelectionDomain_Typecast
vtkDataRepresentationJava.cxx.obj : error LNK2001: unresolved external symbol vtkPassInputTypeAlgorithm_Typecast
vtkViewJava.cxx.obj : error LNK2019: unresolved external symbol vtkObject_Typecast referenced in function vtkView_Typecast
vtkViewThemeJava.cxx.obj : error LNK2001: unresolved external symbol vtkObject_Typecast
bin\vtkViewsCoreJava.dll : fatal error LNK1120: 2 unresolved externals
[500/7406] Building CXX object Wrapping\Java\CMakeFiles\vt...monCoreJava.dir\CMakeFiles\vtkTypeFloat64ArrayJava.cxx.obj
ninja: build stopped: subcommand failed.
Running ninja -k 100
generates lots more errors.
Most of the errors (if not all) are related to vtk*_Typecast
as above.
Finally:
warning: [options] bootstrap class path not set in conjunction with -source 6
warning: [options] source value 6 is obsolete and will be removed in a future release
warning: [options] target value 1.6 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Setting Java Source/Target version to 1.9 (the highest I can set even though I am using Java 1.11) produces the same result with these warnings:
warning: [options] bootstrap class path not set in conjunction with -source 9
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Cc: @ben.boeckel