[vtkusers] errors when intalling VTK-6.1.0
Yi Gao
gaoyi.cn at gmail.com
Mon Dec 15 21:49:59 EST 2014
what's the gcc/g++ version you are using?
try
gcc -v
and
g++ -v
if they are 4.4.7, you may need a newer compiler.
If they are higher like 4.7.*, or 4.8.*
then it may be the problem that the compiler cmake is pointing to: the
/usr/bin/cc and /usr/bin/c++ are older (4.4.7) although you do have newer
compiler on the system. This happens often when you are on a
server/workstation where you use "module load gcc" to load higher version
of gcc/g++. However, the /usr/bin/cc and /usr/bin/c++ are still of lower
version, which come with the system.
HTH
Best,
yi
On Sun, Nov 9, 2014 at 8:58 PM, 李菲菲 <llz.leephi at 163.com> wrote:
>
> Hi everyone:
> I've made a dir VTK-build in the same dir of VTK-6.1.0, and type the
> following orders:
>
> ccmkae ../VTK-6.1.0
> make
> make intall
>
> However, when execute the "make", I met the following errors:
> 1 [ 0%] Built target VTKData
> 2 [ 0%] Building CXX object
> Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Directory.cxx.o
> 3 In file included from
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:60,
> 4 from
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:66,
> 5 from
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/char_traits.h:41,
> 6 from
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/string:42,
> 7 from
> /vol-th/home/liff/local/VTK-build/Utilities/KWSys/vtksys/stl/string:36,
> 8 from
> /vol-th/home/liff/local/VTK-build/Utilities/KWSys/vtksys/Encoding.hxx:16,
> 9 from
> /vol-th/home/liff/local/VTK-6.1.0/Utilities/KWSys/vtksys/Directory.cxx:17:
> 10
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:88:
> error: ????ize_t????has not been declared
> 11
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:
> In function ????oid std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])????
> 12
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:92:
> error: ????ize_t????was not declared in this scope
> 13
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:92:
> error: expected ????????before ????_n??~Y
> 14
> /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:92:
> error: ????_n????was not declared in this scope
>
> Do you know how to solve the problem? I've been confursed for several
> day, and thank you very much for helping.
>
> From Floria @ NSCC-TJ
>
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141215/b9175213/attachment.html>
More information about the vtkusers
mailing list