# Source this file in a bourne-shell to be able to use a locally # compiled qt4ruby binding instead of the globally installed qtruby # bindings. This enables you to test new versions without installing, # or switch between different Qt versions. #################### Configuration # Directory in which # ./configure && make # was run: BASE=~/download/qt4-qtruby-1.4.6 #################### End of configuration # Expanding LD_LIBRARY_PATH. Must be done _before_ ruby is started # (maybe because ld.so caches it?), so cannot be done with the .rb. # LD_LIBRARY_PATH is searched for libsmokeqt.so : export LD_LIBRARY_PATH="$BASE/smoke/qt/.libs:$LD_LIBRARY_PATH" # Expanding search path for Ruby require to find .rb files and .so # ruby extensions. This could be done in the Ruby script by using # $:.unshift(directory). # We need to find Qt.rb and qtruby.rb and qtruby.so export RUBYLIB="$BASE/qtruby/rubylib/qtruby/.libs:$BASE/qtruby/rubylib/qtruby/lib:$BASE/qtruby/rubylib/qtruby/lib/Qt:$RUBYLIB" # To be able to run rbuic and rbrcc from the shell: export PATH="$LD_LIBARY_PATH:$BASE/qtruby/rubylib/designer/rbuic:$BASE/qtruby/rubylib/designer/rbrcc:$PATH" # Add Qt4 to prompt to make clear we're in a shell for testing. export PS1="$PS1[Qt4] "