fix: build issue
parent
73c7af3702
commit
8e08ae7e76
|
@ -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/')
|
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,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
|
|
@ -14,7 +14,7 @@ make distclean
|
||||||
|
|
||||||
flags="--cc=$CC --cxx=$CXX"
|
flags="--cc=$CC --cxx=$CXX"
|
||||||
|
|
||||||
if [[ -z $FFMPEG_MSVC ]]; then
|
if [[ $FFMPEG_MSVC == 1 ]]; then
|
||||||
flags="--toolchain=msvc"
|
flags="--toolchain=msvc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -23,8 +23,6 @@ fi
|
||||||
--enable-libopenh264 \
|
--enable-libopenh264 \
|
||||||
--prefix=$PREFIX --enable-cross-compile --arch=$ARCH \
|
--prefix=$PREFIX --enable-cross-compile --arch=$ARCH \
|
||||||
--pkg-config-flags="--static" --target-os=$FFMPEG_OS \
|
--pkg-config-flags="--static" --target-os=$FFMPEG_OS \
|
||||||
--extra-ldflags="-libpath:$PREFIX/lib" \
|
|
||||||
--extra-cflags="-I$PREFIX/include/mfx" \
|
|
||||||
${flags} ${FFBUILD_FLAGS}
|
${flags} ${FFBUILD_FLAGS}
|
||||||
|
|
||||||
make -j$JOBS
|
make -j$JOBS
|
||||||
|
|
Loading…
Reference in New Issue