[gphoto-devel] gphoto2 does not recognize Canon A520 anymore

pfgshield-freebsd at yahoo.com pfgshield-freebsd at yahoo.com
Wed Apr 5 17:42:13 UTC 2006


Indeed,

Just try this. If it works, please send a PR with the patch.

Pedro.

diff -ruN libusb.orig/files/patch-tests+descriptor_test.cpp
libusb/files/patch-tests+descriptor_test.cpp
--- libusb.orig/files/patch-tests+descriptor_test.cpp	Wed Dec 31 19:00:00 1969
+++ libusb/files/patch-tests+descriptor_test.cpp	Wed Apr  5 12:32:37 2006
@@ -0,0 +1,14 @@
+--- tests/descriptor_test.cpp.orig	Wed Apr  5 12:29:27 2006
++++ tests/descriptor_test.cpp	Wed Apr  5 12:31:10 2006
+@@ -34,9 +34,9 @@
+ 
+ 			cout << bus->directoryName() << "/" 
+ 				 << device->fileName() << "     "
+-				 << ios::uppercase << hex << setw(4) << setfill('0')
++				 << hex << setw(4) << setfill('0')
+ 				 << device->idVendor() << "/"
+-				 << ios::uppercase << hex << setw(4) << setfill('0')
++				 << hex << setw(4) << setfill('0')
+ 				 << device->idProduct() << endl;
+ 			if (device->Vendor() != "") {
+ 				cout << "- Manufacturer : " << device->Vendor() << endl;
diff -ruN libusb.orig/files/patch-usbpp.cpp libusb/files/patch-usbpp.cpp
--- libusb.orig/files/patch-usbpp.cpp	Wed Dec 31 19:00:00 1969
+++ libusb/files/patch-usbpp.cpp	Wed Apr  5 12:28:19 2006
@@ -0,0 +1,11 @@
+--- usbpp.cpp.orig	Wed Apr  5 12:27:10 2006
++++ usbpp.cpp	Wed Apr  5 12:27:45 2006
+@@ -9,7 +9,7 @@
+ 
+ #include <errno.h>
+ #include <cstdlib>
+-#include <stdio.h>
++#include <cstdio>
+ 
+ //remove after debugging
+ #include <iostream>


---
     Pedro F. Giffuni
     M. Sc. Industrial Eng. University of Pittsburgh
     Mech. Eng.      Universidad Nacional de Colombia
---
Yahoo is powered by FreeBSD    http://www.FreeBSD.org/


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


More information about the freebsd-ports mailing list