您尚未登录。

#6 Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » NUC972,想用一个外置的RTC,请大家推荐型号。 » 2019-04-12 17:29:09

NBIOT001
回复: 6

NUC972,想用一个外置的RTC,请大家推荐型号。
要求:功耗小,会用备用电池,NUC972驱动方便。

#9 Re: 全志 SOC » V3S,安装sunxi-fel烧录工具,提示找不到libusb.h,咋办? » 2017-11-15 15:50:01

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

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

#10 全志 SOC » V3S,安装sunxi-fel烧录工具,提示找不到libusb.h,咋办? » 2017-11-15 15:44:45

NBIOT001
回复: 13

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

页脚

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

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