I’m wanting to use ruby with VTK (http://public.kitware.com/VTK/).
Currently I’m getting errors compiling the ruby bindings
(VTK-Ruby):
g++ -fPIC -Wall -g -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux
-I/usr/lib/ruby/1.8/i486-linux -I. -DHAVE_VTKCONFIGURE_H
-I/usr/include/vtk -c vtkTk.cxx
In file included from vtkTk.cxx:1399:
/usr/include/vtk/vtkTk.h:26:16: error: tk.h: No such file or directory
vtkTk.cxx:343: warning: â??swig_type_info*
SWIG_TypeDynamicCast(swig_type_info*, void**)â?? defined but not used
vtkTk.cxx:366: warning: â??const char* SWIG_TypePrettyName(const
swig_type_info*)â?? defined but not used
vtkTk.cxx:492: warning: â??char* SWIG_PackVoidPtr(char*, void*, const
char*, size_t)â?? defined but not used
vtkTk.cxx:503: warning: â??const char* SWIG_UnpackVoidPtr(const char*,
void**, const char*)â?? defined but not used
vtkTk.cxx:516: warning: â??char* SWIG_PackDataName(char*, void*, size_t,
const char*, size_t)â?? defined but not used
vtkTk.cxx:531: warning: â??const char* SWIG_UnpackDataName(const char*,
void*, size_t, const char*)â?? defined but not used
vtkTk.cxx:595: warning: â??swig_type_info* SWIG_TypeQuery(const char*)â??
defined but not used
vtkTk.cxx:601: warning: â??void SWIG_TypeClientData(swig_type_info*,
void*)â?? defined but not used
vtkTk.cxx:611: warning: â??void SWIG_PropagateClientData(swig_type_info*)â??
defined but not used
vtkTk.cxx:693: warning: â??VALUE SWIG_Ruby_NewPointerObj(void*,
swig_type_info*, int)â?? defined but not used
vtkTk.cxx:719: warning: â??VALUE SWIG_Ruby_NewClassInstance(VALUE,
swig_type_info*)â?? defined but not used
vtkTk.cxx:798: warning: â??VALUE SWIG_Ruby_NewPackedObj(void*, int,
swig_type_info*)â?? defined but not used
vtkTk.cxx:810: warning: â??void SWIG_Ruby_ConvertPacked(VALUE, void*, int,
swig_type_info*, int)â?? defined but not used
vtkTk.cxx:855: warning: â??void SWIG_AsVal(VALUE, int*)â?? defined but not
used
make: *** [vtkTk.o] Error 1
The big mess of warnings is also somewhat worrisome, but I’d just like
it to compile first. I’m running Ubuntu (Breezy) with all the latest
updates. I installed vtk and tk through apt. I also made sure tk.h was
on my system:
$ find /usr/include -name tk.h
/usr/include/tcl8.4/tk-private/generic/tk.h
/usr/include/tcl8.4/tk.h
I don’t have much experience compiling my own libraries from scratch so
I’m not quite sure what I’m doing wrong.
Also it seems the ruby bindings are somewhat old and not much is
happening with them. Is there a gem out there or better documentation?
Thanks for the help!
-----Jay A.