-
Notifications
You must be signed in to change notification settings - Fork 83
Building orkaudio
Kinshuk Bairagi edited this page Jul 10, 2022
·
2 revisions
You can build the orkaudio
source code on your system by running the following commands
#install dependencies
apt-get install -y build-essential libtool automake git cmake libboost-dev libpcap-dev libsndfile1-dev libapr1-dev libspeex-dev liblog4cxx-dev libace-dev libopus-dev libxerces-c3-dev libssl-dev libboost-all-dev libcap-dev libdw-dev libunwind-dev libbackward-cpp-dev
#build silk dependency
mkdir -p /opt/silk
git clone --depth 1 https://github.com/gaozehua/SILKCodec.git /opt/silk/SILKCodec
cd /opt/silk/SILKCodec/SILK_SDK_SRC_FIX
CFLAGS='-fPIC' make all
#build opus dependency
mkdir -p /opt/opus
git clone --depth 1 --branch v1.2.1 https://github.com/xiph/opus.git /opt/opus
cd /opt/opus
./autogen.sh
./configure --enable-shared --with-pic --enable-static
make
make install
# setup some symlinks so that build process finds them
ln -s /usr/local/lib/libopus.so /usr/local/lib/libopusstatic.so
ln -s /usr/include/opus /opt/opus/include/opus
#g729
mkdir -p /opt/bcg729
git clone --depth 1 https://github.com/BelledonneCommunications/bcg729.git /opt/bcg729
cd /opt/bcg729
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib
make
make install
#make orkbase
cd /oreka-src/orkbasecxx
autoreconf -i
./configure
make
make install
#orkaudio
cd /oreka-src/orkaudio
autoreconf -i
./configure
make
make install
This works with Ubuntu on an Odroid C4 and Raspberry PI 4 with PiOS 64 bit. Thanks to @etlweather!
## Install dependencies
sudo apt install daemontools daemontools-run build-essential \
autoconf shtool libtool libssl-dev libdw-dev \
libdw1 libunwind8 libunwind-dev libboost-dev \
libpcap-dev libsndfile1-dev libapr1-dev \
libspeex-dev libace-dev libopus-dev \
libboost-all-dev liblog4cxx-dev libxerces-c-dev \
libxerces-c3.2 libcap-dev libbcg729-dev \
libbackward-cpp-dev
## Compile OrecX dependencies
cd ~
git clone https://github.com/OrecX/dependencies.git
tar -xf dependencies/opus-1.2.1.tar.gz
cd opus-1.2.1
./configure --prefix=/opt/opus/
make CFLAGS="-fPIC"
sudo make install
sudo cp /opt/opus/lib/libopus.a /opt/opus/lib/libopusstatic.a
cd ~
sudo tar -xf dependencies/silk.tgz -C /opt/
sudo cd /opt/silk/SILKCodec/SILK_SDK_SRC_FIX/
sudo make clean lib
## Compile OrkbaseCXX
cd ~
git clone https://github.com/voiceip/oreka.git
cd oreka/orkbasecxx
autoreconf -i
./configure CXX=g++
make
sudo make install
## Compile Orkaudio
cd ~
cd oreka/orkaudio
autoreconf -i
./configure CXX=g++
make
sudo make install