eclipse openwrt 交叉编译链设置

1. 右键工程选择Properties

2.设置编译器头
mipsel-openwrt-linux-uclibc-
/home/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin

3. 设置头文件包含文件

/home/widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/json-c
/home/widora/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/glib-2.43.4/ipkg-install/usr/include/glib-2.0
/home/widora/openwrt_widora/build_dir/host/glib-2.43.4/glib/

4. 设置库文件
pthread rt dl json-c glib-2.0
/home/widora/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/glib-2.43.4/ipkg-install/usr/lib/
/home/widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib/

5.  设置 cross GCC Compiler 和 Cross GCC Linker
 gcc -lglib-2.0 -lpthread -ljson-c -lrt -ldl


你可能感兴趣的:(eclipse openwrt 交叉编译链设置)