On 5/8/06, Alexander E. Patrakov <[EMAIL PROTECTED]> wrote:
2) Compile the attached C program (origin: Debian):
gcc -I/usr/include/gphoto2 -o print-udev-rules -lgphoto2 print-udev-rules.c
Works here, although I only have one camera to test.
$ ls -l /dev/usbdev*
crw-rw---- 1 root usb 189, 0 2006-05-08 13:29 /dev/usbdev1.1
crw-rw---- 1 root usb 189, 1 2006-05-08 13:29 /dev/usbdev1.2
crw-rw---- 1 root camera 189, 3 2006-05-08 22:54 /dev/usbdev1.4
Also, to compile the program from within the source tree, you can run
this command
gcc -I./libgphoto2 -I./libgphoto2_port/libgphoto2_port \
-o print-udev-rules -L./libgphoto2/.libs \
-lgphoto2 print-udev-rules.c
Unfortunately, I couldn't find a way to generate the rules until after
the package was installed. Running print-udev-rules with
LD_LIBRARY_PATH inside the source tree only produced a shell rule file
without any of the necessary keys.
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page