fix: build issue

main
paring 2023-05-04 17:48:53 +09:00
parent 73c7af3702
commit 8e08ae7e76
4 changed files with 7 additions and 4 deletions

2
build-current.sh Normal file → Executable file
View File

@ -1,3 +1,3 @@
export OPENH264_OS=$(uname | tr A-Z a-z | tr -d \\-0-9. | sed -E 's/^(net|open|free)bsd/bsd/')
CC=gcc CXX=g++ AR=ar bash build.sh
CC=gcc CXX=g++ AR=ar bash build.sh $@

0
build-docker.sh Normal file
View File

5
build-win.sh Executable file
View File

@ -0,0 +1,5 @@
set -x
export TOOLCHAIN=x86_64-w64-mingw32
OPENH264_OS=mingw_nt OPENH264_ARCH=x86_64 CC=$TOOLCHAIN-gcc CXX=$TOOLCHAIN-g++ AR=$TOOLCHAIN-ar bash build.sh

View File

@ -14,7 +14,7 @@ make distclean
flags="--cc=$CC --cxx=$CXX"
if [[ -z $FFMPEG_MSVC ]]; then
if [[ $FFMPEG_MSVC == 1 ]]; then
flags="--toolchain=msvc"
fi
@ -23,8 +23,6 @@ fi
--enable-libopenh264 \
--prefix=$PREFIX --enable-cross-compile --arch=$ARCH \
--pkg-config-flags="--static" --target-os=$FFMPEG_OS \
--extra-ldflags="-libpath:$PREFIX/lib" \
--extra-cflags="-I$PREFIX/include/mfx" \
${flags} ${FFBUILD_FLAGS}
make -j$JOBS