a6228 发表于 2018-5-29 22:29:00

wireless_tools.29编译失败

网上下载了一个wireless_tools.29源码包,修改了根目录下的makefile的编译工具如下:
CC = /home/ln/workplace/firefly/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc
## Other tools you need to modify for cross compile (static lib only).
AR = /home/ln/workplace/firefly/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-ar
RANLIB = /home/ln/workplace/firefly/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-ranlib
用的SDK里的编译工具链,而且是绝对路径,编译的时候出现了找不到头文件的错误,如下图:
root@machine:/home/ln/workplace/firefly/wireless_tools.29# make
/home/ln/workplace/firefly/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -I. -MMD   -fPIC -c -o iwlib.so iwlib.c
In file included from iwlib.c:14:0:
iwlib.h:20:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
make: *** Error 1
求大神解惑
页: [1]
查看完整版本: wireless_tools.29编译失败