make的时候的错误
错误:
mipsel-openwrt-linux-uclibc-gcc -I/home/fuzongqiong/wifi/OpenWrt-SDK-brcm-2.4-for-Linux-i686-gcc-3.4.6_uClibc-0.9.30.1/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include -L/home/fuzongqiong/wifi/OpenWrt-SDK-brcm-2.4-for-Linux-i686-gcc-3.4.6_uClibc-0.9.30.1/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -o aptest_wrt main.c -lpcap
cc1: error: unrecognized command line option "-fsysroot=/home/fuzongqiong/wifi/OpenWrt-Toolchain-brcm-2.4-for-mipsel-gcc-3.4.6_uClibc-0.9.30.1/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/bin//../.."
make: *** [wrt] Error 1
make原文件:
#Compiler flags for cross compilation
CC=mipsel-openwrt-linux-uclibc-gcc
LD=mipsel-openwrt-linux-uclibc-ld
CFLAGS=-I/home/fuzongqiong/wifi/OpenWrt-SDK-brcm-2.4-for-Linux-i686-gcc-3.4.6_uClibc-0.9.30.1/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include
LDFLAGS=-L/home/fuzongqiong/wifi/OpenWrt-SDK-brcm-2.4-for-Linux-i686-gcc-3.4.6_uClibc-0.9.30.1/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib
wifi:desktop-server desktop wrt
#Old target used to test the server wrttest
desktop-server: server_test.c
gcc -o serverTest server_test.c
#Target to run the software on the laptop
desktop: main.c
gcc -o aptest main.c -lpcap
#Compile the software for the WRT54GL
wrt: main.c
$(CC) $(CFLAGS) $(LDFLAGS) -o aptest main.c -lpcap
#Compile the software for testing WRT54GL withouth internet: log data locally
wrttest: main_test.c
$(CC) $(CFLAGS) $(LDFLAGS) -o aptest_SS_range main_test.c -lpcap
环境变量:
echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/fuzongqiong/wifi/OpenWrt-Toolchain-brcm-2.4-for-mipsel-gcc-3.4.6_uClibc-0.9.30.1/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/bin:/home/fuzongqiong/.local/bin:/home/fuzongqiong/bin
求大神指导呀.查了半天都不知道 unrecognized command line option "-fsysroot是什么意思,谁能解释一下吗?
...全文
相关推荐
Android源码编译make的错误处理
Android源码编译make的错误处理
Android源码编译make的各类错误解决方案汇总
Android源码编译make的各类错误解决方案汇总
xhprof在php5.4.8下make错误
解决xhprof在php5.4.8下make错误 make: *** [xhprof.lo] Error 1的解决办法 这是个bug,而且已经修复了,但是php的pecl里并没有更新,在php5.4.8下会编译错误,解决办法是修改xhprof.c的代码,下载此文件即可
texinfo 解决make时出现的错误
linux下的info文档,有些软件make时 会出现info版本太低而编译不过的情况,此软件解决此问题
make的常见错误信息
makefile的常见错误信息,非常实用


