[Kde-bindings] adventures with smoke and qtruby (kdebindings 3.2.3)

jm jm at transact.com.au
Wed Jun 23 00:48:44 UTC 2004


Ok here's how it went. after extracting the archive and cd-ing.

./configure --prefix=/opt/jmx --without-arts --without-java --without-gl
make

returns

cd . && /bin/sh /home/jmiller/qtplay/qtruby-cvs/admin/missing --run 
autoheader
Can't locate object method "path" via package "Autom4te::Request" 
(perhaps you forgot to load "Autom4te::Request"?) at /usr/bin/autom4te 
line 81.
autoheader2.50: autom4te failed with exit status: 1
  at /usr/bin/autoheader2.50 line 163
make: *** [config.h.in] Error 1

So I changed to the smoke directory and ran make from there, then 
change to the qtruby directory and ran make, back to the smoke 
directory and 'make install' followed by 'make install' from within the 
qtruby directory.

attempted to run main.rb from wthin 
qtruby-cvs/qtruby/rubylib/examples/qt-examples/hello
  and received

./main.rb:9: undefined method `join' for nil:NilClass (NoMethodError)

but the progress test runs if I do

  ruby progress.rb

as the files not marked executable.

Looking at hello/main.rb again it turned out to be a simple fix, so 
here's the patch

--- main.rb.orig        Wed Jun 23 10:13:13 2004
+++ main.rb     Wed Jun 23 10:13:56 2004
@@ -6,7 +6,7 @@
  a = Qt::Application.new(ARGV)
  s = ''

-s = ARGV[1..ARGV.size-1].join(' ')
+s = ARGV[0..ARGV.size-1].join(' ') if ARGV.length

  if (s.empty?)
         s = 'Hello, World'

I'll continue to play with it give the chance and let you know what 
else I find.

BTW, alex like the sig.

Jeff.

On 22/06/2004, at 6:58 PM, Alexander Kellett wrote:

> hey again jeff,
>  now mirrored at:
>     http://rubyforge.org/frs/download.php/827/qtruby-cvs-2004-06-22.tgz
>  as my connection ain't too great...
>  any feedback on the tarball would be
> really useful as then i can make
>  a slightly more official release...
>  cheers,
>  Alex




More information about the Kde-bindings mailing list