Hi
I need help to cross compile Deep Speech for some S912 board.
What I have done so far?
- I created a docker with following modules.
FROM ubuntu:18.04
RUN apt update && apt install -y
build-essential
curl
git
wget
libjpeg-dev
openjdk-8-jdk
gcc-aarch64-linux-gnu
g+±aarch64-linux-gnu
build-essential
autoconf libtool
cmake pkg-config
git python-dev
swig3.0
libpcre3-dev
&& rm -rf /var/lib/lists/*Install Anaconda
WORKDIR /
RUN wget “https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh” -O “miniconda.sh” &&
bash “miniconda.sh” -b -p “/conda” &&
rm miniconda.sh &&
echo PATH=’/conda/bin:$PATH’ >> /root/.bashrc &&
/conda/bin/conda config --add channels conda-forge &&
/conda/bin/conda update --yes -n base conda &&
/conda/bin/conda update --all --yes
Then installed bazel
gcc --version
Install an appropriate Python environment
conda create --yes -n tensorflow python==$PYTHON_VERSION
source activate tensorflow
conda install --yes numpy wheel bazel==0.16.1
conda install -c conda-forge --yes keras-applications
When I execute following command, it will compile tensorflow for amd64(my base platform). What shall I do for aarch64?
bazel build --config=opt
–action_env=“LD_LIBRARY_PATH=${LD_LIBRARY_PATH}”
//tensorflow/tools/pip_package:build_pip_package
Once tensorflow is compiled, how to get DeepSpeech?
Or do we have any link which explains these steps? For example I gone thru DeepSpeech native client compilation for Asus Thinkerboard, but unable to get any clue.