我从git https://github.com/openwrt/luci.git下载了luci主干,当我在centOS上编译它时出现以下错误。luci编译错误:iwinfo.h:没有这样的文件或目录
我已经安装了iw软件包,但仍然出现错误。
Package iw-3.10-4.el7.x86_64 already installed and latest version
我该如何解决这个问题?
make[1]: Entering directory `/home/mullex/Dev/Projects/openwrt-luci/modules/admin-full'
rm -f src/*.o src/luci-bwc
gcc -O2 --std=gnu99 -Wall -pedantic -fPIC -c -o src/luci-bwc.o src/luci-bwc.c
src/luci-bwc.c:35:20: fatal error: iwinfo.h: No such file or directory
#include <iwinfo.h>
^
compilation terminated.
make[1]: *** [src/luci-bwc.o] Error 1
make[1]: Leaving directory `/home/mullex/Dev/Projects/openwrt-luci/modules/admin-full'
*** Compilation of modules/admin-full failed!
make: *** [gccbuild] Error 1
非常感谢,我解决了困扰了我好几周的问题! – 2014-11-04 03:11:19
如果您使用的是git repo,您需要恢复的更改是在提交89678917.您可以运行以下命令来恢复这些更改: 'git checkout 89678917〜1 contrib/package/luci/Makefile' 'git checkout 89678917〜1 modules/admin-full/src/luci-bwc.c' – awelkie 2014-12-16 18:14:54