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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-12-2006, 04:52 PM
|
#1
|
Member
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416
Rep:
|
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.
|
|
|
03-12-2006, 06:03 PM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep:
|
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.
|
|
|
03-12-2006, 06:56 PM
|
#3
|
Member
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416
Original Poster
Rep:
|
I forgot to mention that libgphoto2.pc is in /usr/local/lib/pkgconfig.
|
|
|
03-13-2006, 03:33 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep:
|
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.
|
|
|
03-13-2006, 03:47 AM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep:
|
If you change to root, what is the output of
pkg-config --cflags --libs libgphoto2
|
|
|
03-13-2006, 10:14 AM
|
#6
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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...
|
|
|
03-13-2006, 11:35 AM
|
#7
|
Member
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416
Original Poster
Rep:
|
Thanks for a all the help. I got it to compile after linking libgphoto2.pc to /usr/lib.
|
|
|
03-13-2006, 12:12 PM
|
#8
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 10:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|