Skip to content

Instantly share code, notes, and snippets.

@thewh1teagle
Created January 5, 2025 23:42
Show Gist options
  • Save thewh1teagle/f501dbf0140c89f829a48db146a835bd to your computer and use it in GitHub Desktop.
Save thewh1teagle/f501dbf0140c89f829a48db146a835bd to your computer and use it in GitHub Desktop.

Cross compile espeak-ng for aarch64 Linux

# Cross compile for aarch64 Linux


# Alsa
git clone https://github.com/alsa-project/alsa-lib
cd alsa-lib
autoreconf -i
./configure -host=aarch64-linux-gnu --prefix=$(pwd)/_install
make -j16
make install


# pcaudiolib
git clone https://github.com/espeak-ng/pcaudiolib.git
cd pcaudiolib
./autogen.sh
LDFLAGS="-L$(pwd)/../alsa-lib/_install/lib" ./configure -host=aarch64-linux-gnu --prefix=$(pwd)/_install
make -j16
make install

# Espeak-ng

./autogen.sh
LDFLAGS="-L$(pwd)/pcaudiolib/_install/lib -L$(pwd)/alsa-lib/_install/lib" ./configure -host=aarch64-linux-gnu --prefix=$(pwd)/_install
make -j16
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment