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.

Popularity: 10% [?]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Technorati

One Response to “using the fox toolkit in ruby”

  1. Narasimha Raju says:

    Hi,

    I want steps to install in windows.

    Waiting for your reply.

    Regards,

    Narasimha Raju

Leave a Reply