Skip to content

Building Green Shoes on Windows 7

ashbb edited this page Dec 21, 2011 · 7 revisions

Building Green Shoes on Windows 7

Look at Green Shoes manual: Installing Green Shoes

After installing Ruby 1.9.2 with RubyInstaller, there is no need to do anything except doing this one operation: gem install green_shoes

All dependencies will be installed automatically.

Old Information

Note: the following is an old information

This guide is designed to help you build green_shoes on Windows 7 with the help of RubyInstaller and MinGW.

First thing is first, let's get ready to build Green Shoes!

Perparation

We'll need to install some of the initial requirements for green_shoes on windows, such as Ruby, MinGW, and GTK+.

Ruby

Download and install Ruby 1.9.2 to C:\ruby. Be sure to add C:\ruby\bin to windows PATH.

DevKit

Download and install DevKit 4.5.0 to C:\DevKit. Then run the following commands from the Windows Prompt:

cd C:\DevKit
ruby dk.rb init
ruby dk.rb install
.\devkitvars.bat

Once you have that installed you should have C:\DevKit\bin in your windows PATH.

GTK+

Lastly we'll install the GTK+ development library for windows.

Download and install GTK+ to C:\gtk and add C:\gtk\bin to windows PATH.

Now that we have all of those properly installed we're ready to build our precompiled cairo and gtk+ bindings.

Dependency Bindings

So if you have made it this far you should have a working installation of Ruby and the MinGW DevKit for Windows. As well as the GLADE and GTK+ development libraries.

From here on out we'll be using C:\DevKit\msys.bat for all our commands.

The next step is to download and install the ruby-gtk2 and rcairo bindings.

Download the ruby-gtk precompiled binaries from green_shoes source. Put these files in C:\tmp in order for the precompiled binaries to install properly.

First thing we'll need to install is glib.

glib

With the precompiled ruby-gtk binaries downloaded to C:\tmp\ruby-gtk we'll be able to use the following commands to get glib successfully installed:

cd C:\tmp\ruby-gtk\glib
make install

Once that's done we need quickly build the rcairo bindings before continuing with the ruby-gtk installation process.

rcairo

Download the rcairo precompiled binaries from green_shoes source. Put these files in C:\tmp\rcairo-1.10.0 in order for the precompiled binaries to install properly.

Now to install the rcairo bindings:

cd C:\tmp\rcairo-1.10.0
make install

Once that is complete we can move onto installing the rest of GTK+ bindings.

atk

With glib and rcairo bindings successfully installed we can move onto the atk bindings.

cd C:\tmp\ruby-gtk\atk
make install

Once this is completed move onto the pango.

pango

Pango is a dependency of green_shoes and is included in the ruby-gtk precompiled binaries.

cd C:\tmp\ruby-gtk\pango
make install

Now we've successfully installed the pango bindings it's time to get the 2 remaining bindings installed on our system.

gtk

The gtk libraries can be built once we've got pango and the rest of the bindings installed.

cd C:\tmp\ruby-gtk\gtk
make install

Once this is complete we can move onto the final step, installing gdkpixbuf.

gdkpixbuf

Let's install the gdkpixbuf bindings:

cd C:\tmp\ruby-gtk\gdpixbuf
make install

Once that's all done you should be able to successfully build the green_shoes gem.

Install Green Shoes

If you've made it this far with Ruby 1.9.2 and all the ruby-gtk2 and rcairo stuff installed, you should be able to install the green_shoes gem and start having fun with shoes!

gem install green_shoes

Be sure to let us know on the [email protected] or issue tracker if you run into and problems.