[vtkusers] Building VTK

Pye Fie fie.pye at atlas.cz
Fri Dec 7 01:14:31 EST 2007


Hello.

I would like to build and install VTK and MayaVi2. 
PC: 2x Dual-core Opteron 275
OS: CentOS 5.0, kernel 2.6.18-8.1.15.el5
OS compiler: gcc version 4.2.0, gfortran

I have already built and installed python2.5.1 and other module with compiler gcc3.4.6. Now I can't build VTK. I am building with gcc3.4.6. Building stops on the following error:

[ 74%] Building CXX object IO/CMakeFiles/vtkIOTCL.dir/vtkZLibDataCompressorTcl.o
[ 74%] Building CXX object IO/CMakeFiles/vtkIOTCL.dir/vtkIOTCLInit.o
Linking CXX shared library ../bin/libvtkIOTCL.so
[ 74%] Built target vtkIOTCL
Scanning dependencies of target vtkParseOGLExt
[ 74%] Building CXX object Utilities/ParseOGLExt/CMakeFiles/vtkParseOGLExt.dir/ParseOGLExt.o
[ 74%] Building CXX object Utilities/ParseOGLExt/CMakeFiles/vtkParseOGLExt.dir/Tokenizer.o
Linking CXX executable ../../bin/vtkParseOGLExt
CMakeFiles/vtkParseOGLExt.dir/Tokenizer.o: In function `std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
Tokenizer.cxx:(.text+0x19): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
Tokenizer.cxx:(.text+0x70): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long) const'
Tokenizer.cxx:(.text+0xb0): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long) const'
Tokenizer.cxx:(.text+0xdd): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long) const'
CMakeFiles/vtkParseOGLExt.dir/Tokenizer.o: In function `Tokenizer::Tokenizer(char const*, char const*)':
Tokenizer.cxx:(.text+0x12a): undefined reference to `std::allocator<char>::allocator()'
Tokenizer.cxx:(.text+0x13b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
Tokenizer.cxx:(.text+0x14e): undefined reference to `std::allocator<char>::~allocator()'
Tokenizer.cxx:(.text+0x164): undefined reference to `std::allocator<char>::~allocator()'
Tokenizer.cxx:(.text+0x16d): undefined reference to `std::allocator<char>::allocator()'
Tokenizer.cxx:(.text+0x182): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'

The list continues. It seams that there is something wrong with OpenGL but I can't find what is wrong. Could anybody help me?
I have attached more detailed information about VTK configuration, building output and building script.

Best regards
fie pye

------------------------------------------

http://search.atlas.cz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_build.tar.gz
Type: application/x-gzip
Size: 30276 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071207/b033689c/attachment.bin>


More information about the vtkusers mailing list