diff --git a/.github/workflows/build-ffmpeg.yml b/.github/workflows/build-ffmpeg.yml index 25ca8ab1..19212ae1 100644 --- a/.github/workflows/build-ffmpeg.yml +++ b/.github/workflows/build-ffmpeg.yml @@ -20,21 +20,21 @@ jobs: fail-fast: false matrix: include: - - os: macos-14 - arch: arm64 - shell: bash - - os: macos-13 - arch: x86_64 - shell: bash - - os: ubuntu-latest - arch: i686 - shell: bash +# - os: macos-14 +# arch: arm64 +# shell: bash +# - os: macos-13 +# arch: x86_64 +# shell: bash +# - os: ubuntu-latest +# arch: i686 +# shell: bash - os: ubuntu-latest arch: x86_64 shell: bash - - os: windows-latest - arch: AMD64 - shell: 'msys2 {0}' +# - os: windows-latest +# arch: AMD64 +# shell: 'msys2 {0}' defaults: run: shell: ${{ matrix.shell }} @@ -46,17 +46,31 @@ jobs: - name: Set deployment target if: matrix.os == 'macos-13' || matrix.os == 'macos-14' run: echo "MACOSX_DEPLOYMENT_TARGET=10.13" >> $GITHUB_ENV - - name: Install packages + - name: Install packages for macos if: matrix.os == 'macos-13' || matrix.os == 'macos-14' run: | brew update - brew install pkg-config + brew install pkg-config srt@1.4 brew unlink gettext libidn2 libpng libtiff libunistring libx11 libxau libxcb libxdmcp little-cms2 unbound + - name: Install packages for linux + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install autoconf automake build-essential cmake libtool pkg-config nasm zlib1g-dev libvorbis-dev libx264-dev 'libgnutls.*-dev' libsrt-gnutls-dev gnutls-bin srt-tools 'libsrt.*-gnutls' libssl-dev - uses: msys2/setup-msys2@v2 if: matrix.os == 'windows-latest' with: install: base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-gperf mingw-w64-x86_64-nasm path-type: inherit + - name: list + run: | + echo 111111 + dpkg -L libsrt1.4-gnutls + echo 222222 + dpkg -L libsrt-gnutls-dev + echo 333333 + export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig + echo $PKG_CONFIG_PATH - name: Build FFmpeg env: CIBW_ARCHS: ${{ matrix.arch }} @@ -76,7 +90,7 @@ jobs: with: name: output-${{ matrix.os }}-${{ matrix.arch }} path: output/ - + build-qemu-stage-1: runs-on: ${{ matrix.os }} strategy: diff --git a/scripts/build-ffmpeg.py b/scripts/build-ffmpeg.py index 818847a8..32d4b872 100644 --- a/scripts/build-ffmpeg.py +++ b/scripts/build-ffmpeg.py @@ -219,6 +219,10 @@ def download_tars(use_gnutls, stage): def main(): + print(5555555555) + print(os.getenv("PKG_CONFIG_PATH")) + import sys + sys.exit() global library_group parser = argparse.ArgumentParser("build-ffmpeg") @@ -317,6 +321,7 @@ def main(): "--enable-libopencore-amrwb", "--enable-libopus", "--enable-libspeex", + "--enable-libsrt", "--enable-libtwolame", "--enable-libvorbis", "--enable-libvpx", diff --git a/scripts/cibuildpkg.py b/scripts/cibuildpkg.py index abe52d9a..d663d028 100644 --- a/scripts/cibuildpkg.py +++ b/scripts/cibuildpkg.py @@ -102,10 +102,24 @@ def run(cmd, env=None): try: subprocess.run(cmd, check=True, env=env, stderr=subprocess.PIPE, text=True) except subprocess.CalledProcessError as e: - print(f"stderr: {e.stderr}") + print(f"1111111stderr: {e.stderr}") + find_file("ffbuild/config.log") raise e +def find_file(target_path): + target_dir, target_file = os.path.split(target_path) + for root, dirs, files in os.walk("/"): + if target_dir in dirs: + potential_dir = os.path.join(root, target_dir) + if target_file in os.listdir(potential_dir): + full_path = os.path.join(potential_dir, target_file) + print(f"2222222Found: {full_path}") + with open(full_path, 'r') as log_file: + print(log_file.read()) + + + @dataclass class Package: name: str