Closed ledbit closed 3 years ago
Some resources:
https://chrislea.com/2018/08/20/cross-compiling-node-js-for-arm-on-ubuntu/
Containers for cross-compiling (manually setting up the env is a royal PITA) https://github.com/dockcross/dockcross
When compiling node there are a set of binaries that are needed to be built and ran on the host and thus should not be cross-compiled. The following command seems to do the right thing (See https://github.com/nodejs/node/issues/24317)
ARCH=arm64 DESTCPU=arm CC_host=gcc CXX_host=g++ ./configure --without-snapshot --dest-cpu=arm64 --cross-compiling --dest-os=linux --with-arm-float-abi=hard --with-arm-fpu=neon
Cross-compile instructions for raspberry pi
https://blog.kitware.com/cross-compiling-for-raspberry-pi/
https://opensource.com/article/19/7/cross-compiling-gcc
Some resources:
https://chrislea.com/2018/08/20/cross-compiling-node-js-for-arm-on-ubuntu/
Containers for cross-compiling (manually setting up the env is a royal PITA) https://github.com/dockcross/dockcross
When compiling node there are a set of binaries that are needed to be built and ran on the host and thus should not be cross-compiled. The following command seems to do the right thing (See https://github.com/nodejs/node/issues/24317)
Cross-compile instructions for raspberry pi
https://blog.kitware.com/cross-compiling-for-raspberry-pi/
https://opensource.com/article/19/7/cross-compiling-gcc