Skip to content

Commit 534faba

Browse files
committed
bump gcc, fix vpx
1 parent dcef2ab commit 534faba

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

cross_compile_ffmpeg.sh

+10-6
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ install_cross_compiler() {
255255

256256
# --disable-shared allows c++ to be distributed at all...which seemed necessary for some random dependency which happens to use/require c++...
257257
local zeranoe_script_name=mingw-w64-build-r22.local
258-
local zeranoe_script_options="--gcc-ver=7.1.0 --default-configure --cpu-count=$gcc_cpu_count --pthreads-w32-ver=2-9-1 --disable-shared --clean-build --verbose --allow-overwrite" # allow-overwrite to avoid some crufty prompts if I do rebuilds [or maybe should just nuke everything...]
258+
local zeranoe_script_options="--gcc-ver=8.2.0 --default-configure --cpu-count=$gcc_cpu_count --pthreads-w32-ver=2-9-1 --disable-shared --clean-build --verbose --allow-overwrite" # allow-overwrite to avoid some crufty prompts if I do rebuilds [or maybe should just nuke everything...]
259259
if [[ ($compiler_flavors == "win32" || $compiler_flavors == "multi") && ! -f ../$win32_gcc ]]; then
260260
echo "Building win32 cross compiler..."
261261
download_gcc_build_script $zeranoe_script_name
@@ -842,22 +842,26 @@ build_gmp() {
842842
}
843843

844844
build_librtmfp() {
845+
# needs some version of openssl...
845846
# build_openssl-1.0.2 # fails OS X
846-
build_openssl-1.1.1 # pre req...
847+
build_openssl-1.1.1
847848
do_git_checkout https://github.com/MonaSolutions/librtmfp.git
848849
cd librtmfp_git/include/Base
849-
do_git_checkout https://github.com/meganz/mingw-std-threads.git mingw-std-threads # our g++ apparently doesn't have std::mutex baked in...weird...
850+
do_git_checkout https://github.com/meganz/mingw-std-threads.git mingw-std-threads # our g++ apparently doesn't have std::mutex baked in...weird...this replaces it...
850851
cd ../../..
851852
cd librtmfp_git
852-
#export CPPFLAGS='-Iinclude -Llib' only if building with it ja ja
853-
#export LIBS='-mwindows -lWs2_32 -liphlpapi -lz'
854853
if [[ $compiler_flavors != "native" ]]; then
855854
apply_patch file://$patch_dir/rtmfp.static.cross.patch -p1 # works e48efb4f
856855
else
857856
apply_patch file://$patch_dir/rtfmp.static.make.patch -p1
858857
fi
859858
do_make "$make_prefix_options GPP=${cross_prefix}g++"
860859
do_make_install "prefix=$mingw_w64_x86_64_prefix PKGCONFIGPATH=$PKG_CONFIG_PATH"
860+
if [[ $compiler_flavors == "native" ]]; then
861+
sed -i.bak 's/-lrtmfp.*/-lrtmfp -lstdc++/' "$PKG_CONFIG_PATH/librtmfp.pc"
862+
else
863+
sed -i.bak 's/-lrtmfp.*/-lrtmfp -lstdc++ -lWs2_32 -liphlpapi/' "$PKG_CONFIG_PATH/librtmfp.pc"
864+
fi
861865
cd ..
862866
}
863867

@@ -1363,7 +1367,7 @@ build_libvpx() {
13631367
local config_options="--target=x86_64-win64-gcc"
13641368
fi
13651369
export CROSS="$cross_prefix"
1366-
do_configure "$config_options --prefix=$mingw_w64_x86_64_prefix --enable-static --disable-shared --disable-examples --disable-tools --disable-docs --disable-unit-tests --enable-vp9-highbitdepth"
1370+
do_configure "$config_options --prefix=$mingw_w64_x86_64_prefix --enable-static --disable-shared --disable-examples --disable-tools --disable-docs --disable-unit-tests --enable-vp9-highbitdepth --extra-cflags=-fno-asynchronous-unwind-tables" # fno for Error: invalid register for .seh_savexmm
13671371
do_make_and_make_install
13681372
unset CROSS
13691373
cd ..

0 commit comments

Comments
 (0)