node icon indicating copy to clipboard operation
node copied to clipboard

Error Compiling for Android (aarch64)

Open Soft-Buddy opened this issue 4 months ago • 1 comments

I've been lately trying to cross-compile NodeJS for Android (aarch64), but I'm facing an error in compilation. Config : NDK Path = ~/android-ndk-r26b SDK Version = 24 Architecture = aarch64

Output :

 LD_LIBRARY_PATH=/home/rudra/nodejs-webx/out/Release/lib.host:/home/rudra/nodejs-webx/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/icu; mkdir -p /home/rudra/nodejs-webx/out/Release/obj/gen; "/home/rudra/nodejs-webx/out/Release/icupkg" -tl ../../deps/icu-tmp/icudt74l.dat "/home/rudra/nodejs-webx/out/Release/obj/gen/icudt74l.dat"
/bin/sh: 1: /home/rudra/nodejs-webx/out/Release/icupkg: Exec format error
make[1]: *** [tools/icu/icudata.target.mk:13: /home/rudra/nodejs-webx/out/Release/obj/gen/icudt74l.dat] Error 126
make: *** [Makefile:134: node] Error 2
rudra@rudra:~/nodejs-webx$

It fails at this. Any help from the community is appreciated.

Soft-Buddy avatar Jan 04 '24 12:01 Soft-Buddy

What's the args when you using android-configure?

MeowShe avatar Feb 04 '24 06:02 MeowShe