Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-02

Re: How to compile in gtk+ 1.3

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Olaf Leidinger
Flávio Alberto Lopes Soares wrote 18 lines
Hello all, I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all OK, now I want to compile an aplication that I was making with gtk+1.2.10 (the interface was generated by Glade), but it always compile in gtk+1.2, I see in Makefile that it make many references to gtk+1.2, what I has to change to compile in gtk+1.3 ? Thanks in advance Flavio Alberto _______________________________________________ gtk-list mailing list http://mail.gnome.org/mailman/listinfo/gtk-list

Hello!

You might hack the configure script in the way that it doesn't look for gtk and glib and add `pkg-config gtk+-2.0 --cflags` to the CFLAGS environment variable and 'pkg-config gtk+-2.0 --libs` to LDFLAGS.

A (perhaps) more comfortable way is to change the gtk-config and glib-config file for the moment. Look for a line like:

echo -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXi ...

comment this line with a # and write the following:

echo `pkg-config gtk+-2.0 --libs`

Look for the line with the cflags and change it to

echo `pkg-config gtk+-2.0 --cflags`

And finally look for a line that sais

--version)
echo 1.2.10

or whatever and note down your version here.

Well, this all is just a really dirty hack but it works. I'd love to see a much simpler way (let's say changing to config file that it looks for GTK2 directly - but I'm not famillar with the config-file).

Good luck with your work,

Ciao

Olaf

Reply by email