LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-31-2007, 05:12 PM   #1
leruma
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Problem compiling GTK


Hi all, I have a problem compiling gtk+-2.10.8 libaries. I run configure and everything goes right(no errors). But when I run make something goes wrong, I see this error:

.0.so /usr/local/lib/libcairo.so /usr/local/lib/libfreetype.so -lz -lpng12 -lfontconfig -lXext -lXrender -lX11 -lXinerama -lXrandr -lXcursor -lXfixes /home/leron/Desktop/gtk+-2.10.8/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_bookmark_file_get_title'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_is_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_description'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_size'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_free'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_register_static_simple'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_pdf_surface_create'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_surface_set_fallback_resolution'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_load_from_file'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_visited'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_modified'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_key_file_set_double'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_mime_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_is_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_has_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_key_file_get_double'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_applications'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_ps_surface_set_size'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_uris'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_new'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_description'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_set_title'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_surface_get_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_to_file'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_add_group'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_pdf_surface_create_for_stream'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_add_application'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_remove_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_mime_type'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_move_item'
./.libs/libgtk-x11-2.0.so: undefined reference to `cairo_pdf_surface_set_size'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_groups'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_app_info'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_bookmark_file_get_added'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/home/leron/Desktop/gtk+-2.10.8/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/leron/Desktop/gtk+-2.10.8/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/leron/Desktop/gtk+-2.10.8/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/leron/Desktop/gtk+-2.10.8'
make: *** [all] Error 2


I have GLib is 2.12. and Pango is 1.14. instaled.
Does someone know why this happend?
Thanks a lot
 
Old 02-01-2007, 02:04 AM   #2
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
You're missing some -dev packages. How about the X11 dev ones?
 
Old 02-01-2007, 08:17 AM   #3
leruma
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
It seems that libX11-dev package is installed. Could be that it's an old version of it?
If anyone knows something please help me thanksleronleron
 
Old 02-02-2007, 04:14 AM   #4
leruma
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I've solved the error. The problem was that GLib was not installed on the default directory. Including the GLib path on the ./configure everything is perfect.

Thanks a lot
 
Old 02-15-2007, 04:15 AM   #5
vasudevan_ms
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
gtk compilation error

Quote:
Originally Posted by leruma
I've solved the error. The problem was that GLib was not installed on the default directory. Including the GLib path on the ./configure everything is perfect.

Thanks a lot
Hi leruma,

I got the same error like you when compiling gtk.
And you have mentioned that you solved it by including the path in ./configure. How you did this ? I am including the glib path in LD_LIBRARY_PATH environ variable.But still i get those errors. Please help.

-Vasu
 
Old 02-21-2007, 10:25 AM   #6
Chris Johnson
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
I've got the same problem installing gtk+-2.10.9. X11 dev package (2:1.0.0-0ubuntu9) is installed, and I've installed glib 2.12.9 successfully from source using the standard "./configure, make, make install" routine, so I think this should be in the default directory.

Can I second the question asked by vasudevan_ms as to how one informs ./configure of the Glib install directory, and ask if there might be anything else causing the problem?
 
Old 02-22-2007, 04:38 PM   #7
rmcgowan
LQ Newbie
 
Registered: Feb 2007
Location: Sunnyvale CA
Distribution: Debian etch
Posts: 1

Rep: Reputation: 0
I had this same error message, while trying to compile MPlayer 1.0rc1 on my Debian etch system. There were three link errors:

/usr/lib/libgtk-x11-2.0.so: undefined reference to `g_type_register_static_simple'
/usr/lib/libgtk-x11-2.0.so: undefined reference to `atk_relation_add_target'
/usr/lib/libgtk-x11-2.0.so: undefined reference to `g_object_compat_control'

My solution used these steps. First, I had to figure out where these routines were defined. I did it as follows:

cd /usr/lib
nm -DA *.so | egrep 'T (g_type_register_static_simple|atk_relation_add_target|g_object_compat_control)'

This gave me two library names:
libatk-1.0.so:0000d100 T atk_relation_add_target
libgobject-2.0.so:0000a810 T g_object_compat_control
libgobject-2.0.so:0002a7b0 T g_type_register_static_simple

I then set up my configure so that CFLAGS included this:

'-L/usr/lib -lgobject-2.0 -latk-1.0'

The 'make' then ran to completion.

I hope this helps someone

Bob
 
Old 07-03-2007, 04:45 AM   #8
sar_van81
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
leruma:

i downloaded and compiled gtk+-2.10.13 and got the same error u got. can you say me how did you solve this ? i mean you said
Quote:
Including the GLib path on the ./configure everything is perfect.
can you say me how?
thanks in advance,
saravanan.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PROBLEM WHILE COMPILING gtk+ in suse 10.1 koolhead17 SUSE / openSUSE 2 07-20-2006 12:46 PM
problem compiling gaim (GTK+ 2.0 not found) JonEtc Linux - Software 3 10-15-2005 07:14 PM
Problem compiling gtk+-2.6.7 with SuSE 9.2 LegendBreath Linux - Software 1 04-21-2005 01:08 PM
Problem with GTK+ compiling Tsukasa Linux - Software 13 10-28-2004 12:30 AM
Problem when compiling gtk-doc on slackware (9.0) sebemi Slackware 0 09-06-2003 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration