diff --git a/ffmpeg/cppbuild.sh b/ffmpeg/cppbuild.sh index dbc412e..bbefbd7 100755 --- a/ffmpeg/cppbuild.sh +++ b/ffmpeg/cppbuild.sh @@ -1,2202 +1,2201 @@ -#!/bin/bash -# This file is meant to be included by the parent cppbuild.sh script -if [[ -z "$PLATFORM" ]]; then - pushd .. - bash cppbuild.sh "$@" ffmpeg - popd - exit -fi - -DISABLE="--disable-iconv --disable-opencl --disable-sdl2 --disable-bzlib --disable-lzma --disable-linux-perf --disable-xlib" -ENABLE="--enable-shared --enable-version3 --enable-runtime-cpudetect --enable-zlib --enable-libmp3lame --enable-libspeex --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-openssl --enable-libopenh264 --enable-libvpx --enable-libfreetype --enable-libopus --enable-libxml2 --enable-libsrt --enable-libwebp --enable-libaom --enable-libsvtav1 --enable-libzimg" -ENABLE_VULKAN="--enable-vulkan --enable-hwaccel=h264_vulkan --enable-hwaccel=hevc_vulkan --enable-hwaccel=av1_vulkan" - -if [[ "$EXTENSION" == *gpl ]]; then - # Enable GPLv3 modules - ENABLE="$ENABLE --enable-gpl --enable-version3 --enable-libx264 --enable-libx265" -fi - -# minimal configuration to support MPEG-4 streams with H.264 and AAC as well as Motion JPEG -# DISABLE="--disable-iconv --disable-libxcb --disable-opencl --disable-sdl2 --disable-bzlib --disable-lzma --disable-linux-perf --disable-everything" -# ENABLE="--enable-shared --enable-runtime-cpudetect --enable-libopenh264 --enable-encoder=libopenh264 --enable-encoder=aac --enable-encoder=mjpeg --enable-decoder=h264 --enable-decoder=aac --enable-decoder=mjpeg --enable-parser=h264 --enable-parser=aac --enable-parser=mjpeg --enable-muxer=mp4 --enable-muxer=rtsp --enable-muxer=mjpeg --enable-demuxer=mov --enable-demuxer=rtsp --enable-demuxer=mjpeg --enable-protocol=file --enable-protocol=http --enable-protocol=rtp --enable-protocol=rtmp" - -LIBXML_CONFIG="--enable-static --disable-shared --without-iconv --without-python --without-lzma --with-pic" -SRT_CONFIG="-DENABLE_APPS:BOOL=OFF -DENABLE_ENCRYPTION:BOOL=ON -DENABLE_SHARED:BOOL=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_INSTALL_BINDIR=bin" -WEBP_CONFIG="-DWEBP_BUILD_ANIM_UTILS=OFF -DWEBP_BUILD_CWEBP=OFF -DWEBP_BUILD_DWEBP=OFF -DWEBP_BUILD_EXTRAS=OFF -DWEBP_BUILD_GIF2WEBP=OFF -DWEBP_BUILD_IMG2WEBP=OFF -DWEBP_BUILD_VWEBP=OFF -DWEBP_BUILD_WEBPINFO=OFF -DWEBP_BUILD_WEBPMUX=OFF -DWEBP_BUILD_WEBP_JS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib" -LIBAOM_CONFIG="-DENABLE_TESTS:BOOL=OFF -DENABLE_TESTDATA:BOOL=OFF -DENABLE_TOOLS:BOOL=OFF -DENABLE_EXAMPLES:BOOL=OFF -DENABLE_DOCS:BOOL=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_INSTALL_BINDIR=bin" -LIBSVTAV1_CONFIG="-DBUILD_APPS:BOOL=OFF -DBUILD_TESTING:BOOL=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_INSTALL_BINDIR=bin" - -NASM_VERSION=2.14 -ZLIB=zlib-1.3.1 -LAME=lame-3.100 -SPEEX=speex-1.2.1 -OPUS=opus-1.3.1 -OPENCORE_AMR=opencore-amr-0.1.6 -VO_AMRWBENC=vo-amrwbenc-0.1.3 -OPENSSL=openssl-3.3.0 -OPENH264_VERSION=2.4.1 -X264=x264-stable -X265=3.4 -VPX_VERSION=1.14.0 -ALSA_VERSION=1.2.11 -FREETYPE_VERSION=2.13.2 -MFX_VERSION=1.35.1 -NVCODEC_VERSION=12.2.72.0 -XML2=libxml2-2.9.12 -LIBSRT_VERSION=1.5.3 -WEBP_VERSION=1.4.0 -AOMAV1_VERSION=3.8.2 -SVTAV1_VERSION=2.0.0 -ZIMG_VERSION=3.0.5 -FFMPEG_VERSION=7.0 -download https://download.videolan.org/contrib/nasm/nasm-$NASM_VERSION.tar.gz nasm-$NASM_VERSION.tar.gz -download http://zlib.net/$ZLIB.tar.gz $ZLIB.tar.gz -download http://downloads.sourceforge.net/project/lame/lame/3.100/$LAME.tar.gz $LAME.tar.gz -download https://ftp.osuosl.org/pub/xiph/releases/speex/$SPEEX.tar.gz $SPEEX.tar.gz -download https://archive.mozilla.org/pub/opus/$OPUS.tar.gz $OPUS.tar.gz -download http://sourceforge.net/projects/opencore-amr/files/opencore-amr/$OPENCORE_AMR.tar.gz/download $OPENCORE_AMR.tar.gz -download http://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/$VO_AMRWBENC.tar.gz/download $VO_AMRWBENC.tar.gz -download https://www.openssl.org/source/$OPENSSL.tar.gz $OPENSSL.tar.gz -download https://github.com/cisco/openh264/archive/v$OPENH264_VERSION.tar.gz openh264-$OPENH264_VERSION.tar.gz -download https://code.videolan.org/videolan/x264/-/archive/stable/$X264.tar.gz $X264.tar.gz -download https://github.com/videolan/x265/archive/$X265.tar.gz x265-$X265.tar.gz -download https://github.com/webmproject/libvpx/archive/v$VPX_VERSION.tar.gz libvpx-$VPX_VERSION.tar.gz -download https://ftp.osuosl.org/pub/blfs/conglomeration/alsa-lib/alsa-lib-$ALSA_VERSION.tar.bz2 alsa-lib-$ALSA_VERSION.tar.bz2 -download https://ftp.osuosl.org/pub/blfs/conglomeration/freetype/freetype-$FREETYPE_VERSION.tar.xz freetype-$FREETYPE_VERSION.tar.xz -download https://github.com/lu-zero/mfx_dispatch/archive/$MFX_VERSION.tar.gz mfx_dispatch-$MFX_VERSION.tar.gz -download http://xmlsoft.org/sources/$XML2.tar.gz $XML2.tar.gz -download https://github.com/Haivision/srt/archive/refs/tags/v$LIBSRT_VERSION.tar.gz srt-$LIBSRT_VERSION.tar.gz -download https://github.com/FFmpeg/nv-codec-headers/archive/n$NVCODEC_VERSION.tar.gz nv-codec-headers-$NVCODEC_VERSION.tar.gz -download https://github.com/webmproject/libwebp/archive/refs/tags/v$WEBP_VERSION.tar.gz libwebp-$WEBP_VERSION.tar.gz -download https://storage.googleapis.com/aom-releases/libaom-$AOMAV1_VERSION.tar.gz aom-$AOMAV1_VERSION.tar.gz -download https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v$SVTAV1_VERSION/SVT-AV1-v$SVTAV1_VERSION.tar.gz SVT-AV1-$SVTAV1_VERSION.tar.gz -download https://github.com/sekrit-twc/zimg/archive/refs/tags/release-$ZIMG_VERSION.tar.gz zimg-release-$ZIMG_VERSION.tar.gz -download http://ffmpeg.org/releases/ffmpeg-$FFMPEG_VERSION.tar.bz2 ffmpeg-$FFMPEG_VERSION.tar.bz2 - -mkdir -p $PLATFORM$EXTENSION -cd $PLATFORM$EXTENSION -INSTALL_PATH=`pwd` -echo "Decompressing archives..." -tar --totals -xzf ../nasm-$NASM_VERSION.tar.gz -tar --totals -xzf ../$ZLIB.tar.gz -tar --totals -xzf ../$LAME.tar.gz -tar --totals -xzf ../$SPEEX.tar.gz -tar --totals -xzf ../$OPUS.tar.gz -tar --totals -xzf ../$OPENCORE_AMR.tar.gz -tar --totals -xzf ../$VO_AMRWBENC.tar.gz -tar --totals -xzf ../$OPENSSL.tar.gz -tar --totals -xzf ../srt-$LIBSRT_VERSION.tar.gz -tar --totals -xzf ../openh264-$OPENH264_VERSION.tar.gz -tar --totals -xzf ../$X264.tar.gz -tar --totals -xzf ../x265-$X265.tar.gz -tar --totals -xzf ../libvpx-$VPX_VERSION.tar.gz -tar --totals -xJf ../freetype-$FREETYPE_VERSION.tar.xz -tar --totals -xzf ../mfx_dispatch-$MFX_VERSION.tar.gz -tar --totals -xzf ../nv-codec-headers-$NVCODEC_VERSION.tar.gz -tar --totals -xzf ../$XML2.tar.gz -tar --totals -xzf ../libwebp-$WEBP_VERSION.tar.gz -tar --totals -xzf ../aom-$AOMAV1_VERSION.tar.gz -tar --totals -xzf ../SVT-AV1-$SVTAV1_VERSION.tar.gz -tar --totals -xzf ../zimg-release-$ZIMG_VERSION.tar.gz -tar --totals -xjf ../ffmpeg-$FFMPEG_VERSION.tar.bz2 - -if [[ "${ACLOCAL_PATH:-}" == C:\\msys64\\* ]]; then - export ACLOCAL_PATH=/mingw64/share/aclocal:/usr/share/aclocal -fi - -cd nasm-$NASM_VERSION -# fix for build with GCC 8.x -sedinplace 's/void pure_func/void/g' include/nasmlib.h -./configure --prefix=$INSTALL_PATH -make -j $MAKEJ V=0 -make install -cd .. - -export PATH=$INSTALL_PATH/bin:$PATH -export PKG_CONFIG_PATH=$INSTALL_PATH/lib/pkgconfig/ - -patch -Np1 -d $LAME < ../../lame.patch -patch -Np1 -d $OPENSSL < ../../openssl-android.patch -patch -Np1 -d ffmpeg-$FFMPEG_VERSION < ../../ffmpeg.patch -patch -Np1 -d ffmpeg-$FFMPEG_VERSION < ../../ffmpeg-vulkan.patch -# patch -Np1 -d ffmpeg-$FFMPEG_VERSION < ../../ffmpeg-flv-support-hevc-opus.patch -sedinplace 's/bool bEnableavx512/bool bEnableavx512 = false/g' x265-*/source/common/param.h -sedinplace 's/detect512()/false/g' x265-*/source/common/quant.cpp -sedinplace 's/CMAKE_C_COMPILER_ID MATCHES "Clang"/FALSE/g' SVT-AV1-*/CMakeLists.txt -sedinplace 's/defined(__linux__)/defined(__linux__) \&\& !defined(__ANDROID__)/g' SVT-AV1-*/Source/Lib/Common/Codec/EbThreads.h -sedinplace '/ANativeWindow_release/d' ffmpeg-*/libavutil/hwcontext_mediacodec.c -sedinplace 's/#define MAX_SLICES 32/#define MAX_SLICES 256/g' ffmpeg-*/libavcodec/h264dec.h - -case $PLATFORM in - android-arm) - export AR="$ANDROID_PREFIX-ar" - export RANLIB="$ANDROID_PREFIX-ranlib" - export CC="$ANDROID_CC $ANDROID_FLAGS" - export CXX="$ANDROID_CC++ $ANDROID_FLAGS" - export STRIP="$ANDROID_PREFIX-strip" - echo "" - echo "--------------------" - echo "Building zimg" - echo "--------------------" - echo "" - cd zimg-release-$ZIMG_VERSION - autoreconf -iv - ./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic --host=arm-linux - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building zlib" - echo "--------------------" - echo "" - cd ../$ZLIB - ./configure --prefix=$INSTALL_PATH --static --uname=arm-linux - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building LAME" - echo "--------------------" - echo "" - cd ../$LAME - ./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic --host=arm-linux - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building XML2" - echo "--------------------" - echo "" - cd ../$XML2 - ./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG --host=arm-linux - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building speex" - echo "--------------------" - echo "" - cd ../$SPEEX - PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=arm-linux - cd libspeex - make -j $MAKEJ V=0 - make install - cd ../include - make install - cd ../../$OPUS - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=arm-linux - make -j $MAKEJ V=0 - make install - cd ../$OPENCORE_AMR - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=arm-linux - make -j $MAKEJ V=0 - make install - cd ../$VO_AMRWBENC - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=arm-linux - make -j $MAKEJ V=0 - make install - cd ../$OPENSSL - PATH="${ANDROID_CC%/*}:$ANDROID_BIN/bin:$PATH" ./Configure --prefix=$INSTALL_PATH --libdir=lib android-arm no-shared no-tests -D__ANDROID_API__=24 - ANDROID_DEV="$ANDROID_ROOT/usr" make -s -j $MAKEJ - make install_dev - cd ../srt-$LIBSRT_VERSION - patch -Np1 < ../../../srt-android.patch || true - $CMAKE -DCMAKE_TOOLCHAIN_FILE=${PLATFORM_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=24 -DCMAKE_C_FLAGS="-I$INSTALL_PATH/include/" -DCMAKE_CXX_FLAGS="-I$INSTALL_PATH/include/" -DCMAKE_EXE_LINKER_FLAGS="-L$INSTALL_PATH/lib/" -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $SRT_CONFIG . - make -j $MAKEJ V=0 - make install - cd ../openh264-$OPENH264_VERSION - sedinplace 's/stlport_shared/system/g' codec/build/android/dec/jni/Application.mk build/platform-android.mk - sedinplace 's/12/24/g' codec/build/android/dec/jni/Application.mk build/platform-android.mk - CFLAGS="$ANDROID_FLAGS" LDFLAGS="$ANDROID_FLAGS" make -j $MAKEJ PREFIX=$INSTALL_PATH OS=android ARCH=arm USE_ASM=No NDKROOT="$ANDROID_NDK" NDK_TOOLCHAIN_VERSION="clang" TARGET="android-24" install-static - cd ../$X264 - patch -Np1 < ../../../x264-android.patch || true - ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-cli --cross-prefix="$ANDROID_PREFIX-" --sysroot="$ANDROID_ROOT" --host=arm-linux - make -j $MAKEJ V=0 - make install - cd ../x265-$X265 - patch -Np1 < ../../../x265-android.patch || true - cd build/linux - # from x265 multilib.sh - mkdir -p 8bit 10bit 12bit - - cd 12bit - $CMAKE ../../../source -DCMAKE_TOOLCHAIN_FILE=${PLATFORM_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=24 -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF -DMAIN12=ON -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release - make -j $MAKEJ - - cd ../10bit - $CMAKE ../../../source -DCMAKE_TOOLCHAIN_FILE=${PLATFORM_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=24 -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release - make -j $MAKEJ - - cd ../8bit - ln -sf ../10bit/libx265.a libx265_main10.a - ln -sf ../12bit/libx265.a libx265_main12.a - $CMAKE ../../../source -DCMAKE_TOOLCHAIN_FILE=${PLATFORM_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=24 -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DENABLE_SHARED:BOOL=OFF -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF - make -j $MAKEJ - - # rename the 8bit library, then combine all three into libx265.a - mv libx265.a libx265_main.a -ar -M </dev/null - - make install - # ---- - cd ../../../ - cd ../libvpx-$VPX_VERSION - sedinplace '/avx512/d' configure - CC="clang -arch arm64" CXX="clang++ -arch arm64" ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests --target=generic-gnu - make -j $MAKEJ - sedinplace '/HAS_AVX512/d' vpx_dsp_rtcd.h - make install - cd ../libwebp-$WEBP_VERSION - CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $WEBP_CONFIG -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=armv8 -DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC" -DCMAKE_C_FLAGS="$CFLAGS -fPIC" -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" . - make -j $MAKEJ V=0 - make install - cd ../freetype-$FREETYPE_VERSION - ./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic --host=aarch64-apple-darwin - make -j $MAKEJ - make install - cd ../libaom-$AOMAV1_VERSION - mkdir -p build_release - cd build_release - CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=armv8 -DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC" -DCMAKE_C_FLAGS="$CFLAGS -fPIC" -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" $LIBAOM_CONFIG -DAOM_ARCH_AARCH64=1 -DCONFIG_RUNTIME_CPU_DETECT:BOOL=OFF -DENABLE_NEON_I8MM=OFF .. - make -j $MAKEJ - make install - cd .. - cd ../SVT-AV1-v$SVTAV1_VERSION - mkdir -p build_release - cd build_release - $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $LIBSVTAV1_CONFIG .. - make -j $MAKEJ - make install - cd .. - cd ../ffmpeg-$FFMPEG_VERSION - patch -Np1 < ../../../ffmpeg-macosx.patch - LDEXEFLAGS='-Wl,-rpath,@loader_path/' PKG_CONFIG_PATH=../lib/pkgconfig/ ./configure --prefix=.. $DISABLE $ENABLE $ENABLE_VULKAN --enable-pthreads --enable-indev=avfoundation --disable-libxcb --cc="clang -arch arm64" --extra-cflags="-I../include/ -I../include/libxml2 -I../include/mfx -I../include/svt-av1" --extra-ldflags="-L../lib/" --extra-libs="-lstdc++ -ldl -lz -lm" --enable-cross-compile --arch=arm64 --target-os=darwin || cat ffbuild/config.log - make -j $MAKEJ - make install - ;; - - macosx-x86_64) - export AS="nasm" - echo "" - echo "--------------------" - echo "Building zimg" - echo "--------------------" - echo "" - cd zimg-release-$ZIMG_VERSION - autoreconf -iv - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building zlib" - echo "--------------------" - echo "" - cd ../$ZLIB - CC="clang -fPIC" ./configure --prefix=$INSTALL_PATH --static - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building LAME" - echo "--------------------" - echo "" - cd ../$LAME - ./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building XML2" - echo "--------------------" - echo "" - cd ../$XML2 - ./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building speex" - echo "--------------------" - echo "" - cd ../$SPEEX - PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic - make -j $MAKEJ V=0 - make install - cd ../$OPUS - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic - make -j $MAKEJ V=0 - make install - cd ../$OPENCORE_AMR - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic - make -j $MAKEJ V=0 - make install - cd ../$VO_AMRWBENC - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic - make -j $MAKEJ V=0 - make install - cd ../$OPENSSL - ./Configure darwin64-x86_64-cc -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib - make -s -j $MAKEJ - make install_sw - cd ../srt-$LIBSRT_VERSION - CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $SRT_CONFIG . - make -j $MAKEJ V=0 - make install - cd ../openh264-$OPENH264_VERSION - make -j $MAKEJ DESTDIR=./ PREFIX=.. AR=ar USE_ASM=No install-static - cd ../$X264 - ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl --disable-asm - make -j $MAKEJ V=0 - make install - cd ../x265-$X265/build/linux - # from x265 multilib.sh - mkdir -p 8bit 10bit 12bit - - cd 12bit - $CMAKE ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm - make -j $MAKEJ - - cd ../10bit - $CMAKE ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm - make -j $MAKEJ - - cd ../8bit - ln -sf ../10bit/libx265.a libx265_main10.a - ln -sf ../12bit/libx265.a libx265_main12.a - $CMAKE ../../../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DENABLE_SHARED:BOOL=OFF -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm - make -j $MAKEJ - - # rename the 8bit library, then combine all three into libx265.a - mv libx265.a libx265_main.a - /usr/bin/libtool -static -o libx265.a libx265_main.a libx265_main10.a libx265_main12.a 2>/dev/null - - make install - # ---- - cd ../../../ - cd ../libvpx-$VPX_VERSION - sedinplace '/avx512/d' configure - ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests - make -j $MAKEJ - sedinplace '/HAS_AVX512/d' vpx_dsp_rtcd.h - make install - cd ../libwebp-$WEBP_VERSION - CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $WEBP_CONFIG . - make -j $MAKEJ V=0 - make install - cd ../freetype-$FREETYPE_VERSION - ./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic - make -j $MAKEJ - make install - cd ../libaom-$AOMAV1_VERSION - mkdir -p build_release - cd build_release - $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $LIBAOM_CONFIG .. - make -j $MAKEJ - make install - cd .. - cd ../SVT-AV1-v$SVTAV1_VERSION - mkdir -p build_release - cd build_release - $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $LIBSVTAV1_CONFIG .. - make -j $MAKEJ - make install - cd .. - cd ../ffmpeg-$FFMPEG_VERSION - patch -Np1 < ../../../ffmpeg-macosx.patch - LDEXEFLAGS='-Wl,-rpath,@loader_path/' PKG_CONFIG_PATH=../lib/pkgconfig/ ./configure --prefix=.. $DISABLE $ENABLE $ENABLE_VULKAN --enable-pthreads --enable-indev=avfoundation --disable-libxcb --extra-cflags="-I../include/ -I../include/libxml2 -I../include/mfx -I../include/svt-av1" --extra-ldflags="-L../lib/" --extra-libs="-lstdc++ -ldl -lz -lm" || cat ffbuild/config.log - make -j $MAKEJ - make install - ;; - - windows-x86) - echo "" - echo "--------------------" - echo "Building zimg" - echo "--------------------" - echo "" - cd zimg-release-$ZIMG_VERSION - autoreconf -iv - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building zlib" - echo "--------------------" - echo "" - cd ../$ZLIB - make -j $MAKEJ install -fwin32/Makefile.gcc BINARY_PATH=$INSTALL_PATH/bin/ INCLUDE_PATH=$INSTALL_PATH/include/ LIBRARY_PATH=$INSTALL_PATH/lib/ - echo "" - echo "--------------------" - echo "Building LAME" - echo "--------------------" - echo "" - cd ../$LAME - ./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32 -msse2" - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building XML2" - echo "--------------------" - echo "" - cd ../$XML2 - ./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG --build=i686-w64-mingw32 CFLAGS="-m32 -msse2" - make -j $MAKEJ V=0 - make install - echo "" - echo "--------------------" - echo "Building speex" - echo "--------------------" - echo "" - cd ../$SPEEX - PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" - make -j $MAKEJ V=0 - make install - cd ../$OPUS - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" - make -j $MAKEJ V=0 - make install - cd ../$OPENCORE_AMR - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" CXXFLAGS="-m32" - make -j $MAKEJ V=0 - make install - cd ../$VO_AMRWBENC - ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" CXXFLAGS="-m32" - make -j $MAKEJ V=0 - make install - cd ../$OPENSSL - ./Configure mingw -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib - make -s -j $MAKEJ - make install_sw - cd ../srt-$LIBSRT_VERSION - CC="gcc -m32" CXX="g++ -m32" CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $SRT_CONFIG -DENABLE_STDCXX_SYNC=ON . - make -j $MAKEJ V=0 - make install - cd ../openh264-$OPENH264_VERSION - make -j $MAKEJ DESTDIR=./ PREFIX=.. AR=ar ARCH=x86 USE_ASM=No install-static - cd ../$X264 - ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl --host=i686-w64-mingw32 - make -j $MAKEJ V=0 - make install - cd ../x265-$X265/build/linux - # from x265 multilib.sh - mkdir -p 8bit 10bit 12bit - - cd 12bit - CC="gcc -m32" CXX="g++ -m32" $CMAKE -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF -DMAIN12=ON -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm.exe - make -j $MAKEJ - - cd ../10bit - CC="gcc -m32" CXX="g++ -m32" $CMAKE -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm.exe - make -j $MAKEJ - - cd ../8bit - ln -sf ../10bit/libx265.a libx265_main10.a - ln -sf ../12bit/libx265.a libx265_main12.a - CC="gcc -m32" CXX="g++ -m32" $CMAKE -G "MSYS Makefiles" ../../../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DENABLE_SHARED:BOOL=OFF -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm.exe -DENABLE_CLI=OFF - make -j $MAKEJ - - # rename the 8bit library, then combine all three into libx265.a - mv libx265.a libx265_main.a -ar -M </dev/null +# +# make install +# # ---- +# cd ../../../ +# cd ../libvpx-$VPX_VERSION +# sedinplace '/avx512/d' configure +# CC="clang -arch arm64" CXX="clang++ -arch arm64" ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests --target=generic-gnu +# make -j $MAKEJ +# sedinplace '/HAS_AVX512/d' vpx_dsp_rtcd.h +# make install +# cd ../libwebp-$WEBP_VERSION +# CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $WEBP_CONFIG -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=armv8 -DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC" -DCMAKE_C_FLAGS="$CFLAGS -fPIC" -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" . +# make -j $MAKEJ V=0 +# make install +# cd ../freetype-$FREETYPE_VERSION +# ./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic --host=aarch64-apple-darwin +# make -j $MAKEJ +# make install +# cd ../libaom-$AOMAV1_VERSION +# mkdir -p build_release +# cd build_release +# CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=armv8 -DCMAKE_CXX_FLAGS="$CXXFLAGS -fPIC" -DCMAKE_C_FLAGS="$CFLAGS -fPIC" -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" $LIBAOM_CONFIG -DAOM_ARCH_AARCH64=1 -DCONFIG_RUNTIME_CPU_DETECT:BOOL=OFF -DENABLE_NEON_I8MM=OFF .. +# make -j $MAKEJ +# make install +# cd .. +# cd ../SVT-AV1-v$SVTAV1_VERSION +# mkdir -p build_release +# cd build_release +# $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $LIBSVTAV1_CONFIG .. +# make -j $MAKEJ +# make install +# cd .. +# cd ../ffmpeg-$FFMPEG_VERSION +# patch -Np1 < ../../../ffmpeg-macosx.patch +# LDEXEFLAGS='-Wl,-rpath,@loader_path/' PKG_CONFIG_PATH=../lib/pkgconfig/ ./configure --prefix=.. $DISABLE $ENABLE $ENABLE_VULKAN --enable-pthreads --enable-indev=avfoundation --disable-libxcb --cc="clang -arch arm64" --extra-cflags="-I../include/ -I../include/libxml2 -I../include/mfx -I../include/svt-av1" --extra-ldflags="-L../lib/" --extra-libs="-lstdc++ -ldl -lz -lm" --enable-cross-compile --arch=arm64 --target-os=darwin || cat ffbuild/config.log +# make -j $MAKEJ +# make install +# ;; +# +# macosx-x86_64) +# export AS="nasm" +# echo "" +# echo "--------------------" +# echo "Building zimg" +# echo "--------------------" +# echo "" +# cd zimg-release-$ZIMG_VERSION +# autoreconf -iv +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic +# make -j $MAKEJ V=0 +# make install +# echo "" +# echo "--------------------" +# echo "Building zlib" +# echo "--------------------" +# echo "" +# cd ../$ZLIB +# CC="clang -fPIC" ./configure --prefix=$INSTALL_PATH --static +# make -j $MAKEJ V=0 +# make install +# echo "" +# echo "--------------------" +# echo "Building LAME" +# echo "--------------------" +# echo "" +# cd ../$LAME +# ./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic +# make -j $MAKEJ V=0 +# make install +# echo "" +# echo "--------------------" +# echo "Building XML2" +# echo "--------------------" +# echo "" +# cd ../$XML2 +# ./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG +# make -j $MAKEJ V=0 +# make install +# echo "" +# echo "--------------------" +# echo "Building speex" +# echo "--------------------" +# echo "" +# cd ../$SPEEX +# PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic +# make -j $MAKEJ V=0 +# make install +# cd ../$OPUS +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic +# make -j $MAKEJ V=0 +# make install +# cd ../$OPENCORE_AMR +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic +# make -j $MAKEJ V=0 +# make install +# cd ../$VO_AMRWBENC +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic +# make -j $MAKEJ V=0 +# make install +# cd ../$OPENSSL +# ./Configure darwin64-x86_64-cc -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib +# make -s -j $MAKEJ +# make install_sw +# cd ../srt-$LIBSRT_VERSION +# CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $SRT_CONFIG . +# make -j $MAKEJ V=0 +# make install +# cd ../openh264-$OPENH264_VERSION +# make -j $MAKEJ DESTDIR=./ PREFIX=.. AR=ar USE_ASM=No install-static +# cd ../$X264 +# ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl --disable-asm +# make -j $MAKEJ V=0 +# make install +# cd ../x265-$X265/build/linux +# # from x265 multilib.sh +# mkdir -p 8bit 10bit 12bit +# +# cd 12bit +# $CMAKE ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm +# make -j $MAKEJ +# +# cd ../10bit +# $CMAKE ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm +# make -j $MAKEJ +# +# cd ../8bit +# ln -sf ../10bit/libx265.a libx265_main10.a +# ln -sf ../12bit/libx265.a libx265_main12.a +# $CMAKE ../../../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DENABLE_SHARED:BOOL=OFF -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm +# make -j $MAKEJ +# +# # rename the 8bit library, then combine all three into libx265.a +# mv libx265.a libx265_main.a +# /usr/bin/libtool -static -o libx265.a libx265_main.a libx265_main10.a libx265_main12.a 2>/dev/null +# +# make install +# # ---- +# cd ../../../ +# cd ../libvpx-$VPX_VERSION +# sedinplace '/avx512/d' configure +# ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests +# make -j $MAKEJ +# sedinplace '/HAS_AVX512/d' vpx_dsp_rtcd.h +# make install +# cd ../libwebp-$WEBP_VERSION +# CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $WEBP_CONFIG . +# make -j $MAKEJ V=0 +# make install +# cd ../freetype-$FREETYPE_VERSION +# ./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic +# make -j $MAKEJ +# make install +# cd ../libaom-$AOMAV1_VERSION +# mkdir -p build_release +# cd build_release +# $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $LIBAOM_CONFIG .. +# make -j $MAKEJ +# make install +# cd .. +# cd ../SVT-AV1-v$SVTAV1_VERSION +# mkdir -p build_release +# cd build_release +# $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $LIBSVTAV1_CONFIG .. +# make -j $MAKEJ +# make install +# cd .. +# cd ../ffmpeg-$FFMPEG_VERSION +# patch -Np1 < ../../../ffmpeg-macosx.patch +# LDEXEFLAGS='-Wl,-rpath,@loader_path/' PKG_CONFIG_PATH=../lib/pkgconfig/ ./configure --prefix=.. $DISABLE $ENABLE $ENABLE_VULKAN --enable-pthreads --enable-indev=avfoundation --disable-libxcb --extra-cflags="-I../include/ -I../include/libxml2 -I../include/mfx -I../include/svt-av1" --extra-ldflags="-L../lib/" --extra-libs="-lstdc++ -ldl -lz -lm" || cat ffbuild/config.log +# make -j $MAKEJ +# make install +# ;; +# +# windows-x86) +# echo "" +# echo "--------------------" +# echo "Building zimg" +# echo "--------------------" +# echo "" +# cd zimg-release-$ZIMG_VERSION +# autoreconf -iv +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 +# make -j $MAKEJ V=0 +# make install +# echo "" +# echo "--------------------" +# echo "Building zlib" +# echo "--------------------" +# echo "" +# cd ../$ZLIB +# make -j $MAKEJ install -fwin32/Makefile.gcc BINARY_PATH=$INSTALL_PATH/bin/ INCLUDE_PATH=$INSTALL_PATH/include/ LIBRARY_PATH=$INSTALL_PATH/lib/ +# echo "" +# echo "--------------------" +# echo "Building LAME" +# echo "--------------------" +# echo "" +# cd ../$LAME +# ./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32 -msse2" +# make -j $MAKEJ V=0 +# make install +# echo "" +# echo "--------------------" +# echo "Building XML2" +# echo "--------------------" +# echo "" +# cd ../$XML2 +# ./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG --build=i686-w64-mingw32 CFLAGS="-m32 -msse2" +# make -j $MAKEJ V=0 +# make install +# echo "" +# echo "--------------------" +# echo "Building speex" +# echo "--------------------" +# echo "" +# cd ../$SPEEX +# PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" +# make -j $MAKEJ V=0 +# make install +# cd ../$OPUS +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" +# make -j $MAKEJ V=0 +# make install +# cd ../$OPENCORE_AMR +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" CXXFLAGS="-m32" +# make -j $MAKEJ V=0 +# make install +# cd ../$VO_AMRWBENC +# ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --build=i686-w64-mingw32 CFLAGS="-m32" CXXFLAGS="-m32" +# make -j $MAKEJ V=0 +# make install +# cd ../$OPENSSL +# ./Configure mingw -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib +# make -s -j $MAKEJ +# make install_sw +# cd ../srt-$LIBSRT_VERSION +# CC="gcc -m32" CXX="g++ -m32" CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $SRT_CONFIG -DENABLE_STDCXX_SYNC=ON . +# make -j $MAKEJ V=0 +# make install +# cd ../openh264-$OPENH264_VERSION +# make -j $MAKEJ DESTDIR=./ PREFIX=.. AR=ar ARCH=x86 USE_ASM=No install-static +# cd ../$X264 +# ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl --host=i686-w64-mingw32 +# make -j $MAKEJ V=0 +# make install +# cd ../x265-$X265/build/linux +# # from x265 multilib.sh +# mkdir -p 8bit 10bit 12bit +# +# cd 12bit +# CC="gcc -m32" CXX="g++ -m32" $CMAKE -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF -DMAIN12=ON -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm.exe +# make -j $MAKEJ +# +# cd ../10bit +# CC="gcc -m32" CXX="g++ -m32" $CMAKE -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DENABLE_ASSEMBLY=OFF -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm.exe +# make -j $MAKEJ +# +# cd ../8bit +# ln -sf ../10bit/libx265.a libx265_main10.a +# ln -sf ../12bit/libx265.a libx265_main12.a +# CC="gcc -m32" CXX="g++ -m32" $CMAKE -G "MSYS Makefiles" ../../../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DENABLE_SHARED:BOOL=OFF -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release -DNASM_EXECUTABLE:FILEPATH=$INSTALL_PATH/bin/nasm.exe -DENABLE_CLI=OFF +# make -j $MAKEJ +# +# # rename the 8bit library, then combine all three into libx265.a +# mv libx265.a libx265_main.a +#ar -M <