-
-
Notifications
You must be signed in to change notification settings - Fork 525
Open
Description
Hi, I'm trying to compile for an ARMv5 device, but I'm getting the error below.
# node
> var NativeExtension = require('./')
node: can't resolve symbol 'node_module_register'
Target node version
node v0.10.38
Target Device: ANYKA CPU AK3918 (ARMv5TEJ)
I'm managed to cross-compile to arm using:
export CROSS_COMPILE="arm-anykav200-linux-uclibcgnueabi-"
export CROSS_TOOL=arm-anykav200-linux-uclibcgnueabi-
export STAGING_DIR=/home/ricardo/Documents/IOT/qiwen-anycloud39ev300/anycloud39ev300/SDK/tools/arm-anykav200-crosstool/usr
# use old v0.10.x node
export PATH="/home/ricardo/Documents/IOT/anyka/src/node/_install/bin:$PATH";
export PATH="$STAGING_DIR/bin:$PATH"
export LD_LIBRARY_PATH=$STAGING_DIR/lib:$LD_LIBRARY_PATH
export CC=${CROSS_COMPILE}gcc
export CXX=${CROSS_COMPILE}g++
node -v
npm -v
npm --target_arch=arm-linux install
npm --target_arch=arm-linux run configure
npm --target_arch=arm-linux run build
Metadata
Metadata
Assignees
Labels
No labels