Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: 🔧 update ffmpeg linux build #53

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions 3rd_64/build-gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,17 @@ if [ -d $FILE ]; then
else
echo "Dir $FILE does not exist."
git clone https://git.ffmpeg.org/ffmpeg.git

cd ffmpeg
git checkout n$FFMPEG_VERSION
cd ..
fi
#FFMPEG_VERSION="4.4"
cd ffmpeg
git checkout n$FFMPEG_VERSION
FILE=config.h

FILE=ffmpeg/config.h
if [ -f $FILE ]; then
echo "File $FILE exists."
else
cd ffmpeg
echo 'Configuring ffmpeg...'
./configure --arch=native --enable-asm --disable-libvpx --disable-libaom --disable-static --enable-shared --enable-libx264 --enable-libkvazaar --extra-cflags=-DKVZ_STATIC_LIB --prefix=$PWD/install --enable-gpl --enable-rpath --extra-ldflags="-L/usr/local/lib -ldl $ffmeg_extra_ldflags -fPIC -m64 -Wl,-rpath='$ORIGIN'" --enable-pic --disable-debug
#~ if [[ $1 == "gpl" ]]; then
Expand All @@ -249,19 +251,20 @@ else
#~ echo $PKG_CONFIG_PATH
#~ ./configure --arch=$ARCH --enable-asm --enable-libvpx --enable-libaom --disable-static --enable-shared --enable-libkvazaar --prefix=$PWD/install --disable-gpl --enable-rpath --extra-ldflags="-L/usr/local/lib -ldl -fPIC -m64" --enable-pic
#~ fi

cd ..
fi

FILE=install/include
FILE=ffmpeg/install/include
if [ -d $FILE ]; then
echo "Dir $FILE exists."
else
cd ffmpeg
echo 'Building ffmpeg...'
#make clean
make -j
make install
cd ..
fi
cd ..


# copy kvazaar shared lib to ffmpeg, x264 has been built statically
Expand Down
Loading