Lesson 2 fails for OCC 7.6.0 with VTK 9.2.2?

eue

Active CAD practitioner
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()
1669437119916.png



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%
 

Quaoar

Administrator
Staff member
It's assumed that the VTK versions were all set up during the CMake configuration of OpenCascade. You should recompile OpenCascade with VTK 9.2.2 to be able to use it. Did you do that?
 
  • Like
Reactions: eue

eue

Active CAD practitioner
It's assumed that the VTK versions were all set up during the CMake configuration of OpenCascade. You should recompile OpenCascade with VTK 9.2.2 to be able to use it. Did you do that?
Yes, I have reconfigured OCCT to include VTK 9.2.2. OCCT is able to compile successfully without warning.

I have Change the PATH variable to 9.2.2 VTK bin as well.

---------------------

ok, I have found out that I should not be using debug version of but released version VTK libs. Everything works fine now, thank you very much!
It was quite a exercise to config the OCC for 9.2.2 VTK, but the factory is finally churning smoke now.
 
Last edited:
Top