<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>How to install Ruby bindings for VTK on Windows XP,
for Visual Studio 2003?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I got VTK sources from <A
href="http://www.vtk.org/files/release/5.0/vtk-5.0.2.zip">http://www.vtk.org/files/release/5.0/vtk-5.0.2.zip</A></FONT></DIV>
<DIV><FONT face=Arial size=2>With no sign of Ruby inside it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Then I took a ruby patch: <A
href="http://www.gfd-dennou.org/arch/ruby/products/ruby-vtk/vtk-ruby-061109.patch">http://www.gfd-dennou.org/arch/ruby/products/ruby-vtk/vtk-ruby-061109.patch</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Then, following these instructions:</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://public.kitware.com/pipermail/vtk-developers/2006-March/004064.html">http://public.kitware.com/pipermail/vtk-developers/2006-March/004064.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2>(which are kind of confusing for a Windows user) as
good as I can, I did:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial>patch -p1 < vtk-ruby-061109.patch</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>in MinGW inside of VTK folder. It generated some Ruby
stuff inside VTK folders (Ruby directory appeared in Wrappings).</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>My Ruby installer was taken from <A
href="http://rubyforge.org/frs/download.php/12751/ruby185-21.exe">http://rubyforge.org/frs/download.php/12751/ruby185-21.exe</A></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Then in CMake I set the path to Ruby executable. But what
is RUBY_INCLUDE_PATH? It seems to be for ruby.h file, but there are two ruby.h's
in my Ruby directory, and the compiling procedure worked with neither. And also
what is RUBY_LIBRARY - is it *.lib library, *.dll library or something
else?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Now I am in a process of trying MinGW for a procedure
described in Ruby's readme, which is</FONT></DIV>
<DIV><FONT face=Arial>./configure</FONT></DIV>
<DIV><FONT face=Arial>make</FONT></DIV>
<DIV><FONT face=Arial>make test</FONT></DIV>
<DIV><FONT face=Arial>make install</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but it can take some time, because I'm sort of
lacking in knowledge of how things get installed on Linux. But is it, at least,
the right way? Shall it work for VC 2003? I don't mean to cwitch to MinGW
compiler.</FONT></DIV>
<img src="https://mail1.nap.gsic.titech.ac.jp/cgi-bin/setconfirm.cgi?k=116427312511945195&u=lazunin.v.aa&d=m.titech.ac.jp" width=1 height=1>
</BODY></HTML>