未能在openOCD中启用stlink

未能在openOCD中启用stlink

问题描述:

我试图通过配置openOCD来启用stlink。它说它找不到我的libusb-1.x文件,即使它是通过安装openOCD来安装的,因为它是一个依赖项。我不知道该怎么做未能在openOCD中启用stlink

以下是错误:

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 
checking for LIBFTDI... no 
checking for LIBFTDI... no 
checking for LIBJAYLINK... no 
configure: error: libusb-1.x is required for the ST-Link JTAG Programmer 

这是我输入:

./configure --enable-stlink 

我能做些什么来解决这个问题?

谢谢

你可以尝试通过安装libusb的

sudo apt-get install libusb-1.0-0-dev