From: travis laduke Date: 2005-10-21T12:04:11+09:00 Subject: Re: QtRuby OS X Tiger On Oct 11, 2005, at 7:56 AM, Hans Fugal wrote: > Ok, I figured out the strange behavior and QtRuby is finally working > perfectly for me. > > The only thing I was missing was the blurb at the end of the INSTALL > file about making rubyw. This escaped me for a long time because I > could swear I did this my first time through the INSTALL file mantra, > and I figured that didn't need to be done again. > > So in summary, here is what _I_ had to do to get QtRuby working on my > Tiger system. First I built Qt (qt-mac-free-3.3.5) according to the > instructions from Trolltech in its INSTALL file, including setting > QTDIR, DYLD_LIBRARY_PATH, and PATH. Then I downloaded and untarred > qtruby-1.0.9, and changed into that directory. Then this: > > make -f Makefile.cvs > ../configure --enable-mac > cd smoke/qt > perl generate.pl > qmake -makefile > sed -i '' '1360d' x_7.cpp > make > # This is because /sw/bin/init.sh (fink) sets > # DYLD_FALLBACK_LIBRARY_PATH=: > sudo ln -s /usr/lib/libsmoke* /Developer/qt/lib > cd ../../qtruby/rubylib/qtruby > ruby extconf.rb --with-qt-dir=$QTDIR --with-smoke-dir=/usr \ > --with-smoke-include=../../../smoke > make > sudo make install > cd ../designer/rbuic > qmake -makefile > sudo make > cd ../uilib > ruby extconf.rb --with-qt-dir=$QTDIR --with-qtruby-include=../../ > qtruby > make > sudo make install > ruby=`which ruby` > rubyw=${ruby}w > sudo cp $ruby $rubyw > sudo /Developer/Tools/Rez -t APPL Carbon.r -o $rubyw > > > By the way, is it really necessary to make a new rubyw? Is there > anything wrong with running that Rez command on your only ruby > executable? It looks like the ruby on my path is the darwinports > one, I > wonder if the OS X native one doesn't need the Rez command (but I'm > sick of recompiling qtruby so I'll leave that as an exercise to the > avid reader) > > > this is impossible. i tried to get qtruby working a couple weekends, tried quite a few times and couldn't get it to work. i gave up and thought i'd come back to it later. now i found this thread and i'm trying again. anyways, here's where i get stuck now (doing make in smoke/qt): i get a bunch of errors like this right before it fails if anyone wants to take a stab at it: typeinfo for QDomNodereferenced from libsmokeqt expected to be defined in libqt.3.dylib i'm pretty sure this is because i have libqt-mt.3.dylib, but i have no idea how to tell it to look for that instead? last time i tried to do this, qtruby kept complaining about me not compiling qt with threads, so i went back and recompiled. if there's no way to help me from the fragments i've just given, what do i need to delete before i start over again? if i start compiling qt and then qtruby again, will it just write over everything, or do i have to remove it first? ps i'm using qtruby-1.0.9 and qt-mac-free-3.3.5 waiting to read his qtruby pdf tutorial thing, --travis