Tuesday, March 14, 2006

Compiling GTK+ with MS VS 8

After installing the gtk-win32-devel-2.8.14-rc1.exe from gladewin32 at the sourceforge.
To build a GTK+ project with MS VS 2005, Create Project Select Visual C++ , General, Empty Project template Additional setting to the project.

In Project Property Pages : Select Configuration Properties, Select C/C++.
Fill Additional Include Directories : C:/GTK/2.8.14/include/gtk-2.0; C:/GTK/2.8.14/lib/gtk-2.0/include;
C:/GTK/2.8.14/include/atk-1.0;
C:/GTK/2.8.14/include/cairo;
C:/GTK/2.8.14/include/pango-1.0;
C:/GTK/2.8.14/include/glib-2.0;
C:/GTK/2.8.14/lib/glib-2.0/include


Select Linker, Select General, Fill Additional Library Directories :
C:\GTK\2.8.14\lib

Select Linker, Select Input, Fill Additional Dependencies : glib-2.0.lib gtk-win32-2.0.lib gdk-win32-2.0.lib gobject-2.0.lib gdk_pixbuf-2.0.lib gthread-2.0.lib gmodule-2.0.lib pango-1.0.lib

And the project is ready to build.

No comments: