avrdudes / avarice

AVaRICE is a program for interfacing the Atmel JTAG ICE to GDB to allow users to debug their embedded AVR target.
GNU General Public License v2.0
38 stars 12 forks source link

[bug #11] AVR-Dragon needs libusb-dev #11

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

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/

avrs-admin commented 2 years ago

joerg_wunsch 2008-05-26 11:37:27