openwrt 编译node.js

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 20:08   1940   0

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

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP