Created
June 7, 2020 19:43
-
-
Save krzemienski/9fa14705bf5067773addac48bd55c760 to your computer and use it in GitHub Desktop.
Build and install master branch of bento4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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