[vtkusers] Binding vtk library
Erick andres Perez alday
erickandres.perezalday at manchester.ac.uk
Sun Dec 7 18:35:43 EST 2014
I'm having problems binding the vtk library 5.8 (or 5.10) with a c++ code in ubuntu 12.04. I previously linked the 5.8 version manually using "-s /usr/lib/libvtkFiltering.so.5.8" when I compiled it. Unfortunatelly, I wipped out my Desktop. And this is not working anymore. Also, when I download the 5.8 version and installed it, I got:
[ 5%] Building C object Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5F.c.o
/home/e/Downloads/VTK/Utilities/vtkhdf5/src/H5F.c: In function ‘H5F_build_actual_name’:
/home/e/Downloads/VTK/Utilities/vtkhdf5/src/H5F.c:2223:12: error: ‘S_IFLNK’ undeclared (first use in this function)
/home/e/Downloads/VTK/Utilities/vtkhdf5/src/H5F.c:2223:12: note: each undeclared identifier is reported only once for each function it appears in
/home/e/Downloads/VTK/Utilities/vtkhdf5/src/H5F.c:2223:38: error: ‘S_IFMT’ undeclared (first use in this function)
/home/e/Downloads/VTK/Utilities/vtkhdf5/src/H5F.c:2228:27: error: ‘PATH_MAX’ undeclared (first use in this function)
make: *** [Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5F.c.o] Error 1
make: *** [Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all] Error 2
make: *** [all] Error 2
So, I installed the ubuntu vtk5-8 package:
libvtk-java, libvtk5-dev, libvtk5-qt4-dev, libvtk5.8, libvtk5.8-qt4, python-vtk, tcl-vtk, vtk-doc, vtk-examples.
But, still doesn't work.
Then, I installed the vtk5-10 version, and everything went well but I still have this binding error:
icc uvmap.cxx -Wno-deprecated -lvtkCommon -lvtkWidgets -lvtkIO -o uvconvert
In file included from /usr/include/vtk-5.8/vtkVariant.h(35),
/usr/include/vtk-5.8/vtkStdString.h(25): catastrophic error: cannot open source file "vtkstd/string"
#include <vtkstd/string> // For the superclass.
compilation aborted for uvmap.cxx (code 4)
make: *** [uvconvert] Error 4
Same error if I linked like #include "vtk-5.8/vtkCellArray.h" or #include "vtk-5.10/vtkCellArray.h"
Any help would be really apreciated.
Erick Andres Perez Alday
Biological Physics Group
3.17 Schuster Laboratory
University of Manchester
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers