ruby-****@sourc*****
ruby-****@sourc*****
2005年 3月 14日 (月) 21:51:46 JST
------------------------- REMOTE_ADDR = 201.9.183.1 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = http://ruby-gnome2.sourceforge.jp/cgi-bin/hiki/hiki.cgi?compile_vc ------------------------- TITLE = compile_vc KEYWORD = = Compile Guide for MS Windows (vc++) This is a guide on how to compile and install ruby-gtk2-0.12.0 on Microsoft Windows. You can use the *.[so|rb] files which you will get following this article as a library for ((<Ruby Installer For Windows|URL:http://rubyinstaller.sourceforge.net/>)). == Install VC++ This guide uses the freely available VC++ compiler for which there are links and instructions at: ((<URL:http://www.rubygarden.org/ruby?WindowsCompiler>)) Thanks to Daniel Berger for providing them. Needless to say that you could use other version of VC++ as well, as long as it has the needed tools and libraries. === Microsoft Platform SDK Download and install the SDK from ((<URL:http://www.microsoft.com/msdownload/platformsdk/sdkupdate/>)) This guide installed Windows XP SP2 version to "C:\Microsoft Platform SDK for Windows XP SP2" === Microsoft .NET Framework Version 1.1 Redistributable Package Install the .NET redistributable package from ((<URL:http://tinyurl.com/95zt>)) === .NET Framework SDK Version 1.1 Install the .NET SDK from ((<URL:http://tinyurl.com/97x7>)) It got installed to "C:\Program Files\Microsoft Visual Studio .NET 2003". === Microsoft Visual C++ Toolkit 2003 Install the VC Toolkit from ((<URL:http://msdn.microsoft.com/visualc/vctoolkit2003/>)) Installed to "C:\Microsoft Visual C++ Toolkit 2003" Edit "C:\Microsoft Visual C++ Toolkit 2003\vcvars32.bat" and add these directories to some of the Environment Variables: "C:\Microsoft Platform SDK for Windows XP SP2\Bin" and "C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin" to PATH, so it reads "Set PATH=C:\Microsoft Platform SDK for Windows XP SP2\Bin;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin;C:\Microsoft Visual C++ Toolkit 2003\bin;%PATH%" "C:\Microsoft Platform SDK for Windows XP SP2\Include" to INCLUDE, so it reads "Set INCLUDE=C:\Microsoft Platform SDK for Windows XP SP2\Include;C:\Microsoft Visual C++ Toolkit 2003\include;%INCLUDE%" By the way, thanks to Microsoft for providing these tools. Also, all the Microsoft trademarks and rights are acknowledged, even if not explicitly said. == Install GTK+ Libraries from ((<GLADE for Windows|URL:http://gladewin32.sourceforge.net/>)). Download and install the latest Development Environment, which includes the Runtime already. Installed to "C:\GTK" A line in "C:\GTK\include\glib-2.0\glib\gwin32.h" causes a compiling error. Please, edit line number 44 or so and alter it from == Compile/Install Ruby-GNOME2 Download and extract the latest ((<ruby-gtk2|URL:http://sourceforge.net/project/showfiles.php?group_id=53614>)) version. Extracted to "C:\ruby-gtk2-0.12.0" If you use a CVS version of Ruby-GNOME2, some GNOME libraries won't succeed to compile because they are lacking on Windows, that's why there is a "ruby-gtk2" package which includes only the supported libraries. So, don't worry much about compiling failures, because the compiling and installing routines of the supported libraries will work just fine, even if some libraries don't compile. Run "Start > Programs > Microsoft Visual C++ Toolkit 2003 > Visual C++ Toolkit 2003 Command Prompt" And enter these commands: C:\Microsoft Visual C++ Toolkit 2003>cd c:\ruby-gtk2-0.12.0 C:\ruby-gtk2-0.12.0>ruby extconf.rb Should result in something like: ----- Target libraries: glib, gdkpixbuf, pango, atk, gtk ----- Enter: C:\ruby-gtk2-0.12.0>nmake If everything went well, this should result in ----- SUCCEEDED: ALL FAILED: glib gdkpixbuf pango atk gtk ----- Done. Running: * Oops. I have some conflict that I need to workout, but I want to save this document as a preview release. == See Also If you have some troubles, see also ((<Install Guide for Windows>)). == ChangeLog :2005-03-14 ((<Joao Pedrosa|jpedrosa>)) * Initial release.