Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-12-2006, 01:22 PM
|
#1
|
LQ Newbie
Registered: Jul 2005
Posts: 3
Rep:
|
Installing GTK+
Hi,
I am running Suse 10 and want to install GTK+ in order to get the graphic version of UNISON running. For that I need to have GTK+ installed.
I downloaded and installed atk-1.10.3, glib-2.8.6, jpeg-6b, lablgtk-2.6.0, libtiffpic, pango-1.10.4, tiff-3.8.0, libjpeg-sh-linux-6b-5.noarch.
./Configure of gtk+-2.8.14 run fine but when I do a make I get the following error:
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_compat_control'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14'
make: *** [all] Error 2
What could I do from there on ?
Any help appreciated, thank's in advance,
Jacques
|
|
|
03-12-2006, 06:59 PM
|
#2
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Use Yast to install GTK rather than compile it yourself, it'll be much easier.
|
|
|
03-12-2006, 10:52 PM
|
#3
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
hi -- we need to see the entire command above the error starting with "gcc"
also did you install these gtk components using the default directory /usr/local and are there older versions in /usr
my first guess is you now have multiple versions of libraries on your machine which is a mess.
did you try just installing the developement packages to the libs you already have ?
|
|
|
03-21-2006, 02:38 PM
|
#4
|
LQ Newbie
Registered: Jul 2005
Posts: 3
Original Poster
Rep:
|
I would of course have liked to use rmp, but I could not find any for Suse 10, that's why I went the compling way :-(
In Yast I see that I also have gtk 1.2.10-888 installed, Could it be the problem ? In which case how do I remove it, just be seleting "delete" in Yast ? Does this really remove all conflicting files or just compile the kernel without it ?
Here is also the few line before the error:
make[4]: Entering directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la
gcc -g -O2 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o ./.libs/libgtk-x11-2.0.so -L/usr/local/lib /home/jacques/SoftBase/GTK+/gtk+-2.8.14/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib -L/opt/gnome/lib /usr/local/lib/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lXrandr -lXinerama /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libpangoft2-1.0.so /usr/local/lib/libpango-1.0.so /opt/gnome/lib/libgobject-2.0.so /opt/gnome/lib/libgmodule-2.0.so /opt/gnome/lib/libglib-2.0.so /usr/lib/libcairo.so -lpng12 /usr/lib/libglitz.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /usr/lib/libexpat.so -lXcursor -lXrender -lXext -lXfixes -lX11 /home/jacques/SoftBase/GTK+/gtk+-2.8.14/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so -lm
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_compat_control'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jacques/SoftBase/GTK+/gtk+-2.8.14'
make: *** [all] Error 2
|
|
|
03-21-2006, 07:11 PM
|
#5
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
is your glib 2.8.6 the one /opt/gnome/lib/libglib-2.0.so
the build is trying to use that one.
i bet it's not the right one
very hard to use alternate glib gtk and the like because all are called 2.0
try to put the correct version path earlier in PKG_CONFIG_PATH
and redo the config or just edit the Makefile
might be a problem at runtime which app uses which lib.
there is bound to be a decent solution to having multiple gtks
the best place to look is gtk developers
they deal with new and alternate versions as a mater of course.
|
|
|
All times are GMT -5. The time now is 08:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|