Introduction

The versions of libgphoto2, gphoto2 and gtkam delivered with SuSE Linux 8.1 did not support my new camera (Canon IXUS v3, if you're interested). Therefore I was obliged to recompile the whole thing.

So I took the sources from the gPhoto2 Homepage and, being at it, from the EXIF Tag Parsing Library, and created some RPMs out of them. There here if you want to use them, you're welcome, but it's at your own risks.

Packages

At a glance, all the packages I created:

Installation

The installation should be pretty straight-forward, given that you didn't yet install neither gphoto nor libgphoto2; if you did you should remove them both in the first place (as well as gtkam to avoid problems with dependencies).
This recommendation is due to the wrong numbering used by SuSE, which causes some problems. Well! So remove them:

	rpm -ev gphoto libgphoto2 gtkam

Once this is done, given that you downloaded all the RPMs in the same directory where you currently are, you can just install all the RPMs at once (this should work ;-):

	rpm -Uvh *.i386.rpm

Two additional steps need to be done with SuSE 8.1:

  1. replace /etc/hotplug/usb/usbcam with one of the templates under /usr/share/doc/packages/libgphoto2/linux-hotplug, without forgetting to adapt the script to your needs (more details are to be found in the gPhoto2 manual). Personally I use the usbcam.group template (renamed in usbcam, of course!) and change GROUP=video as it is a standard group.
  2. you should add the content of /etc/hotplug/usb/usbcam.usermap to /etc/hotplug/usb.usermap, using one of the two following commands:
    	cat /etc/hotplug/usb/usbcam.usermap >> /etc/hotplug/usb.usermap
    	/usr/lib/libgphoto2/print-usb-usermap >> /etc/hotplug/usb.usermap
    

You are now ready to use gtkam or gphoto2!

Compilation

In order to recompile the Source-RPMs, you should proceed by compiling and installing the packages in the following order (i.e. compile and install the first package before compiling —and installing— the 2nd one; etc.):

  1. libexif
  2. libexif-gtk
  3. libgphoto2
  4. libgphoto2 (!)
  5. gphoto and/or gtkam

As often so, some packages need to be installed with the options rpm -Uvh --nodeps --force.

(!) Due to the fact that some libraries within libgphoto2 use others inside the same package, the automatic discovery of dependencies doesn't work properly and catches the already installed version of these libraries (if you understand what I mean). Well, nevertheless, the result is that, in order to have correct dependencies for this package, I needed to create and install it twice, using rpm -Uvh --nodeps --force to achieve this.
There is probably a better way to solve this problem, but I suspect that this would have implied playing around with the Makefiles, which I wanted to avoid (honestly, I wouldn't know what to do).


[Maison/Home/Heim] [Linux] [RPMs]


Feedback: RPM.
Dernière modif/letzte Änderung/last modified:  Saturday, 27-Nov-2004 10:44:42 CET