SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By astrodreamer
#171280
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:
Code: Select all
~/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
Code: Select all
~/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
By hsutherl
#171454
Hello astrodreamer, did you solve this yet?

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.
By mrbird
#171578
hsuterl is right.

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.
By TzashiNorpu
#172068
astrodreamer wrote: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:
Code: Select all
~/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
Code: Select all
~/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
By wynandmurray
#172541
Hi guys,

I am facing the exact same problem:

"error: libusb-1.x or libusb-0.1 is required for the Segger J-Link JTAG Programmer"
I have run "sudo apt-get install libusb-1.0.0-dev".
When I run it again I get "libusv-1.0.0-dev is already the newest version."

Could anyone please help? I have been struggling for days now :(

Thank you in advance!
By Landsdorfm
#172943
Hi guys,
I had also been spending some hours to get this running,
on my system (Debian 7.4) it was required to install the make, libtool and pkg-config package like it is recommended in the README.
After that the configure has found the usblib.

hope this will help you too
By linuxdev
#173089
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.
By diogenes
#179850
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
Code: Select all
sudo apt-get install libusb-1.0.0-dev
./configure --enable-maintainer-mode --enable-ftdi
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]