编译openwrt时总提示:
root@localhost openwrt]# make menuconfig
make -s -C scripts/config all CC=cc: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [scripts/config/mconf] Error 1
按提示编译打印如下信息:
make menuconfig -j1 V=s
make[1]: Entering directory `/home/zdg/myTest/openwrt/scripts/config'
/usr/bin/ld: lxdialog/checklist.o: undefined reference to symbol 'acs_map'
/usr/bin/ld: note: 'acs_map' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [mconf] Error 1
make[1]: Leaving directory `/home/zdg/myTest/openwrt/scripts/config'
make: *** [scripts/config/mconf] Error 2
解决lede编译中的“xdialog/checklist.o: undefined reference to symbol ‘acs_map’”问题
Posted on 2018年1月14日 by anshi
rt
编译lede时发现
make menuconfig报错,make -j1后发现
解决方法:
修改scripts/config/Makefile
$(CC) -o $@ $^ $(call check_lxdialog,ldflags $(CC))
添加-ltinfo
$(CC) -o $@ $^ $(call check_lxdialog,ldflags $(CC)) -ltinfo
make menuconfig