编译lm4flash时Make找不到libusb-1.0

编译lm4flash时Make找不到libusb-1.0

我正在尝试让 Tiva Launchpad EK-TM4C1294XL 与运行 Ubuntu 16.04 LTS 的笔记本电脑配合使用。我一直在关注本指南,但我卡在第 9 步。当我运行make命令时,出现以下错误:

Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
cc -Wall  lm4flash.c  -o lm4flash
lm4flash.c:30:20: fatal error: libusb.h: No such file or directory
compilation terminated.
Makefile:22: recipe for target 'lm4flash' failed
make: *** [lm4flash] Error 1

我发现的最接近类似libusb错误的帖子是这个但我没有使用,cmake所以该解决方案对我来说不起作用。

相关内容