I tried lesson 2 with OCC 7.6.0 and vtk 9.2.2, the newest releases.
It crashes at "mapper->SetInputConnection(occSource->GetOutputPort());" saying access violation at vtkInformationVector GetNumerOfInformationObjects()
The reason I think maybe because OCC is using vtkCommonCore-6.1.dll instead of 9.2 version. Is there a way to solve this?
PATH=C:\OpenCASCADE-7.6.0-vc14-64\vtk-6.1.0-vc14-64\bin; // this links to vtkCommonCore-6.1.dll
C:\VTK-9.2.2\Install\bin;C:\OpenCASCADE-7.6.0-vc14-64\opencascade-7.6.0\win64\vc14\bind;
C:\OpenCASCADE-7.6.0-vc14-64\opencascade-7.6.0\win64\vc14\bin;
C:\OpenCASCADE-7.6.0-vc14-64\tbb_2017.0.100\bin\intel64\vc14;
C:\OpenCASCADE-7.6.0-vc14-64\freeimage-3.17.0-vc14-64\bin;
C:\OpenCASCADE-7.6.0-vc14-64\freetype-2.5.5-vc14-64\bin;
C:\OpenCASCADE-7.6.0-vc14-64\ffmpeg-3.3.4-64\bin;%PATH%
It crashes at "mapper->SetInputConnection(occSource->GetOutputPort());" saying access violation at vtkInformationVector GetNumerOfInformationObjects()
The reason I think maybe because OCC is using vtkCommonCore-6.1.dll instead of 9.2 version. Is there a way to solve this?
PATH=C:\OpenCASCADE-7.6.0-vc14-64\vtk-6.1.0-vc14-64\bin; // this links to vtkCommonCore-6.1.dll
C:\VTK-9.2.2\Install\bin;C:\OpenCASCADE-7.6.0-vc14-64\opencascade-7.6.0\win64\vc14\bind;
C:\OpenCASCADE-7.6.0-vc14-64\opencascade-7.6.0\win64\vc14\bin;
C:\OpenCASCADE-7.6.0-vc14-64\tbb_2017.0.100\bin\intel64\vc14;
C:\OpenCASCADE-7.6.0-vc14-64\freeimage-3.17.0-vc14-64\bin;
C:\OpenCASCADE-7.6.0-vc14-64\freetype-2.5.5-vc14-64\bin;
C:\OpenCASCADE-7.6.0-vc14-64\ffmpeg-3.3.4-64\bin;%PATH%