Skip to content

Commit

Permalink
Fix building for armv7 on a arm64 kernel adn 32bit userspace #784 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Jul 17, 2022
1 parent 86f398c commit ec90e9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/octopi/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,19 @@ EOT
then
apt-get install -y --force-yes --no-install-recommends nginx

ARCH=arm
if [ "${BASE_ARCH}" == "aarch64"]; then
ARCH=aarch64
fi

FFMPEG_BUILD_DIR=$(mktemp -d)
pushd ${FFMPEG_BUILD_DIR}
FFMPEG_ARCHIVE=ffmpeg.tar.gz
wget https://api.github.com/repos/FFmpeg/FFmpeg/tarball/${FFMPEG_COMMIT} -O ${FFMPEG_ARCHIVE}
tar xvzf ${FFMPEG_ARCHIVE}
cd FFmpeg*
./configure \
--arch="${ARCH}" \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
Expand Down

0 comments on commit ec90e9a

Please sign in to comment.