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 03-12-2006, 04:52 PM   #1
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Rep: Reputation: 30
gphoto wont compile


I am having alot of trouble trying to compile gphoto. I first compiled libgphoto, and this is the error I get trying to compile gphoto.
checking for libgphoto2 to use... autodetect
checking for LIBGPHOTO2... Package libgphoto2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgphoto2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgphoto2' found
configure: error:
PKG_CONFIG_PATH=
LIBGPHOTO2_LIBS=
LIBGPHOTO2_CFLAGS=

* Fatal: gphoto2 requires libgphoto2 >= 2.1.99 to build.
*
* Possible solutions:
* - set PKG_CONFIG_PATH to adequate value
* - call configure with LIBGPHOTO2_LIBS=.. and LIBGPHOTO2_CFLAGS=..
* - call configure with one of the --with-libgphoto2 parameters
* - get libgphoto2 and install it:

root@Sagasto:/home/njbrain/Downloads/gphoto2-2.1.99#

Thanks in advance for any help.
 
Old 03-12-2006, 06:03 PM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649

Rep: Reputation: 148Reputation: 148
Seems like your libgphoto2 isn't installed correctly? I installed it from source on a Slackware 10.2 system and the file libgphoto2.pc is in /usr/lib/pkgconfig/libgphoto2.pc. I had no problem after that to compile gphoto2, so I suggest to check what has been installed or not when compiling libgphoto2.
 
Old 03-12-2006, 06:56 PM   #3
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Original Poster
Rep: Reputation: 30
I forgot to mention that libgphoto2.pc is in /usr/local/lib/pkgconfig.
 
Old 03-13-2006, 03:33 AM   #4
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649

Rep: Reputation: 148Reputation: 148
I don't know sufficient about that, my only idea is to check /etc/ld.so.conf if /usr/local/lib is in the line of library folders there and call ldconfig to update the linked libraries, in case this step was not done right when/after installing glibphoto2.
 
Old 03-13-2006, 03:47 AM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649

Rep: Reputation: 148Reputation: 148
If you change to root, what is the output of

pkg-config --cflags --libs libgphoto2
 
Old 03-13-2006, 10:14 AM   #6
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by njbrain
I forgot to mention that libgphoto2.pc is in /usr/local/lib/pkgconfig.
You need to make sure pkg-config knows about stuff installed in /usr/local/lib/pkgconfig.

Run this command:

$ echo $PKG_CONFIG_PATH

and make sure /usr/local/lib/pkgconfig is in it. If it's not, add it and re-run the configure script. See if PKG_CONFIG_PATH is set in your .bash_profile. If it is, add /usr/local/lib/pkgconfig as necessary. Then it will always be in the pkg-config path.

Here is what you can do:

$ cd /path/to/gphoto/build/directory
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
$ ./configure [options]

see if that works. If it does, then add /usr/local/lib/pkgconfig to your .bash_profile, as mentioned above.

Good luck!

Peace...
 
Old 03-13-2006, 11:35 AM   #7
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Original Poster
Rep: Reputation: 30
Thanks for a all the help. I got it to compile after linking libgphoto2.pc to /usr/lib.
 
Old 03-13-2006, 12:12 PM   #8
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by njbrain
Thanks for a all the help. I got it to compile after linking libgphoto2.pc to /usr/lib.
Cool. That means /usr/lib/pkgconfig is in PKG_CONFIG_PATH. Anything else you install in /usr/local that has a pkg-config resource file (a ".pc" file) might cause you the same kind of grief as libgphoto2 did. Just a heads-up.

Glad you got everything working.

Peace...
 
  


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
MythTV wont compile murffatksig Linux - Software 1 09-05-2004 06:08 AM
libvorbis wont compile dopefish Linux - Software 3 08-17-2004 05:46 AM
Pureftp wont compile chongo2002 Linux - Software 0 01-28-2004 07:53 AM
why wont it compile? saturn_vk Linux - Software 11 03-30-2003 08:11 AM
QT, urm. It wont compile anything. f0d Programming 1 04-24-2002 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 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