forked from FFmpeg/FFmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sesi_how_to_build.txt
41 lines (31 loc) · 2.37 KB
/
sesi_how_to_build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Windows (cygwin):
cmd /c "C:/PROGRA~1/MICROS~3/2022/PROFES~1/VC/Tools/MSVC/1435~1.322/../../../Auxiliary/Build/vcvars64.bat && C:/cygwin/bin/bash.exe -c 'export' > vcvars.env" && source vcvars.env && rm vcvars.env;
./configure --prefix=install --disable-debug --cc=cl.exe --toolchain=msvc --target-os=win32 --enable-cross-compile --arch=x86_64 --enable-x86asm --x86asmexe=nasm --disable-static --enable-shared --enable-pic --enable-runtime-cpudetect --enable-asm --disable-ffplay --disable-network --disable-doc --extra-cflags=' -MD' --extra-ldsoflags='' --extra-ldexeflags=''; \
macOS:
./configure --prefix=install --disable-debug --target-os=darwin --enable-lto --arch=aarch64 --disable-static --enable-shared --enable-pic --enable-runtime-cpudetect --enable-asm --disable-ffplay --disable-network --disable-doc --extra-cflags='-mmacosx-version-min=10.15 ' --extra-ldsoflags='-Wl,-rpath,@loader_path:@loader_path/../../Libraries -mmacosx-version-min=10.15' --extra-ldexeflags='-Wl,-rpath,@loader_path:@loader_path/../../Libraries -mmacosx-version-min=10.15';
Linux:
./configure --cc=gcc --prefix=install --disable-debug --target-os=linux --enable-lto --disable-static --enable-shared --enable-pic --enable-runtime-cpudetect --enable-asm --disable-ffplay --disable-network --disable-doc --extra-ldsoflags='-Wl,-rpath,\\\$\$\$\$ORIGIN:\\\$\$\$\$ORIGIN/../dsolib' --extra-ldexeflags='-Wl,-rpath,\\\$\$ORIGIN:\\\$\$ORIGIN/../dsolib'
make -j20
make install
mkdir -p /tmp/ffmpeg/custom/include/ffmpeg
mkdir -p /tmp/ffmpeg/bin
Windows (cygwin):
mkdir -p /tmp/ffmpeg/custom/houdini/dsolib
cp -a install/bin/*.dll /tmp/ffmpeg/bin
cp -a install/bin/*.lib /tmp/ffmpeg/custom/houdini/dsolib
macOS:
mkdir -p /tmp/ffmpeg/dsolib
for libname in avdevice avfilter avformat avcodec swresample swscale avutil; do \
cp -pL install/lib/lib${libname}.dylib* /tmp/ffmpeg/dsolib || :; \
done
Linux:
mkdir -p /tmp/ffmpeg/dsolib
for libname in avdevice avfilter avformat avcodec swresample swscale avutil; do \
cp -pL install/lib/lib${libname}.so* /tmp/ffmpeg/dsolib || :; \
done
cp -a install/include/lib* /tmp/ffmpeg/custom/include/ffmpeg
cp -a install/bin/ffmpeg /tmp/ffmpeg/bin/hffmpeg
cp -a install/bin/ffprobe /tmp/ffmpeg/bin/hffprobe
macOS:
python3 sesi_binary_repather.py install /tmp/ffmpeg/bin/hffmpeg
python3 sesi_binary_repather.py install /tmp/ffmpeg/bin/hffprobe