linux中出现如下现象:
Evenurs@admin-PowerEdge-T630-212:~/t113/master/t113$ /home/Evenurs/t113/master/t113/prebuilt/rootfsbuilt/arm/toolchain-sunxi-glibc-gcc-830/toolchain/bin/arm-openwrt-linux-gcc wifi_update_app.c -o wifi_update_app
arm-openwrt-linux-gnueabi-gcc.bin: fatal error: environment variable 'STAGING_DIR' not defined
compilation terminated.
Evenurs@admin-PowerEdge-T630-212:~/t113/master/t113$
提示STAGING_DIR环境变量没有声明。
调用以下命令声明:
export STAGING_DIR=./openwrt/openwrt/staging_dir/bin:$STAGING_DIR
其中的路径指向STAGING_DIR此文件夹。
重新编译即可。