LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 05-07-2011, 08:34 PM   #1
phenyloxime
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:
Code:
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:
Code:
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.

----Adam
 
Old 05-07-2011, 08:50 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Hello,

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:
Code:
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.

Cheers,

Josh
 
1 members found this post helpful.
Old 05-07-2011, 09:00 PM   #3
phenyloxime
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:

Code:
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 . . .
regards,

Adam

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
phenyloxime
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Original Poster
Rep: Reputation: 2
So the configure worked, but the build fails about halfway-ish through.
Code:
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.
 
  


Reply

Tags
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/Novell 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


All times are GMT -5. The time now is 12:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration