Re: Installing gtk+ on Windows XP



Hi edgarg!!!

I cross-compile from cygwin to mingw, but I think the solution is similar.

pkg-config needs to be in the path (that means the path-variable must be set
to the directory where you find pkg-config.) Let's say your MinGW
installation is in C:\MINGW. Then you have your MinGW binaries under
C:\MINGW\BIN. So copy pkg-config to C:\MINGW\BIN. (You can modify your
path-variable under Start\Settings\Control Center\System\Extended\Enviroment
Variables (I tried to translate the german names to english - I hope you
know what I mean))
Your libraries should be under C:\MINGW\LIB  or \USR\LIB and your includes
under C:\MINGW\INCLUDE or \USR\INCLUDE. Extract your zip-files into that
directory. Simply keep the directory structure of that files. WinZIP or
WinAce should do that if you make them doing it.

Then you have to modify your *.pc files of pkg-config - at least I had to.
If it works without any modification leave it. You find them under
LIB\PKG-CONFIG

But if you'd like to you have to change your prefix. I really dont know what
to take for MinGW.
I've chosen /usr for my Cygwin

------------------------------gtk+-2.0.pc-----------------------------------
----------
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
target=win32

gtk_binary_version=2.0.0
gtk_host=i386-pc-mingw32

Name: GTK+
Description: GIMP Tool Kit (${target} target)
Version: 2.0.0
Requires: gdk-${target}-2.0 atk
Libs: -L${libdir} -lgtk-${target}-2.0
Cflags: -I${includedir}/gtk-2.0
------------------------------gtk+-2.0.pc-----------------------------------
----------

I think it is really easier to compile an application with cygwin. Or you
could use Dev-C++ (www.bloodshed.net) as an IDE. There you can set the path
for all  include fíles and libs and you won't need pkg-config.

Well, try it and please report me whether it worked.

Ciao,

Olaf Leidinger
ICQ# 158259657


----- Original Message -----
From: Edgarg
To: gtk-list gnome org
Sent: Tuesday, April 30, 2002 5:22 PM
Subject: Installing gtk+ on Windows XP


Hello everybody:

I´ve got a very silly question, sorry but I´m new on this. Well, the problem
is that I can´t get to install gtk+ on my computer (Windows XP). I have
mingw already installed. I downloaded all the *.zip files, say,
libiconv,libintl,glib,pkgconfig,dirent,gtk2.0,atk, pango, needed for gtk+. I
only see instructions for unix users and none in the page "GTK+ for Win32"
on installation. I tried to extract all this files into the mingw directory,
but when I tried to compile a simple program with the flag
`pkg-config --cflags --libs --gtk+-2.0`, it replied with a message like
gcc:  `pkg-config:no such a file or directory, the same for gtk+2.0 and
gtk/gtk.h.

Please, I need very detailed instructions on how to install this program and
compile a program with gcc, step by step. I´ll appreciate your collaboration
a lot.

Javier(edgarg epm net co)






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]