GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Sep 22, 2014 10:18 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: installating gtk+ libraries on linux fedora core machine
PostPosted: Tue Oct 23, 2007 11:13 am 
Offline
Familiar Face

Joined: Tue Oct 09, 2007 5:07 am
Posts: 8
hi all,
i am new to gtk programming...
i would like to know the procedure of installing gtk+...
i already started installing new version of gtk+(gtk+-2.12.1) ...
i changed my directory to gtk+-2.12.1 and when i give the command"./configure",
it is giving the following errors...
""checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... Requested 'atk >= 1.9.0' but version of Atk is 1.8.0
configure: error: Package requirements (glib-2.0 >= 2.13.5 atk >= 1.9.0 pango >= 1.17.3 cairo >= 1.2.0) were not met:

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details."

so anyone know the procedure after this,please let me know...
thanks in advance...
Regards,
Rajasekhar...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 2:54 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
When running configure on most modern builds, you will be warned if any of the package's dependencies are not found on your system. In your case, you need to upgrade your version of ATK.

Depending on the distribution you're using, you may be able to do this through your distro's package manager. Otherwise you'll have to install atk from source in the same way.

In your post, you can see that GTK is looking for glib-2.0 >= 2.13.5 atk >= 1.9.0 pango >= 1.17.3 cairo >= 1.2.0. You can check this yourself by using:

Code:
pkg-config --modversion atk
pkg-config --modversion glib-2.0
pkg-config --modversion pango
pkg-config --modversion cairo


Once each of those package versions is installed, run configure again.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 5:34 am 
Offline
Familiar Face

Joined: Tue Oct 09, 2007 5:07 am
Posts: 8
Micah Carrick wrote:
When running configure on most modern builds, you will be warned if any of the package's dependencies are not found on your system. In your case, you need to upgrade your version of ATK.

Depending on the distribution you're using, you may be able to do this through your distro's package manager. Otherwise you'll have to install atk from source in the same way.

In your post, you can see that GTK is looking for glib-2.0 >= 2.13.5 atk >= 1.9.0 pango >= 1.17.3 cairo >= 1.2.0. You can check this yourself by using:

Code:
pkg-config --modversion atk
pkg-config --modversion glib-2.0
pkg-config --modversion pango
pkg-config --modversion cairo


Once each of those package versions is installed, run configure again.






thanks for your reply...
after i was checking with your code it is showing the following....
[root@localhost programs]# pkg-config --modversion atk
1.8.0
[root@localhost programs]# pkg-config --modversion glib-2.0
2.13.5
[root@localhost programs]# pkg-config --modversion pango
1.6.0
[root@localhost programs]# pkg-config --modversion cairo
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found

but actually i downloaded the atk1.9.0 from ftp.gnome.org source packages...
but in the pkg-config path i don't know how to give this new version path....
please let me know if you know the procedure...
Thanks and regards,
Rajasekharreddy.B


Top
 Profile  
 
 Post subject: installating gtk+ libraries on linux fedora core machine
PostPosted: Wed Oct 31, 2007 5:06 pm 
Offline
Familiar Face

Joined: Wed Oct 03, 2007 12:28 pm
Posts: 25
Location: Virginia (Northern)
On my Fedora (7) machine, I do it the easy way by using:
Code:
yum install package-name
   or
yum update package-name

It tells you about any required dependencies, walks you through the installation process, and automates the configuration.

Alternatively, you could use the Fedora Graphical Interface:
Fedora menu->Add/Remove Software
Hit the "Search" tab and enter gtk+, check off what you want to install... and then enjoy the ride. :D


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 31, 2007 9:56 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
A note on that... if you use the Unofficial Fedora FAQ to setup YUM, you can install the latest releases using something like:

yum --enablerepo=development gtk2-devel

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group