LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-05-2008, 10:26 AM   #1
LinuxLiker
Member
 
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, 12:11 PM   #2
stress_junkie
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
ftp://ftp.uwsg.indiana.edu/linux/man.../main/release/

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 google.com for the phrase mandriva software repository. The result included the page
http://wiki.mandriva.com/en/Docs/Bas...oving_software.

I scanned that page looking for a link to a Mandriva software repository. This was not successful but I found this page instead.
http://wiki.mandriva.com/en/Policies/SoftwareMedia

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, 12:42 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Still Mandriva 2007 ?? There are some 'gphoto's here :
http://rpm.pbone.net/index.php3?stat...h=gphoto2&dist[]=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 ...
http://rpm.pbone.net/index.php3?stat...h=gphoto2&dist[]=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 12:48 PM. Reason: PS
 
Old 07-05-2008, 04:01 PM   #4
LinuxLiker
Member
 
Registered: Sep 2006
Location: Florida
Distribution: Ubuntu, Vector Linux, Mandriva
Posts: 70

Original Poster
Rep: Reputation: 15
Smile

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


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


All times are GMT -5. The time now is 06:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration