bash pi_build.sh using this helper script one can cross build libnd4j and dl4j with arm COMPUTE LIBRARY . it will download cross compiler and arm compute library.
to change version of the arm COMPUTE LIBRARY modify this line in the script
ARMCOMPUTE_TAG=v20.05
old one
Please follow following instructions to build nd4j for raspberry PI:
download cross compilation tools for Raspberry PI
$ apt-get/yum install git cmake
(You may substitute any path you prefer instead of $HOME/raspberrypi in the following two steps)
$ mkdir $HOME/raspberrypi
$ export RPI_HOME=$HOME/raspberrypi
$ cd $RPI_HOME
$ git clone git://github.com/raspberrypi/tools.git
$ export PATH=$PATH:$RPI_HOME/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin
download deeplearning4j:
$ cd $HOME
$ git clone https://github.com/eclipse/deeplearning4j.git
build libnd4j:
$ cd deeplearning4j/libnd4j
$ ./buildnativeoperations.sh -o linux-armhf