Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-07-2011, 08:34 PM   #1
LQ Newbie
Registered: Sep 2009
Posts: 28

Rep: Reputation: 2
configure script not detecting my Gtk+ libraries

I'm trying to build and install snd (downloaded from planetCCRMA)from source.
It requires Gtk+ so I installed the appropriate libraries (I think ?) using apt-get.

Then I ran ldcofnig.

When I run the configure script I get the following error message:
checking for GTK+ - version >= 2.12.0... no
configure: WARNING: trouble with gtk (we need version 2.12.0 or later) -- will try to make Snd without any GUI

But I am pretty sure that I have the appropriate libraries installed:
adam@debian:/usr/local/src/snd-12$ dpkg -l libgtk[0-9]* | grep ^i
ii  libgtk1.2                                 1.2.10-18.1                        The GIMP Toolkit set of widgets for X
ii  libgtk1.2-common                          1.2.10-18.1                        Common files for the GTK+ library
ii  libgtk2-perl                              1:1.190-1                          Perl interface to the 2.x series of the Gimp
ii  libgtk2.0-0                               2.12.12-1~lenny2                   The GTK+ graphical user interface library
ii  libgtk2.0-bin                             2.12.12-1~lenny2                   The programs for the GTK+ graphical user int
ii  libgtk2.0-common                          2.12.12-1~lenny2                   Common files for the GTK+ graphical user int

I tried to look inside the configure script itself, to see if I could figure out where it was looking for Gtk. Unfortunately, I know very little about shell scripts, so I was utterly lost. I'll appreciate any suggestions.

Old 05-07-2011, 08:50 PM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002

You may need to install gtk2-devel onto your system. I use fedora, so I don't know what it is called exactly for your package manager. Try using wildcards and such:
apt-get install libgtk2* gtk2-devel
It should be somewhere along those lines, but I am pretty sure it is the devel files that you need. If no go, let me know.


1 members found this post helpful.
Old 05-07-2011, 09:00 PM   #3
LQ Newbie
Registered: Sep 2009
Posts: 28

Original Poster
Rep: Reputation: 2
Thanks for the reply, looks like that was what I needed to do:

apt-get install libgtk2.0-dev
did the trick. However; when I installed this library it also install 29 MB of other, seemingly unrelated libraries and I don't know why. se la vie . . .


Note I am watching snd compile, and I can see as it goes, that it is linking against all of the other stuff that I thought was unrelated.

Last edited by phenyloxime; 05-07-2011 at 09:06 PM. Reason: Wrong about unrelated libraries.
Old 05-07-2011, 09:14 PM   #4
LQ Newbie
Registered: Sep 2009
Posts: 28

Original Poster
Rep: Reputation: 2
So the configure worked, but the build fails about halfway-ish through.
snd-draw.o: In function `g_make_cairo':
/usr/local/src/snd-12/snd-draw.c:1198: undefined reference to `gtk_widget_get_window'
collect2: ld returned 1 exit status
make: *** [snd] Error 1
Could this be a problem with my instalation of Gtk? or is it more likely a bug in the code that I downloaded.
I'm gonna start by trying to build an earlier version. . . .

. . . . . Didn't work; fails with the same error, trying to find another Gtk application to test. . . . .

Last edited by phenyloxime; 05-07-2011 at 09:40 PM.


automake, build, configure, gtk+, make

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
Having trouble using the gtk libraries. debiant Programming 1 09-06-2006 04:53 AM
Kooka isn't detecting SANE libraries quincy_the_penquin Linux - Hardware 1 08-24-2006 01:37 AM
Where are my GTK /QT libraries?? (Problems Compiling) yekrahs SUSE / openSUSE 15 12-28-2005 06:28 AM
missing gtk+ libraries mystical_reality Linux - Software 2 10-01-2005 12:30 AM
GTK Libraries??? Kane635 Linux - Software 1 11-07-2004 09:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:07 AM.

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