GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

installating gtk+ libraries on linux fedora core machine

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
raja.geek
Familiar Face


Joined: 09 Oct 2007
Posts: 8

PostPosted: Tue Oct 23, 2007 11:13 am    Post subject: installating gtk+ libraries on linux fedora core machine Reply with quote

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...
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 404
Location: Portland, OR USA

PostPosted: Tue Oct 23, 2007 2:54 pm    Post subject: Reply with quote

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: (Plaintext)
1
2
3
4
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.
Back to top
raja.geek
Familiar Face


Joined: 09 Oct 2007
Posts: 8

PostPosted: Wed Oct 24, 2007 5:34 am    Post subject: Reply with quote

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: (Plaintext)
1
2
3
4
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
Back to top
kharrison
Familiar Face


Joined: 03 Oct 2007
Posts: 25
Location: Virginia (Northern)

PostPosted: Wed Oct 31, 2007 5:06 pm    Post subject: installating gtk+ libraries on linux fedora core machine Reply with quote

On my Fedora (7) machine, I do it the easy way by using:
Code: (Plaintext)
1
2
3
4
5

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
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 404
Location: Portland, OR USA

PostPosted: Wed Oct 31, 2007 9:56 pm    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP