SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files
How to build Gideon with MSVC 8.0
  1. Install GTK+ and gtkmm for Win32
  2. Install boost-build

Follow this link to download and unpack boost and boost-jam distributions (boost_1_33_1.tar.bz2 and boost-jam-3.1.11-1-ntx86.zip at the time of writing): http://sourceforge.net/project/showfiles.php?group_id=7586

Setup your environment so that bjam.exe is in your PATH and BOOST_BUILD_PATH points to boost_1_33_1\tools\build\v2 directory in the boost source tree.

3. Configure boost-build

Append these two lines to boost_1_33_1\tools\build\v2\user-config.jam file:

##############################
using msvc ;
using gideon_pkgs ;
##############################

Now you should create boost_1_33_1\tools\build\v2\tools\gideon_pkgs.jam file that define compiler and linker switches necessary to compile and link with GTK+/gtkmm. Here is a sample gideon_pkgs.jam file:

############################################################ import project ;

project.initialize $(__name__) ;
project gideon_pkgs ;

rule init ( )
{

alias gideon_pkgs : : <name>gideon_pkgs : : <cxxflags>"/vd2 /DNOMINMAX -IC:/GTK/include/gtkmm-2.4 -IC:/GTK/lib/gtkmm-2.4/include -IC:/GTK/include/glibmm-2.4 -IC:/GTK/lib/glibmm-2.4/include -IC:/GTK/include/gdkmm-2.4 -IC:/GTK/lib/gdkmm-2.4/include -IC:/GTK/include/pangomm-1.4 -IC:/GTK/include/atkmm-1.6 -IC:/GTK/include/gtk-2.0 -IC:/GTK/include/sigc++-2.0 -IC:/GTK/lib/sigc++-2.0/include -IC:/GTK/include/glib-2.0 -IC:/GTK/lib/glib-2.0/include -IC:/GTK/lib/gtk-2.0/include -IC:/GTK/include/pango-1.0 -IC:/GTK/include/cairo -IC:/GTK/include/atk-1.0" <linkflags>"shell32.lib advapi32.lib /LIBPATH:C:/GTK/lib gtkmm-2.4.lib gdkmm-2.4.lib atkmm-1.6.lib gtk-win32-2.0.lib pangomm-1.4.lib glibmm-2.4.lib sigc-2.0.lib gdk-win32-2.0.lib atk-1.0.lib gdk_pixbuf-2.0.lib pangowin32-1.0.lib gdi32.lib pangocairo-1.0.lib pango-1.0.lib cairo.lib gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib intl.lib iconv.lib" ;

}
############################################################

4. Build Gideon and Examples

Open command prompt window and run these commands from the toplevel distribution directory 'gideon-*':

>bjam
...to build gideon.dll and gideon.exe

>bjam examples
...to build the examples

Note that you will need to update your PATH environment variable to point to gideon.dll (or copy it to the system directory) before you can run Gideon designer and examples.

If you need a debug version of gideon.dll (e.g. for debugging your application from within an IDE), update gideon_pkgs.jam to link with debug gtkmm libraries and use "bjam debug" command.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.