[vtkusers] Compiling VTK 6.1.0 fails on Red Hat Enterprise GNU/Linux Server release 6.3 (Santiago)

David E DeMarle dave.demarle at kitware.com
Wed Mar 12 09:53:05 EDT 2014


On Thu, Mar 6, 2014 at 6:24 PM, Omid <omidlink at gmail.com> wrote:
...

> >> I thought the reason could be that the gcc compiler is too old (4.4.6)
> >> and may not support some of the newer language features (like new). I
> >> installed the latest stable gcc (4.8.2) and tried instructing ccmake
> >> to use the new gcc using
> >>
> >> env CC=$(which gcc) CXX=$(which gcc) ccmake .
> >>
> >> or
> >>
> >> CC=$(which gcc) CXX=$(which gcc) ccmake .
> >>
> >> where $(which gcc) returns the path to the new gcc. But the output and
> >> the errors are still the same (referring to gcc 4.4.6). It looks like
> >> the new gcc is not picked up by ccmake. Doing a find grep, I don't
>
...

Is this in a new build directory? CMake won't overwrite the
CMAKE_CXX_COMPILER an CMAKE_C_COMPILER variables it picked up the first
time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140312/6f33dfff/attachment-0001.html>


More information about the vtkusers mailing list