It looks like there's an incompatible usb.h coming from something else, so
libusb-dev provides a libusb-0.1 pkg-config file, libusb-0.1 supports gets
enabled but then a wrong header is used. Do you have another usb.h from
somewhere else installed to a common location (such as /usr/local/include)?
---
** [tickets:#74] Build fails on Ubuntu when libusb-dev is installed**
**Status:** new
**Milestone:** 0.9.0
**Created:** Thu Jun 05, 2014 07:45 PM UTC by Brendan
**Last Updated:** Thu Jun 05, 2014 07:46 PM UTC
**Owner:** nobody
Using GCC 4.8.2 (the version in the Ubuntu 14.04 GCC package), there is
presumably a clash between header files in the OpenOCD source tree and the
system header files in `/usr/include`. Sorry, I haven't dived into the code to
identify the proble precisely, but here's I've attached the output from `make`
as `make_output.txt` and the `config.log` produced by `configure` (I'm not
familiar with autotools - let me know if I can provide something more useful).
I got the error both on `master` (c8c10f77dcbc6297f475af7e9768593a847665c2 as I
write) and `tags/v0.8.0`. I don't need `libusb-dev` for anything else so I
haven't fixed the problem; I just uninstalled it.
---
Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel