Personal tools
You are here: Home Forum Install & build VTKViewer_GeometryFilter.cxx:85: error: 'class vtkDataObject' has no member named 'GetNumberOfCells'?????

VTKViewer_GeometryFilter.cxx:85: error: 'class vtkDataObject' has no member named 'GetNumberOfCells'?????

Up to Install & build
  • VTKViewer_GeometryFilter.cxx:85: error: 'class vtkDataObject' has no member named 'GetNumberOfCells'?????

    Posted by Daniel Tourde - Caelae.se at September 26. 2007
    Hello,

    I am trying to build salome-gui 3.2.6 with vtk 5.0.3 and gcc-4.1.2 on a gentoo box.
    While compiling the code with the patches I found on the forums I endup with:

    ../../libtool --mode=compile i686-pc-linux-gnu-g++ -march=prescott -mfpmath=sse -Os -pipe -ffriend-injection -fpermissive -O  -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread -DOMNIORB_VERSION=4 -D__x86__ -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I../../include/salome -I. -I. -I/usr/include -I/usr/include/omniORB4 -I/usr/include/COS  -I/usr/qt/3/include -DQT_THREAD_SUPPORT -DQT_CLEAN_NAMESPACE -I/usr/include/vtk-5.0  -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/usr/opencascade-6.2/ros//inc -c VTKViewer_GeometryFilter.cxx
    i686-pc-linux-gnu-g++ -march=prescott -mfpmath=sse -Os -pipe -ffriend-injection -fpermissive -O -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread -DOMNIORB_VERSION=4 -D__x86__ -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I../../include/salome -I. -I. -I/usr/include -I/usr/include/omniORB4 -I/usr/include/COS -I/usr/qt/3/include -DQT_THREAD_SUPPORT -DQT_CLEAN_NAMESPACE -I/usr/include/vtk-5.0 -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/usr/opencascade-6.2/ros//inc -c VTKViewer_GeometryFilter.cxx  -fPIC -DPIC
    VTKViewer_GeometryFilter.cxx: In member function 'virtual void VTKViewer_GeometryFilter::Execute()':
    VTKViewer_GeometryFilter.cxx:85: error: 'class vtkDataObject' has no member named 'GetNumberOfCells'
    make[3]: *** [VTKViewer_GeometryFilter.lo] Error 1
    make[3]: Leaving directory `/var/tmp/portage/sci-misc/salome-gui-3.2.6/work/salome3.2.6_SRC/GUI_SRC_3.2.6/src/VTKViewer'
    make[2]: *** [lib_VTKViewer] Error 2
    make[2]: Leaving directory `/var/tmp/portage/sci-misc/salome-gui-3.2.6/work/salome3.2.6_SRC/GUI_SRC_3.2.6/src'
    make[1]: *** [lib_src] Error 2
    make[1]: Leaving directory `/var/tmp/portage/sci-misc/salome-gui-3.2.6/work/salome3.2.6_SRC/GUI_SRC_3.2.6'
    make: *** [all] Error 2

    How can this be solved?

    Daniel
    • Re: VTKViewer_GeometryFilter.cxx:85: error: 'class vtkDataObject' has no member named 'GetNumberOfCells'?????

      Posted by Erwan ADAM at September 27. 2007
      Hello,

      As far as I know, Salome3 is not ported on vtk5 ... I tried some
      times ago but there are a lot of patches (GUI is quite easy, but
      VISU is not). Moreover, it is quite difficult to ensure compatibilities
      vtk4 - vtk5. So you need to install somewhere the last vtk4 version
      (the 4.4.2 I think).

      For information, Salome4 works with vtk5 and not vtk4 but has not
      been published for the moment.

      Cheers,

                  E.A.
Powered by Ploneboard
Document Actions