Re: How to compile in gtk+ 1.3



Am 04 Feb 2002 09:56:05 -0200 schrieb Flávio Alberto Lopes Soares:
> 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
> gtk-list gnome org
> 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





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