Archived issue #0026511
Build fails with VTK 6.3rc1
Description
Build fails with newer vtk releases,
vtkFloatingPoitnType is not declared.
See http://public.kitware.com/pipermail/vtk-developers/2012-November/027971.html
vtkFloatingPoitnType is not declared.
See http://public.kitware.com/pipermail/vtk-developers/2012-November/027971.html
Additional information
/oce/src/IVtkVTK/IVtkVTK_View.cxx: In member function ‘virtual bool IVtkVTK_View::DisplayToWorld(const gp_XY&, gp_XYZ&) const’:
/oce/src/IVtkVTK/IVtkVTK_View.cxx:152:3: error: ‘vtkFloatingPointType’ was not declared in this scope
vtkFloatingPointType* const aCoords = myRenderer->GetWorldPoint();
^
/oce/src/IVtkVTK/IVtkVTK_View.cxx:152:25: error: expected primary-expression before ‘const’
vtkFloatingPointType* const aCoords = myRenderer->GetWorldPoint();
^
/oce/src/IVtkVTK/IVtkVTK_View.cxx:153:7: error: ‘aCoords’ was not declared in this scope
if (aCoords[3] == 0.0) // Point at infinity in homogeneous coordinates
^
/oce/src/IVtkVTK/IVtkVTK_View.cxx:158:25: error: ‘aCoords’ was not declared in this scope
theWorldPnt = gp_XYZ (aCoords[0] / aCoords[3], aCoords[1] / aCoords[3], aCoords[2] / aCoords[3]);
^
adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/build.make:330: recipe for target 'adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o' failed
make[2]: *** [adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o] Error 1
CMakeFiles/Makefile2:1495: recipe for target 'adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/all' failed
make[1]: *** [adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
/oce/src/IVtkVTK/IVtkVTK_View.cxx:152:3: error: ‘vtkFloatingPointType’ was not declared in this scope
vtkFloatingPointType* const aCoords = myRenderer->GetWorldPoint();
^
/oce/src/IVtkVTK/IVtkVTK_View.cxx:152:25: error: expected primary-expression before ‘const’
vtkFloatingPointType* const aCoords = myRenderer->GetWorldPoint();
^
/oce/src/IVtkVTK/IVtkVTK_View.cxx:153:7: error: ‘aCoords’ was not declared in this scope
if (aCoords[3] == 0.0) // Point at infinity in homogeneous coordinates
^
/oce/src/IVtkVTK/IVtkVTK_View.cxx:158:25: error: ‘aCoords’ was not declared in this scope
theWorldPnt = gp_XYZ (aCoords[0] / aCoords[3], aCoords[1] / aCoords[3], aCoords[2] / aCoords[3]);
^
adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/build.make:330: recipe for target 'adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o' failed
make[2]: *** [adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o] Error 1
CMakeFiles/Makefile2:1495: recipe for target 'adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/all' failed
make[1]: *** [adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
Public activity
5 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Participant.
[revision removed]
Detailed log of new commits:
Author: abv
Date: Thu Jan 14 08:34:44 2016 +0300
0026511: Build fails with VTK 6.3rc1
Obsolete typedef "vtkFloatingPointType" is replaced by "double" in VIS and DRAW
[revision removed]
Detailed log of new commits:
Author: abv
Date: Thu Jan 14 08:34:44 2016 +0300
0026511: Build fails with VTK 6.3rc1
Obsolete typedef "vtkFloatingPointType" is replaced by "double" in VIS and DRAW
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
The fix is in CR26511, please integrate. The change is trivial, no testing is required.
Note that CR26511 is based on CR0-IR-2016-01-13
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]