mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-18 13:33:55 +08:00
19 lines
723 B
Bash
Executable File
19 lines
723 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Install ffmpeg (the one from the ubuntu repos doesn't work with our libOpenCL)
|
|
cd /tmp
|
|
wget https://ffmpeg.org/releases/ffmpeg-4.2.2.tar.bz2
|
|
tar xvf ffmpeg-4.2.2.tar.bz2
|
|
cd ffmpeg-4.2.2
|
|
|
|
# avoid makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
|
|
# with --disable-htmlpages
|
|
# --disable-doc works too, disables building documentation completely
|
|
# https://gist.github.com/omegdadi/6904512c0a948225c81114b1c5acb875
|
|
# https://github.com/7Ji/archrepo/issues/10
|
|
./configure --enable-shared --disable-static --disable-htmlpages
|
|
make -j$(nproc)
|
|
|
|
checkinstall -yD --install=no --fstrans=no --pkgname=ffmpeg
|
|
mv ffmpeg*.deb /tmp/ffmpeg.deb
|