LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-05-2004, 01:35 PM   #1
PeterWelzien
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Gentoo
Posts: 26

Rep: Reputation: 15
Problems with ./configure


Hi. I'm running Slackware 10.0 and I'm having trouble configuring gqview-1.4.3 and gphoto2-2.1.4. When I run ./configure for gqview I recieve the following message:

checking for GTK+ - version >= 2.2.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ >= 2.2.0 not installed.

But I have the gtk+2-2.4.3 from the installation CD installed.

When I try to configure gphoto i get the following error:

checking for libgphoto2 >= 2.1.2... yes
checking GP_CFLAGS... -I/usr/include/gphoto2
checking GP_LIBS... -lgphoto2 -lm
checking for gp_library_version in -lgphoto2... no
configure: error: Sorry, you need at least release 2.1.2 of libgphoto2

But I've downloaded and installed libgphoto2-2.1.4.

Can anybody tell me what the problem is with my system?
 
Old 07-05-2004, 01:59 PM   #2
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
looks like it can't find libraries, so maybe you have to run /sbin/ldconfig first. just guessing.
 
Old 07-05-2004, 02:07 PM   #3
PeterWelzien
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
I've tried that. It doesn't help.
 
Old 07-05-2004, 03:07 PM   #4
Minderbinder
Member
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Slackware-current
Posts: 142

Rep: Reputation: 15
Have you tried doing
Code:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
before running ./configure?
 
Old 07-06-2004, 09:56 AM   #5
PeterWelzien
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
It doesn't work either.
 
Old 07-06-2004, 10:02 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
What is your output for
gtk-config --libs

And what is the content of your /etc/ld.so.conf file ?
 
Old 07-06-2004, 10:03 AM   #7
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
where exactly is the library file? if it were in /usr/lib/pkgconfig it would seem that the export PKG_CONFIG_PATH command would do the trick.
 
Old 07-06-2004, 11:52 AM   #8
PeterWelzien
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
"gtk-config --libs" gives:

-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm

ld.so.conf:

/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/opt/kde/lib
/usr/lib/qt/lib

/usr/lib/ contains (among others):

/usr/lib/libgtk-x11-2.0.so
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0.400.3
/usr/lib/libgtk-x11-2.0.la
/usr/lib/libgtk-1.2.so.0
/usr/lib/libgtk.so
/usr/lib/libgtk.a
/usr/lib/libgtk-1.2.so.0.9.1
/usr/lib/libgtk.la

/usr/lib/pkgconfig:

gtk+-2.0.pc
gtk+-x11-2.0.pc
gtk+.pc
 
Old 07-06-2004, 11:57 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I don't know if it will help, but try to add in /etc/ld.so.conf :
/lib
/usr/lib
 
Old 07-06-2004, 01:09 PM   #10
PeterWelzien
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
I've tried that and unfourtunately it doesn't help.
 
Old 07-06-2004, 01:20 PM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
did you run ldconfig after the changes ?
 
Old 07-06-2004, 01:29 PM   #12
PeterWelzien
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
Yes.
 
Old 07-06-2004, 02:49 PM   #13
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
try to compile this program test :
Code:
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include <gtk/gtkwindow.h>

int main (int argc, char **argv)
{
    GtkWidget *window = NULL;
    gtk_init (&argc, &argv);
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_widget_show (window);
    gtk_main ();
    return (0);
}
name it gtk-test.c and compile with :
gcc `pkg-config --cflags --libs gtk+-2.0` gtk-test.c -o gtk-test
If it compiles successfully, your gtk 2 library is good
 
Old 07-07-2004, 08:50 AM   #14
PeterWelzien
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
It seemed that I was missing the atk lib. After I installed it gqview configured and compiled correctly. But I still can't configure gphoto. I get the error message:

checking for libgphoto2 >= 2.1.2... yes
checking GP_CFLAGS... -I/usr/include/gphoto2
checking GP_LIBS... -lgphoto2 -lm
checking for gp_library_version in -lgphoto2... no
configure: error: Sorry, you need at least release 2.1.2 of libgphoto2

The file config.log contains the following lines:

configure:7327: gcc -o conftest -g -O2 conftest.c -lgphoto2 -lgphoto2 -lm >&5
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin
/ld: cannot find -lgphoto2
collect2: ld returned 1 exit status

And then a piece of code.

/usr/lib/ contains the file libgphoto2_port.so.0.5.1 and some symlinks to it.
 
Old 07-07-2004, 09:49 AM   #15
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Something is wrong about your libgphoto2 library, maybe this link will help :
http://www.gphoto.org/doc/manual/FAQ...location-error
 
  


Reply



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
X Configure problems? Firewielder Linux - Hardware 9 11-02-2005 05:21 AM
configure problems divorce3 Linux - Software 1 08-18-2005 06:21 AM
./configure problems poacher Linux - Software 1 09-11-2002 01:11 AM
./configure problems KeithKessler Linux - General 5 07-15-2002 03:02 PM
./configure problems fritzlero Linux - General 0 10-23-2000 12:34 PM

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

All times are GMT -5. The time now is 03:36 PM.

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