您尚未登录。

楼主 #1 2017-11-15 15:44:45

NBIOT001
会员
注册时间: 2017-11-15
已发帖子: 4
积分: 4

V3S,安装sunxi-fel烧录工具,提示找不到libusb.h,咋办?

V3S,安装sunxi-fel烧录工具,提示找不到libusb.h,咋办?
1.git clone -b spi-rebase https://github.com/Icenowy/sunxi-tools.git
2.sudo apt-get install libusb-1.0-0-dev
3.进入sunxi-tool目录后执行make && sudo make install,提示找不到libusb.h,编译失败。
4.在电脑上可以找到libusb.h,且路径已包含在export中。
如何解决?

root@51970f1e16d6:~/sunxi/sunxi-tools# make && sudo make install
Setting version information: v1.4.1-87-g78a7566

cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/   -o sunxi-fexc fexc.c script.c script_uboot.c script_bin.c script_fex.c 
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/   -o sunxi-bootinfo bootinfo.c 
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/  `pkg-config --cflags libusb-1.0`  -o sunxi-fel fel.c progress.c soc_info.c fel_lib.c fel-spiflash.c  `pkg-config --libs libusb-1.0`
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
fel_lib.c:26:20: fatal error: libusb.h: No such file or directory
compilation terminated.
Makefile:136: recipe for target 'sunxi-fel' failed
make: *** [sunxi-fel] Error 1
root@51970f1e16d6:~/sunxi/sunxi-tools# find / -name libusb.h
/usr/include/libusb-1.0/libusb.h

离线

楼主 #3 2017-11-15 15:50:01

NBIOT001
会员
注册时间: 2017-11-15
已发帖子: 4
积分: 4

Re: V3S,安装sunxi-fel烧录工具,提示找不到libusb.h,咋办?

安装了这个,还是不行, 看下面。

root@51970f1e16d6:~/sunxi/sunxi-tools# sudo apt-get install libusb-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libusb-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.9 kB of archives.
After this operation, 231 kB of additional disk space will be used.
Get:1 [url]http://mirrors.aliyun.com/ubuntu[/url] xenial/main amd64 libusb-dev amd64 2:0.1.12-28 [29.9 kB]
Fetched 29.9 kB in 1s (17.8 kB/s)                     
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libusb-dev.
(Reading database ... 55875 files and directories currently installed.)
Preparing to unpack .../libusb-dev_2%3a0.1.12-28_amd64.deb ...
Unpacking libusb-dev (2:0.1.12-28) ...
Setting up libusb-dev (2:0.1.12-28) ...
root@51970f1e16d6:~/sunxi/sunxi-tools# make clean
make -C tests/ clean
make[1]: Entering directory '/root/sunxi/sunxi-tools/tests'
rm -rf sunxi-boards.zip sunxi-boards unify-fex
make[1]: Leaving directory '/root/sunxi/sunxi-tools/tests'
removed 'sunxi-fexc'
removed 'sunxi-bootinfo'
removed 'version.h'
root@51970f1e16d6:~/sunxi/sunxi-tools# make && sudo make install
Setting version information: v1.4.1-87-g78a7566

cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/   -o sunxi-fexc fexc.c script.c script_uboot.c script_bin.c script_fex.c 
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/   -o sunxi-bootinfo bootinfo.c 
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/  `pkg-config --cflags libusb-1.0`  -o sunxi-fel fel.c progress.c soc_info.c fel_lib.c fel-spiflash.c  `pkg-config --libs libusb-1.0`
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
fel_lib.c:26:20: fatal error: libusb.h: No such file or directory
compilation terminated.
Makefile:136: recipe for target 'sunxi-fel' failed
make: *** [sunxi-fel] Error 1

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn