GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat May 18, 2013 8:12 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Problem in installing GTK 2.12.9
PostPosted: Tue Jan 06, 2009 8:17 am 
Offline
Familiar Face

Joined: Tue Dec 23, 2008 7:05 am
Posts: 42
I am trying to install gtk+-2.12.9 on debian .I downloaded the package from gtk.org .But while installing I am getting the error message
checking for GLIB - version >= 2.13.5...
*** 'pkg-config --modversion glib-2.0' returned 2.15.6, but GLIB (2.12.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.13.5 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.

I already installed glib 2.15.6 but it is not solving the problem.Please help me.
Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 8:43 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hello.

I see you upgraded to Lenny and still have no luck with Gtk. I'm not sure why the things are not working as expected, since gtk-2.12.11-4 is in official repos. http://packages.debian.org/lenny/libgtk2.0-dev

Before trying to compile Gtk from source, try manually installing gtk-dev package with synaptic or whatever package manager are you using (the exact name of the package is "libgtk2.0-dev") and report back.

BTW, the compilation errors you are getting are caused by pkg-config not finding new enough libraries. I assume you installed glib and other stuff with simple "./configure && make && make install" procedure, which installs software under /usr/local, where pkg-config is not looking by default.

There are two possible solutions to this problem:
    install you libraries with "./configure --prefix=/usr && make && make install" method
    run "export LD_LIBRARY_PATH=/usr/local/lib/pkgconfig" before compiling your new libraries

Be aware though, that the first method overwrites distro-supplied files, which is generally considered "Bad Thing(TM)", and using the second method, you'll end up with two different versions of Gtk installed on you computer and will need to be very careful how you run/compile your programs.

This is why I would rather see that Gtk libraries are managed by distros native package mechanisms.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 11:09 am 
Offline
Familiar Face

Joined: Tue Dec 23, 2008 7:05 am
Posts: 42
Thanks I installed gtk2.12.9 the main purpose to install this version to support glade with gtk programs when I am compiling program usling comand
gcc -Wall -g -o tutorial main.c -export-dynamic `pkg-config --cflags --libs gtk+-2.0`

it is compiling successfully but while running ./tutorial
it is issuing some error message ./tutorial: symbol lookup error: /opt/gtk/lib/libgtk-x11-2.0.so.0: undefined symbol: pango_language_get_default

and it is not running Please suggest me the solution.
Thanks a lot in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 11:20 am 
Offline
Familiar Face

Joined: Tue Dec 23, 2008 7:05 am
Posts: 42
I set the path for pango .Now it is working thanks a lot .


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 1:51 pm 
Offline
GTK+ Guru

Joined: Thu Nov 16, 2006 5:08 am
Posts: 259
Location: INDIA
richirich wrote:

and it is not running Please suggest me the solution.


http://www.gtkforums.com/viewtopic.php?t=1753


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2009 3:20 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
@ramesh: He's not trying to set up windows environment but update linux libraries.


Top
 Profile  
 
 Post subject: random selection of versions
PostPosted: Wed Jan 07, 2009 5:58 am 
Offline
Familiar Face

Joined: Tue Dec 23, 2008 7:05 am
Posts: 42
If I am issuing the comand pkg-config --modversion gtk+-2.0it always shows 2.10.4
but after setting the path by the following comands
CPPFLAGS="-I/opt/gtk/include"
LDFLAGS="-L/opt/gtk/lib"
PKG_CONFIG_PATH="/opt/gtk/lib/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
LD_LIBRARY_PATH="/opt/gtk/lib"
PATH="/opt/gtk/bin:$PATH"
export LD_LIBRARY_PATH PATH
it again starts showing
pkg-config --modversion gtk+-2.0
2.12.9
How can I set so that it alwys use gtk 2.12.9 .
Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 07, 2009 8:32 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

One way to set those variables is to add them to your .bashrc file, but these settings will work only when you execute programs from console.

For system-wide configuration, you'll need to edit /etc/ld.so.conf (for LD_LIBRARY_PATH) and /etc/profile (for PKG_CONFIG_PATH and PATH). Ask Google for more detailed instructions about settings system-wide variables.

BTW, I don't think that you need to set CPPFLAGS and LDFLAGS, since pkg-config will output them when you'll be compiling your programs.

And I also installed Debian Lenny on my spare machine and got the gtk-2.12.11 library and all of it's dependencies installed by default, so I still don't know what went wrong when you upgraded you install.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 07, 2009 9:44 am 
Offline
Familiar Face

Joined: Tue Dec 23, 2008 7:05 am
Posts: 42
Thanks for your help but I am still not able to set the path .
PLease help me to find out the solution.
Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 07, 2009 10:02 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

I'll only show you how to edit your .bashrc, since other methods are distribution-dependent.

Navigate to your home folder and open .bashrc file (you need to show hidden files). If the file doesn't exist, simply create a new one.
Now append these lines at the end of the file:
Code:
export LD_LIBRARY_PATH=/opt/gtk/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/opt/gtk/lib/pkgconfig:$PKG_CONFIG_PATH
export PATH=/opt/gtk/bin:$PATH


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 7:00 am 
Offline
Familiar Face

Joined: Tue Dec 23, 2008 7:05 am
Posts: 42
Thanks a set these path in .bashrc. It is working fine.
Thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2009 9:11 am 
Offline
Familiar Face

Joined: Tue Dec 23, 2008 7:05 am
Posts: 42
I was running the sample program of GTK with glade earlier it was running fine but after I didi some installation of CPU transparency packages in scratchbox while running the program I am getting this error
./tutorial: symbol lookup error: ./tutorial: undefined symbol: gtk_builder_new

What could be problem ?
Please help me to find out the solution.
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 2:13 pm 
Offline
GTK+ Geek

Joined: Wed Dec 19, 2007 9:15 pm
Posts: 61
Location: Glasgow, Scotland
richirich wrote:
I was running the sample program of GTK with glade earlier it was running fine but after I didi some installation of CPU transparency packages in scratchbox while running the program I am getting this error
./tutorial: symbol lookup error: ./tutorial: undefined symbol: gtk_builder_new

What could be problem ?
Please help me to find out the solution.
Thanks


The version of GTK+ that it is using doesn't have GtkBuilder. AFAIK the Maemo 4.x GTK+ does have GtkBuilder (they backported it to 2.10).

_________________
Jabber – bcowan [at] fastmail.co.uk.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 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