Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross Compile for ARMv5 #933

Open
ricardojlrufino opened this issue Feb 28, 2022 · 2 comments
Open

Cross Compile for ARMv5 #933

ricardojlrufino opened this issue Feb 28, 2022 · 2 comments

Comments

@ricardojlrufino
Copy link

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


@ricardojlrufino
Copy link
Author

i think that only exist in v0.12
image

but it is not compatible with my architecture
node v0.11.1
v8 engine 3.18.0. Removed ARM support for VFP2.

@ricardojlrufino
Copy link
Author

downgrade to "nan": "2.10.0" works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant