openwrt 编译node.js

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/strugglelg/article/details/39207465

openwrt 官网介绍node.js
http://wiki.openwrt.org/nodejs




cd   trunk/package
git  clone  https://github.com/brimstone/nodejs-openwrt.git
mv   nodejs-openwrt   node



要修改Makefile

 21 LIBS:=-I$(TOOLCHAIN_DIR)/mipsel-openwrt-linux-uclibc/include/c++/4.6.4/ \
 22       -I$(TOOLCHAIN_DIR)/mipsel-openwrt-linux-uclibc/include/c++/4.6.4/mips-openwrt-linux-uclibc/ \
 23       -I/usr/include/c++/4.6/x86_64-linux-gnu/



建立超链接asm目录

usr/include$ ll  asm
asm -> /usr/src/linux-headers-3.13.0-32/arch/mips/include/asm/



配置内核

make menuconfig  ---->     Languages  --->   < > node

                              [*] Advanced configuration options (for developers)  --->[*]   Toolchain Options (NEW)  --->GCC compiler Version (gcc 4.6.x with Linaro enhancements) 

make package/node/compile  V=s


时间比较久,我的编译完成时间 5m23s

猜你喜欢

转载自blog.csdn.net/strugglelg/article/details/39207465
今日推荐