Skip to content

Instantly share code, notes, and snippets.

@krzemienski
Created June 7, 2020 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krzemienski/9fa14705bf5067773addac48bd55c760 to your computer and use it in GitHub Desktop.
Save krzemienski/9fa14705bf5067773addac48bd55c760 to your computer and use it in GitHub Desktop.
Build and install master branch of bento4
#!/bin/bash
BENTO4_INSTALL_DIR=/opt/bento4
export PATH=/opt/bento4/bin:${PATH}
LD_LIBRARY_PATH=/usr/local/lib64
# Fetch source.
cd /tmp/ \
&& git clone https://github.com/axiomatic-systems/Bento4.git
# Create installation directories.
mkdir -p \
${BENTO4_INSTALL_DIR}/bin \
${BENTO4_INSTALL_DIR}/scripts \
${BENTO4_INSTALL_DIR}/include
# Build.
cd /tmp/Bento4/Build/Targets/x86-unknown-linux \
&& make AP4_BUILD_CONFIG=Release
# Install.
cd /tmp \
&& cp -r Bento4/Build/Targets/x86-unknown-linux/Release/. ${BENTO4_INSTALL_DIR}/bin \
&& cp -r Bento4/Source/Python/utils/. ${BENTO4_INSTALL_DIR}/utils \
&& cp -r Bento4/Source/Python/wrappers/. ${BENTO4_INSTALL_DIR}/bin \
&& cp -r Bento4/Source/C++/**/*.h . ${BENTO4_INSTALL_DIR}/include
# Cleanup.
rm -rf /var/cache/* /tmp/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment