richard.j.dale@gmail.com
4/1/2009 9:31:00 AM
On Apr 1, 3:42 am, "Saji N. Hameed" <s...@apcc21.net> wrote:
> Hi Richard,
>
> > Wt::Ruby version 0.9.1 has been released!
> > Requirements
> > * Ruby 1.8.x or 1.9.1
> > * Wt 2.2.3 or Wt 2.99.0 or greater
> > * cmake 2.6.x
> > * boost 1.35 or greater
>
> Installed wtruby without trouble, but got the following error when running
> the Hello World script you included in the annoucement
>
> /usr/lib/ruby/site_ruby/1.8/i686-linux/wthttp.so: /usr/local/lib/libsmokewt.so.1: undefined symbol: _ZTIN2Wt19WAbstractTableModelE - /usr/lib/ruby/site_ruby/1.8/i686-linux/wthttp.so (LoadError)
>
> m /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> from /usr/lib/ruby/site_ruby/1.8/wt.rb:8
> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> from hello.rb:2
>
> I have the following versions of required software
> -------------
> ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]
> wt 2.99.1-1
> cmake version 2.6-patch 3
> boost 1.37.0-1
Ah that's a but in Wt 2.99.0 that I reported on the witty-
interest@lists.sourceforge.net mailing list. The new
WAbstractTableModel class has been left out of the build and you need
to patch wt/src/CMakeLists.txt to include it:
iff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fdc683f..002ba8b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -62,6 +62,7 @@ Wt/WAbstractArea.C
Wt/WAbstractItemModel.C
Wt/WAbstractListModel.C
Wt/WAbstractProxyModel.C
+Wt/WAbstractTableModel.C
Wt/WAbstractToggleButton.C
Wt/WAccordionLayout.C
Wt/WAnchor.C
-- Richard