您尚未登录。

#3 Re: 全志 SOC » 编译、安装Windows版本sunxi-fel步骤 (32M spi flash补丁,支持W25Q256/MX25L256) » 2020-05-26 15:35:55

OS=Windows_NT LDFLAGS="-L/usr/i686-w64-mingw32/lib/ -lws2_32 -lwsock32" CC=i686-w64-mingw32-gcc make
Setting version information: v1.4.1-87-g78a7566

i686-w64-mingw32-gcc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -DNO_MMAP  -L/usr/i686-w64-mingw32/lib/ -lws2_32 -lwsock32 -o sunxi-fexc fexc.c script.c script_uboot.c script_bin.c script_fex.c -lws2_32
fexc.c: In function ‘main’:
fexc.c:312:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
   filename[1] = argv[optind+1]; /* out */
   ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
fexc.c:313:2: note: here
  case 1:
  ^~~~
i686-w64-mingw32-gcc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -DNO_MMAP  -L/usr/i686-w64-mingw32/lib/ -lws2_32 -lwsock32 -o sunxi-bootinfo bootinfo.c -lws2_32
i686-w64-mingw32-gcc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -DNO_MMAP  `pkg-config --cflags libusb-1.0` -L/usr/i686-w64-mingw32/lib/ -lws2_32 -lwsock32 -o sunxi-fel fel.c progress.c soc_info.c fel_lib.c fel-spiflash.c -lws2_32 `pkg-config --libs libusb-1.0`
/tmp/cc3LYByw.o:fel.c:(.text+0x1a47): undefined reference to `nanosleep'
collect2: error: ld returned 1 exit status
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