Oct 02 2007

using the fox toolkit in ruby

Category: Ruby, X Windowsetd @ 3:15 pm

The fox toolkit is a portable C++ graphical library. If you download old code (such as the nice rubyforger - that sits on top of libnet and libpcap) you may end up with some headache, so these easy steps will help to get your fox application up and running :)

Download and install the development files for the fox library:

apt-get install libfox-1.6-dev

Download the fox gem. In order to compile it, you may need to download the ruby1.8-dev package:

gem install fxruby

Once this is done, open the old file where you should find something like:

require 'fox14'

include Fox

#----- more stuff

You need to modify that to make it look something like:

require 'rubygems'
gem 'fxruby'
require 'fox16'

include Fox

#----- more stuff

And that should make it.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Slashdot
  • Technorati

Leave a Reply