[vtkusers] Problems compiling VTK on Red Hat Linux

Immo Trinks trinks at esc.cam.ac.uk
Wed Jul 14 12:18:40 EDT 2004


Hi Michael,
I used the following setting on Fedora 2 and was able to compile succesfully.

# VTK Configuration options.
SET(VTK_BUILD_SHARED_LIBS "OFF")
SET(VTK_WRAP_JAVA "OFF")
SET(VTK_WRAP_PYTHON "OFF")
SET(VTK_WRAP_TCL "ON")

Immo


On Wednesday 14 Jul 2004 17:06, Michael Rivera wrote:
> Hello,
>
>  I'm am trying to compile VTK from the source code for my Intel box that
> is running Red Hat Linux. The configuration I am running is:
>
>  Red Hat Linux 9.0 and and intel processer
> gcc compiler 3.2.2
> VTK-4.2-LatestRelease.tar.gz
>
>  I get major errors for the subroutine vtkDataArraySelection.cxx. A
> sample below is included below.
> **********
>     /usr/local/src/VTK/Common/vtkDataArraySelection.cxx:36: parse error
> before `<'
>        token
>     /usr/local/src/VTK/Common/vtkDataArraySelection.cxx:37: parse error
> before `<'
>        token
>     /usr/local/src/VTK/Common/vtkDataArraySelection.cxx: In constructor
>    `    vtkDataArraySelection::vtkDataArraySelection()':
>     /usr/local/src/VTK/Common/vtkDataArraySelection.cxx:42: invalid use of
>        undefined type `class vtkDataArraySelectionArrayNamesType'
>     /usr/local/src/VTK/Common/vtkDataArraySelection.h:31: forward
> declaration of `
>        class vtkDataArraySelectionArrayNamesType'
>     /usr/local/src/VTK/Common/vtkDataArraySelection.cxx:43: invalid use of
>        undefined type `class vtkDataArraySelectionArraySettingsType'
>
> (And the list goes on because it cannot identify the defined classes)
> ***********
>
>  I also downloaded  the nightly release of this subroutine with similar
> results. I defined the VTK_DATA_ROOT, VTK_ROOT with  BUILD_EXAMPLES=ON
> BUILD_SHARED_LIBS=ON, VTK_WRAP_TCL=ON and VTK_WRAP_PYTHON=ON. Maybe I'm
> just missing something extra from my path or something like that. Maybe
> I should upgrade the compiler?
>
>  I am familiar with VTK for Windows systems. I have installed the
> binaries for both Windows 98 and Windows XP Pro. No problems there. I'd
> like to get it going on the Linux box. Any thoughts are greatly
> appreciated.
>
> Thanks,
> Michael Rivera
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list