[vtkusers] Re: vtk Ruby CMake error
Seiya Nishizawa
seiya at kugi.kyoto-u.ac.jp
Mon Jul 31 01:58:40 EDT 2006
Dear Chase,
Chase Yarbrough wrote:
> Hello,
>
> I am trying to build VTK with ruby wrappings. I downloaded the source
> tarball from http://www.gfd-dennou.org/arch/ruby/products/ruby-vtk/,
> untarred it and tried to CMake it with wrap_ruby and
> build_with_shared_libs ON, but get the following CMake error:
>
> Error in CMake code at
> C:/vtk ruby/VTK/wrapping/Tcl/vtkDetermineTkResources.cmake:4:
> Unknown CMake command "VTK_GET_TCL_TK_VERSON"
>
> Note that I have wrap_tcl set to OFF. Any ideas what is going on?
It seems a bug of the VTK.
The error occurs with python but tcl in original vtk
See the thread started from
http://public.kitware.com/pipermail/vtkusers/2006-February/083797.html
To avoid it, you can
1. insert "INCLUDE(${VTK_SOURCE_DIR}/CMake/vtkTclTkMacros.cmake)" to
vtkDetermineTkResources.cmake, as they said,
or
2. set "VTK_USE_TK" OFF. You can find "VTK_USE_TK" as "Advanced Value"
after you once fail to configure and see the error message and check
"Show Advanved Values".
>
> Also, I'm not sure exactly what I should be setting RUBY_INCLUDE_PATH
> and RUBY_LIBRARY to.
As you can see in "/Program
Files/CMake-*/share/CMake/Module/FindRuby.cmake",
it assume that ruby.h is at /usr/lib/ruby/1.8/i386-linux and
libruby1.8.so at /usr/lib.
It can be true, but sometimes false especially in Windows.
So you have to tell the VTK where they are.
Thanks,
Seiya Nishizawa
More information about the vtkusers
mailing list