Building error related to vtk

Hi all,

I recently encountered some errors when trying to build the latest version of OGS6 on Windows. The error messages from VS2017 are listed below:

3>vtkIOXML-8.2_d.lib(vtkXMLUnstructuredGridReader.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in vtkdiff.obj
3>vtkIOXML-8.2_d.lib(vtkXMLUnstructuredGridReader.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MD_DynamicRelease’ doesn’t match value ‘MDd_DynamicDebug’ in vtkdiff.obj

The same errors also apply for vtkIOCore, vtkCommonExecutionModel, vtkCommonDataModel, etc.

I would appreciate if anyone can help.

Best regards,
Boyan

Thanks @boyanmeng for the report!

I think I got it: it was an error in the VTK Conan package. To get the the new package in your build-directory make sure to delete the file conan_install_timestamp.txt and the run cmake again.