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. |
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. :) |
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. |
Thanks for both of the replys -- I'll happily try these things!
|
All times are GMT -5. The time now is 11:16 AM. |