Skip to content

Commit

Permalink
Fix cross-compilation by compiling zlib from source
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Oct 16, 2024
1 parent fe5aff1 commit 79c3360
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ if [[ ! -e "$ROOT/x264" ]]; then
make -j$NPROC install-lib-static
fi

if [[ ! -e "$ROOT/zlib-1.2.11" ]]; then
cd "$ROOT"
curl -o zlib-1.2.11.tar.gz https://zlib.net/fossils/zlib-1.2.11.tar.gz
tar xf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix="$ROOT/compiled" --static
make -j$NPROC
make -j$NPROC install
fi

if [[ "$GOOS" == "linux" && "$BUILD_TAGS" == *"debug-video"* ]]; then
sudo apt-get install -y libnuma-dev cmake
if [[ ! -e "$ROOT/x265" ]]; then
Expand Down

0 comments on commit 79c3360

Please sign in to comment.