Open ricardojlrufino opened 2 years ago
to build
#!/bin/bash
# Set ARM toolchain path to setup make variables
source ./toolchain.sh
if [ ! -d node_src ]; then
echo "Downloading Node Sources"
git clone --depth 1 https://github.com/nodejs/node -b v10.9.0 node_src
fi
cd node_src
./configure --without-snapshot --cross-compiling --prefix=$(pwd)/install
make -j4
make install
mv node_src/install node_install
# if got erros "ld-musl-armhf.so.1 not found"
# sudo ln -s $TOOLCHAIN_PATH/lib/ld-musl-armhf.so.1 /lib/ld-musl-armhf.so.1
only sharing a simple benchmark of load time of node js app. running on YI HOME camera, ARMv7 Processor rev 5 (v7l) Hardware : sun8iw19 the newest is not always "better" .