Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-05-2008, 09:26 AM   #1
Registered: Sep 2006
Location: Florida
Distribution: Ubuntu, Vector Linux, Mandriva
Posts: 70

Rep: Reputation: 15
Trying to compile gphoto-suite, problems with POPT_CFLAGS and POPT_LIBS

Hi --
I'm trying to install a program from a tar.bz2 archive, which is a big step for me.
I couldn't find the program gphoto-suite-2.3.1 as an rpm, so I decided to take the plunge and install the tar. I'm having a little success in that I've downloaded the software, navigated to the proper directory, extracted the tar, navigated to the new gphoto-suite directory and began compiling.
Then the compiling stopped because of this error: "Set POPT_CFLAGS and POPT_LIBS correctly." I don't know what this is asking me to do.
I thought I might need to have the proper gphoto-suite library installed, so I extracted the libgphoto2-2.4.1 library but when I tried to "cd" to it's folder and compile it, I kept getting the message that there was no such folder (even though I see it when I navigate to it from the desktop -- via gui). So I'm now at an impasse.
I need to know:
What I have to do to "Set POPT_CFLAGS and POPT_LIBS correctly;" and
Is the libgphoto folder that I extracted a directory and if so, should
I follow the same procedures you do with other tar archives -- compiling/making/make-installing?
By the way, all the terminology is new to me, so please break things down as much as you can.

Thanks a lot.
Old 07-05-2008, 11:11 AM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
It turns out that gphoto2 is available in the Mandriva software repository as an rpm. The file gphoto2-2.4.0-2mdv2008.1.i586.rpm can be found at

Since your post indicates that you would be happy to install from an rpm file if one were available then I expect that this will provide an acceptable answer rather than explain how to fix compiler errors.

It was a bit of a struggle finding this because I don't have Mandriva so I could not use the Mandriva software manager to browse the repository. This is how I found it.

First, as always, I searched for the phrase mandriva software repository. The result included the page

I scanned that page looking for a link to a Mandriva software repository. This was not successful but I found this page instead.

Eventually I found the page on the Mandriva main web site that lists mirror sites. I told it that I wanted a list of mirrors in the United States and I was presented with such a list. I looked at one of the sites that indicates that it uses the ftp protocol. Then I used the "find on this page" feature of Firefox to search for gphoto.

That's how I found the rpm file for gphoto2 in the Mandriva software repository. It was not as straightforward as I would have liked but I managed to find it.

Now you have been taught how to fish. You need never go hungry again.
Old 07-05-2008, 11:42 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,706

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Still Mandriva 2007 ?? There are some 'gphoto's here :[]=64&dist[]=54&dist[]=32&dist[]=7&dist[]=63&dist[]=49&dist[]=45&dist[]=17&dist[]=46&dist[]=48&dist[]=23&dist[]=39&dist[]=24&dist[]=50&dist[]=0&field[]=1&field[]=4
and libgphoto2 ...[]=64&dist[]=54&dist[]=32&dist[]=7&dist[]=63&dist[]=49&dist[]=45&dist[]=17&dist[]=46&dist[]=48&dist[]=23&dist[]=39&dist[]=24&dist[]=50&dist[]=0&field[]=1&field[]=2

And about compiling : you probably need to install 'libpopt0-devel' or similar.
( Hence the "..and POPT_LIBS correctly;" .. I'd guess. )

The extracting thing : 'cd tmp' ( the /home/"user"/tmp )
'tar jxvf(or zxvf if tar.gz) ../"path-to-.tar.bz2-archive" '
cd libgphoto...
'./configure --prefix=/usr/local --with-drivers=ptp2,canon'
( or your preferred options )
'make' 'su' # 'make install'

'libusb' and 'libexif' are recommended too, see INSTALL.

Good Luck !
P.S.: May be you can find a repo for Mandriva 2007 too,
like stress_junkie found for 2008.

Last edited by knudfl; 07-05-2008 at 11:48 AM. Reason: PS
Old 07-05-2008, 03:01 PM   #4
Registered: Sep 2006
Location: Florida
Distribution: Ubuntu, Vector Linux, Mandriva
Posts: 70

Original Poster
Rep: Reputation: 15

Thanks for both of the replys -- I'll happily try these things!


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
Problems with GCC suite kyle4579 Programming 7 06-07-2008 11:22 AM
gphoto wont compile njbrain Linux - Software 7 03-13-2006 11:12 AM
Errors during the test suite for Glibc-20050926 32 Bit � Cross compile x86_64 Basel Linux From Scratch 3 10-29-2005 06:45 AM
Linux Optimization Suite? comparable to WinOptimization Suite AJones Linux - Software 1 05-15-2005 05:04 AM
Kodak dc215 digital camera, latest gphoto. hair-pulling problems! mindfestival Linux - Hardware 1 04-24-2004 06:50 PM > Forums > Linux Forums > Linux - Newbie

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