|
| 1 | +#!/usr/bin/env bash |
| 2 | +# ffmpeg windows cross compile helper extra script, see github repo README |
| 3 | +# Copyright (C) 2023 FREE WING,Y.Sakamoto, the script is under the GPLv3, but output FFmpeg's executables aren't |
| 4 | +# set -x |
| 5 | + |
| 6 | +echo "This is Patch for WSL Ubuntu" |
| 7 | + |
| 8 | +echo "Disable Tesseract OCR function" |
| 9 | +# ERROR: tesseract not found using pkg-config |
| 10 | +# Disable Tesseract OCR function |
| 11 | +sed -i -e "s/ build_libtesseract/ # build_libtesseract/g" cross_compile_ffmpeg.sh |
| 12 | +sed -i -e "s/--enable-libtesseract//g" cross_compile_ffmpeg.sh |
| 13 | + |
| 14 | +echo "Windows WSL 'binfmt'" |
| 15 | +if [ -f /proc/sys/fs/binfmt_misc/WSLInterop ]; then |
| 16 | + echo "Windows WSL Disable 'binfmt'" |
| 17 | + sudo bash -c 'echo 0 > /proc/sys/fs/binfmt_misc/WSLInterop' |
| 18 | +fi |
| 19 | + |
| 20 | +echo "Update Package Index file" |
| 21 | +sudo apt-get update -q |
| 22 | + |
| 23 | +echo "Install missing Packages" |
| 24 | + |
| 25 | +# Debian |
| 26 | +sudo apt-get install wget -y -q |
| 27 | + |
| 28 | +# Debian: lensfun ModureNotFoundError: No module named 'setuptools' |
| 29 | +# Ubuntu: lensfun_git from setuptools import setup |
| 30 | +sudo apt-get install python3-setuptools -y -q |
| 31 | + |
| 32 | +echo "Install necessary Packages" |
| 33 | +sudo apt-get install subversion ragel curl texinfo g++ ed bison flex cvs yasm automake libtool autoconf gcc cmake git make pkg-config zlib1g-dev unzip pax nasm gperf autogen bzip2 autoconf-archive p7zip-full meson clang -y -q |
| 34 | +sudo apt-get install libtool-bin ed -y -q |
| 35 | +sudo apt-get install python3-distutils -y -q |
| 36 | +sudo apt-get install python-is-python3 -y -q |
| 37 | + |
| 38 | +echo "Next Execute './extra/build.sh'" |
| 39 | + |
0 commit comments