我從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