I have problem then i try to build last stable version OpenOCD on kubuntu 14.04.
Then i configure project with j-link support, system returns error with libusb 0.1 and libusb 1.x, although this libraries installed.
May be anyone solved similar problem. Output of configure and dpkg as follows:
~/openocd-0.8.0$ ./configure --enable-jlink
checking whether standard drivers can be built... yes
checking for LIBUSB1... no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead
checking for LIBUSB0... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for HIDAPI... no
configure: error: libusb-1.x or libusb-0.1 is required for the Segger J-Link JTAG Programmer
~/openocd-0.8.0$ dpkg -l | grep libusb
ii libgusb2:amd64 0.1.6-5 amd64 GLib wrapper around libusb1
ii libusb-0.1-4:amd64 2:0.1.12-23.3ubuntu1 amd64 userspace USB programming library
ii libusb-1.0-0:amd64 2:1.0.17-1ubuntu2 amd64 userspace USB programming library
ii libusb-dev 2:0.1.12-23.3ubuntu1 amd64 userspace USB programming library development files
ii libusbmuxd2 1.0.8-2ubuntu1 amd64 USB multiplexor daemon for iPhone and iPod Touch devices - library
I’ve not built OpenOCD on Ubuntu yet, but on my (ARM) Ubuntu system there is a libusb-1.0-0.dev available as well as libusb.dev. You might check whether you have something similar on the amd64 platform.
I have debian system but requirements are same, libusb-1.0-0-dev is required. libusb-dev is available but not installed in my system, libusb-1.0-0-dev is installed. I can compile openocd 0.8 in my system.
astrodreamer:
I have problem then i try to build last stable version OpenOCD on kubuntu 14.04.
Then i configure project with j-link support, system returns error with libusb 0.1 and libusb 1.x, although this libraries installed.
May be anyone solved similar problem. Output of configure and dpkg as follows:
~/openocd-0.8.0$ ./configure --enable-jlink
checking whether standard drivers can be built… yes
checking for LIBUSB1… no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead
checking for LIBUSB0… no
checking for HIDAPI… no
checking for HIDAPI… no
checking for HIDAPI… no
configure: error: libusb-1.x or libusb-0.1 is required for the Segger J-Link JTAG Programmer
~/openocd-0.8.0$ dpkg -l | grep libusb
ii libgusb2:amd64 0.1.6-5 amd64 GLib wrapper around libusb1
ii libusb-0.1-4:amd64 2:0.1.12-23.3ubuntu1 amd64 userspace USB programming library
ii libusb-1.0-0:amd64 2:1.0.17-1ubuntu2 amd64 userspace USB programming library
ii libusb-dev 2:0.1.12-23.3ubuntu1 amd64 userspace USB programming library development files
ii libusbmuxd2 1.0.8-2ubuntu1 amd64 USB multiplexor daemon for iPhone and iPod Touch devices - library
Did you solve the problem?If not,try to install libusb-devel and libusb1-devel
My only Ubuntu is 32 bit embedded, so I don’t know if this will help or not. 64 bit libs tend to use /usr/lib64/, while 32 bit libs tend to use /usr/lib/. My 64 bit is fedora, so I can’t really look this up, but perhaps something is looking specifically in 32 or 64 bit locations. strace with grep might help.
This is an oldish thread and the OP has probably solved the problem by now. But Google still has it high in the search results, so for the benefit of others:
You need the dev version of libusb1, which is not installed by default. Try