When I first compiled avarice, I accidentally did not
have libusb-dev installed on my system. ./configure worked just fine, but every time I tried to specify
"-g -j usb", I kept getting really strange error
messages. Of course the problem is the usb access
code is all protected by #ifdef LIBUSB clauses.
I would recommend adding a chunk of code with
basically the following structure:
#ifndef HAVE_LIBUSB
if (strncmp(jtagDeviceName, "usb", 3) == 0) {
(void)fprintf(stderr,
"avarice needs to be compiled with libusb-dev\n");
exit(1);
}
#endif / HAVE_LIBUSB /
I basically wasted 2 hours tracking that little
nasty down.
waynegramlich
2008-01-26 22:14:17
When I first compiled avarice, I accidentally did not have libusb-dev installed on my system. ./configure worked just fine, but every time I tried to specify "-g -j usb", I kept getting really strange error messages. Of course the problem is the usb access code is all protected by #ifdef LIBUSB clauses. I would recommend adding a chunk of code with basically the following structure:
#ifndef HAVE_LIBUSB if (strncmp(jtagDeviceName, "usb", 3) == 0) { (void)fprintf(stderr, "avarice needs to be compiled with libusb-dev\n"); exit(1); } #endif / HAVE_LIBUSB /
I basically wasted 2 hours tracking that little nasty down.
This issue was migrated from https://sourceforge.net/p/avarice/bugs/11/