我是靠谱客的博主 懦弱招牌,这篇文章主要介绍openwrt 编译node.js,现在分享给大家,希望可以做个参考。


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

最后

以上就是懦弱招牌最近收集整理的关于openwrt 编译node.js的全部内容,更多相关openwrt内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(135)

评论列表共有 0 条评论

立即
投稿
返回
顶部