Hello,
I'm trying to compile ptpcam under linux for use with a linux pc but I receive this error:
canon@testing01:~/magic-lantern/contrib/ptpcam$ make
gcc -o ptpcam myusb.c properties.c ptp.c ptpcam.c -lusb
myusb.c:32:17: fatal error: usb.h: No such file or directory
compilation terminated.
In file included from ptp.h:27:0,
from properties.c:22:
libptp-endian.h:39:0: warning: "htobe16" redefined
/usr/include/endian.h:64:0: note: this is the location of the previous definition
libptp-endian.h:40:0: warning: "htobe32" redefined
/usr/include/endian.h:69:0: note: this is the location of the previous definition
libptp-endian.h:41:0: warning: "be16toh" redefined
/usr/include/endian.h:66:0: note: this is the location of the previous definition
libptp-endian.h:42:0: warning: "be32toh" redefined
/usr/include/endian.h:71:0: note: this is the location of the previous definition
In file included from ptp.h:27:0,
from ptp.c:23:
libptp-endian.h:39:0: warning: "htobe16" redefined
/usr/include/endian.h:64:0: note: this is the location of the previous definition
libptp-endian.h:40:0: warning: "htobe32" redefined
/usr/include/endian.h:69:0: note: this is the location of the previous definition
libptp-endian.h:41:0: warning: "be16toh" redefined
/usr/include/endian.h:66:0: note: this is the location of the previous definition
libptp-endian.h:42:0: warning: "be32toh" redefined
/usr/include/endian.h:71:0: note: this is the location of the previous definition
In file included from ptp.h:27:0,
from ptpcam.c:21:
libptp-endian.h:39:0: warning: "htobe16" redefined
/usr/include/endian.h:64:0: note: this is the location of the previous definition
libptp-endian.h:40:0: warning: "htobe32" redefined
/usr/include/endian.h:69:0: note: this is the location of the previous definition
libptp-endian.h:41:0: warning: "be16toh" redefined
/usr/include/endian.h:66:0: note: this is the location of the previous definition
libptp-endian.h:42:0: warning: "be32toh" redefined
/usr/include/endian.h:71:0: note: this is the location of the previous definition
ptpcam.c:36:17: fatal error: usb.h: No such file or directory
compilation terminated.
make: *** [ptpcam] Error 1
I'm missing something?
