Free Online Tutorials https://tutorialspots.com Tutorials, Resources and Snippets Mon, 11 Mar 2024 10:57:53 +0000 en-US hourly 1 http://wordpress.org/?v=4.3 The shadow DOM in HTML5 https://tutorialspots.com/the-shadow-dom-in-html5-7307.html https://tutorialspots.com/the-shadow-dom-in-html5-7307.html#comments Mon, 11 Mar 2024 10:57:53 +0000 http://tutorialspots.com/?p=7307 HTML5 is a content structure and presentation language for the World Wide Web and will be the core technology of the Internet in the not too distant future, first proposed by Opera Software. It is the fifth version of the HTML language, created in 1990 and standardized as HTML4 in 1997, and appeared in December 2012HTML5 was the candidate introduced by the World Wide Web Consortium (W3C) .

However, to answer your question about shadows, we need to look further. The shadow DOM is part of HTML5 and was introduced to create local scope for web elements. It allows you to create elements with a private scope, unaffected by other elements in the same document. The shadow DOM was introduced into HTML5 quite early, and exactly since the first HTML5 version was announced.

So the shadow DOM was born from HTML5 first, in October 2014. It is an important part of creating web components that are independent and easy to maintain.

The shadow DOM is a part of HTML5 that allows the creation of a local DOM for web elements. This helps you create private-scoped elements that aren’t affected by other elements in the same document. To query an element in the shadow DOM, you can use the following methods:

* First, you need to create an element host to contain elements wrapped in shadow DOMs.
* Use the attachShadow() method to attach the shadow root to the hosts element. Example:

const elementHost = document.getElementById('my-element'); // Replace 'my-element' with the id of the element you want to apply shadow DOM to
const shadowRoot = elementHost.attachShadow({ mode: 'open' }); // 'open' allows access to the shadow root

* Create elements inside the shadow root, but don’t include them in the main DOM tree. Example:

shadowRoot.innerHTML = '<p>This is a shadow DOM element.</p>';

* You can now edit and interact with elements inside the shadow root via JavaScript.
The example below demonstrates how to create a custom element with a shadow DOM:

customElements.define('my-custom-element', class extends HTMLElement {
  constructor() {
    super();
    const shadowRoot = this.attachShadow({ mode: 'open' });
    shadowRoot.innerHTML = '<p>Hello from shadow DOM!</p>';
  }
});

// Use custom element 
const myElement = document.createElement('my-custom-element');
document.body.appendChild(myElement);

How to access elements in the shadow DOM that already exist?

Once you have an element containing the shadow DOM, you can use the following methods to access the elements within:

* querySelector(): This method allows you to query elements inside the shadow DOM using CSS selectors. Example:

const shadowRoot = document.getElementById('my-element').shadowRoot;
const innerElement = shadowRoot.querySelector('.inner-element'); // Replace '.inner-element' with the selector of the element you want to query

* getElementById(): If you have set the id for the element inside the shadow DOM, you can use this method to access it directly. Example:

const innerElementById = shadowRoot.getElementById('my-inner-element-id'); // Replace 'my-inner-element-id' with the id of the element you want to query

* querySelectorAll(): If you want to query multiple elements at once, you can use this method. Example:

const allInnerElements = shadowRoot.querySelectorAll('.inner-elements'); // Replace '.inner-elements' with the selector of all the elements you want to query

Keep in mind that you need to access shadow root before using the methods above.

]]>
https://tutorialspots.com/the-shadow-dom-in-html5-7307.html/feed 0
How to reset MariaDb 10.4 root password on Linux https://tutorialspots.com/how-to-reset-mariadb-10-4-root-password-on-linux-7298.html https://tutorialspots.com/how-to-reset-mariadb-10-4-root-password-on-linux-7298.html#comments Mon, 26 Feb 2024 16:29:54 +0000 http://tutorialspots.com/?p=7298 You forgot or you unknow your root MYSQL password! How to reset MariaDb root password on Linux?

Related articles – Old articles:

How to change Mysql root password – November 6, 2016
How to reset MariaDb root password on Linux – August 20, 2017
How to reset MySQL root password on Linux – January 18, 2019

For Mariadb >= 10.4, our case : Mariadb 10.6 on Ubuntu 22.04

Step 1: stop mariadb service

service mariadb stop

Step 2:

sudo mysqld_safe --skip-networking &
mysql -u root
SET PASSWORD FOR 'root'@localhost = PASSWORD("new-password");
flush privileges;
exit;

result:

root@tutorialspots ~ # sudo mysqld_safe --skip-networking &
[1] 5881
root@tutorialspots ~ # 240226 16:22:31 mysqld_safe Logging to syslog.
240226 16:22:31 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql
mysql -u root
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.6.16-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SET PASSWORD FOR 'root'@localhost = PASSWORD("new-password");
Query OK, 0 rows affected (0.023 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> exit;
Bye

Step 3: stop mysqld_safe

root@tutorialspots ~ # ps aux|grep mysqld
root        5881  0.0  0.0  11504  5468 pts/2    S    16:22   0:00 sudo mysqld_safe --skip-networking
root        5882  0.0  0.0  11504   884 pts/0    Ss+  16:22   0:00 sudo mysqld_safe --skip-networking
root        5883  0.0  0.0   2892  1812 pts/0    S    16:22   0:00 /bin/sh /usr/bin/mysqld_safe --skip-networking
mysql       5981  0.0  0.1 1338288 83536 pts/0   Sl   16:22   0:00 /usr/sbin/mariadbd --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-networking --skip-log-error --pid-file=/run/mysqld/mysqld.pid --socket=/run/mysqld/mysqld.sock
root        5982  0.0  0.0   9172  1488 pts/0    S    16:22   0:00 logger -t mysqld -p daemon error
root        6045  0.0  0.0   6480  2316 pts/2    S+   16:26   0:00 grep --color=auto mysqld
root@tutorialspots ~ # kill 5881
root@tutorialspots ~ # ps aux|grep mysqld
root        6057  0.0  0.0   6480  2432 pts/2    S+   16:27   0:00 grep --color=auto mysqld
[1]+  Done                    sudo mysqld_safe --skip-networking

Step 4: start Mariadb service

service mariadb start

]]>
https://tutorialspots.com/how-to-reset-mariadb-10-4-root-password-on-linux-7298.html/feed 0
How to install PHP8.1 on Ubuntu 22.04 https://tutorialspots.com/how-to-install-php8-1-on-ubuntu-22-04-7293.html https://tutorialspots.com/how-to-install-php8-1-on-ubuntu-22-04-7293.html#comments Sun, 25 Feb 2024 18:01:28 +0000 http://tutorialspots.com/?p=7293 Step 1: Install PHP
apt-get install php8.1 -y
apt-get install php8.1-fpm -y
apt-get install php8.1-dev -y

Step 2: Install some extensions:

apt install php8.1-gd
apt install php8.1-curl php8.1-mbstring php8.1-xml php8.1-mysql php8.1-odbc php8.1-intl php8.1-http php8.1-gmp
apt install php8.1-zip php8.1-tidy php8.1-bcmath

Step 3:
systemctl enable php8.1-fpm
systemctl start php8.1-fpm

Step 4: edit file /etc/php/8.1/fpm/pool.d/www.conf

change line:
listen = /run/php/php8.1-fpm.sock

to
listen = 127.0.0.1:9000

Step 5: Restart php-fpm

systemctl restart php8.1-fpm
Done!

]]>
https://tutorialspots.com/how-to-install-php8-1-on-ubuntu-22-04-7293.html/feed 0
How to install Nginx 1.24 on Ubuntu 22.04 https://tutorialspots.com/how-to-install-nginx-1-24-on-ubuntu-22-04-7290.html https://tutorialspots.com/how-to-install-nginx-1-24-on-ubuntu-22-04-7290.html#comments Sun, 25 Feb 2024 17:45:17 +0000 http://tutorialspots.com/?p=7290 /dev/null result: Step 3 -Create source.list file for apt: echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ […]]]> Step 1 – Connect to the server via SSH and install the required software

sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring

result:

root@tutorialspots ~ # sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu4).
ubuntu-keyring is already the newest version (2021.03.26).
ca-certificates is already the newest version (20230311ubuntu0.22.04.1).
ca-certificates set to manually installed.
curl is already the newest version (7.81.0-1ubuntu1.15).
gnupg2 is already the newest version (2.2.27-3ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Step 2 – Import nginx signing key for apt

curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null

result:

root@tutorialspots ~ # curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
> | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1561  100  1561    0     0  24691      0 --:--:-- --:--:-- --:--:-- 24777

Step 3 -Create source.list file for apt:

echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list

Step 4 -Pin the repository to ensure nginx packages are installed instead of packages provided by Ubuntu

echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
| sudo tee /etc/apt/preferences.d/99-nginx

Step 5 – Update apt:

sudo apt update

result:

root@tutorialspots ~ # sudo apt update
Hit:1 http://mirror.hetzner.com/ubuntu/packages jammy InRelease
Hit:2 http://mirror.hetzner.com/ubuntu/packages jammy-updates InRelease
Hit:3 http://mirror.hetzner.com/ubuntu/packages jammy-backports InRelease
Hit:4 http://mirror.hetzner.com/ubuntu/packages jammy-security InRelease
Get:5 http://nginx.org/packages/ubuntu jammy InRelease [3,587 B]
Hit:6 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Hit:7 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:8 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:9 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:10 http://nginx.org/packages/ubuntu jammy/nginx amd64 Packages [14.4 kB]
Fetched 128 kB in 1s (210 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.

Step 6– Install nginx

sudo apt install nginx

result:

...
(Reading database ... 57747 files and directories currently installed.)
Preparing to unpack .../nginx_1.24.0-1~jammy_amd64.deb ...
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* https://nginx.org/en/docs/

Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* https://nginx.org/en/support.html

Commercial subscriptions for nginx are available on:
* https://nginx.com/products/

----------------------------------------------------------------------
Unpacking nginx (1.24.0-1~jammy) ...
Setting up nginx (1.24.0-1~jammy) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

The processor microcode seems to be up-to-date.

Restarting services...
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart getty@tty1.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Step 7 – Check and test

systemctl restart nginx
nginx -v
curl -I 127.0.0.1

result:

...
root@tutorialspots ~ # nginx -v
nginx version: nginx/1.24.0
root@tutorialspots ~ # curl -I 127.0.0.1
HTTP/1.1 200 OK
Server: nginx/1.24.0
Date: Sun, 25 Feb 2024 17:44:51 GMT
Content-Type: text/html
Content-Length: 615
Last-Modified: Tue, 11 Apr 2023 01:45:34 GMT
Connection: keep-alive
ETag: "6434bbbe-267"
Accept-Ranges: bytes
]]>
https://tutorialspots.com/how-to-install-nginx-1-24-on-ubuntu-22-04-7290.html/feed 0
How to compile FFmpeg on Ubuntu 20.04 – part 2 https://tutorialspots.com/how-to-compile-ffmpeg-on-ubuntu-20-04-part-2-7279.html https://tutorialspots.com/how-to-compile-ffmpeg-on-ubuntu-20-04-part-2-7279.html#comments Sat, 24 Feb 2024 15:48:41 +0000 http://tutorialspots.com/?p=7279 Part 1: How to compile FFmpeg on Ubuntu 20.04

Step 11: install libvorbis

cd ~/ffmpeg_sources
curl -O -L http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz
tar xzvf libvorbis-1.3.5.tar.gz
cd libvorbis-1.3.5
./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared
make
make install

result:

root@tutorialspots:~/ffmpeg_sources/libogg-1.3.3# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# curl -O -L http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   161  100   161    0     0    298      0 --:--:-- --:--:-- --:--:--   298
100 1600k  100 1600k    0     0   246k      0  0:00:06  0:00:06 --:--:--  327k
root@tutorialspots:~/ffmpeg_sources# tar xzvf libvorbis-1.3.5.tar.gz
...
root@tutorialspots:~/ffmpeg_sources# cd libvorbis-1.3.5
root@tutorialspots:~/ffmpeg_sources/libvorbis-1.3.5# ./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for inline... inline
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking GCC version... 9
checking if gcc accepts -Wdeclaration-after-statement... yes
checking for memory.h... (cached) yes
checking for cos in -lm... yes
checking for pthread_create in -lpthread... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OGG... no
checking for Ogg... yes
checking for oggpack_writealign... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for working memcmp... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating lib/Makefile
config.status: creating lib/modes/Makefile
config.status: creating lib/books/Makefile
config.status: creating lib/books/coupled/Makefile
config.status: creating lib/books/uncoupled/Makefile
config.status: creating lib/books/floor/Makefile
config.status: creating doc/Makefile
config.status: creating doc/vorbisfile/Makefile
config.status: creating doc/vorbisenc/Makefile
config.status: creating doc/libvorbis/Makefile
config.status: creating doc/Doxyfile
config.status: creating include/Makefile
config.status: creating include/vorbis/Makefile
config.status: creating examples/Makefile
config.status: creating test/Makefile
config.status: creating vq/Makefile
config.status: creating libvorbis.spec
config.status: creating vorbis.pc
config.status: creating vorbisenc.pc
config.status: creating vorbisfile.pc
config.status: creating vorbis-uninstalled.pc
config.status: creating vorbisenc-uninstalled.pc
config.status: creating vorbisfile-uninstalled.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
root@tutorialspots:~/ffmpeg_sources/libvorbis-1.3.5# make
...
libtool: link: gcc -D_V_SELFTEST -O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char -Wdeclaration-after-statement -DUSE_MEMORY_H -o test_sharedbook test_sharedbook-sharedbook.o  -lm
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
Making all in test
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/test'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/test'
Making all in doc
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
Making all in libvorbis
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/libvorbis'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/libvorbis'
Making all in vorbisfile
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisfile'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisfile'
Making all in vorbisenc
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisenc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisenc'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
echo "*** Warning: Doxygen not found; documentation will not be built."
*** Warning: Doxygen not found; documentation will not be built.
touch doxygen-build.stamp
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5'
root@tutorialspots:~/ffmpeg_sources/libvorbis-1.3.5# make install
Making install in m4
make[1]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/m4'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/m4'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/m4'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/m4'
Making install in include
make[1]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/include'
Making install in vorbis
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/include/vorbis'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/include/vorbis'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/include/vorbis'
 /usr/bin/install -c -m 644 codec.h vorbisfile.h vorbisenc.h '/root/ffmpeg_build/include/vorbis'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/include/vorbis'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/include/vorbis'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/include'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/include'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/include'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/include'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/include'
Making install in vq
make[1]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/vq'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/vq'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/vq'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/vq'
Making install in lib
make[1]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
Making install in modes
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/modes'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/modes'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/modes'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/modes'
Making install in books
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books'
Making install in coupled
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/coupled'
make[4]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/coupled'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/coupled'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/coupled'
Making install in uncoupled
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/uncoupled'
make[4]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/uncoupled'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/uncoupled'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/uncoupled'
Making install in floor
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/floor'
make[4]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/floor'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/floor'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books/floor'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books'
make[4]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib/books'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libvorbis.la libvorbisfile.la libvorbisenc.la '/root/ffmpeg_build/lib'
libtool: install: /usr/bin/install -c .libs/libvorbis.lai /root/ffmpeg_build/lib/libvorbis.la
libtool: install: /usr/bin/install -c .libs/libvorbisfile.lai /root/ffmpeg_build/lib/libvorbisfile.la
libtool: install: /usr/bin/install -c .libs/libvorbisenc.lai /root/ffmpeg_build/lib/libvorbisenc.la
libtool: install: /usr/bin/install -c .libs/libvorbis.a /root/ffmpeg_build/lib/libvorbis.a
libtool: install: chmod 644 /root/ffmpeg_build/lib/libvorbis.a
libtool: install: ranlib /root/ffmpeg_build/lib/libvorbis.a
libtool: install: /usr/bin/install -c .libs/libvorbisfile.a /root/ffmpeg_build/lib/libvorbisfile.a
libtool: install: chmod 644 /root/ffmpeg_build/lib/libvorbisfile.a
libtool: install: ranlib /root/ffmpeg_build/lib/libvorbisfile.a
libtool: install: /usr/bin/install -c .libs/libvorbisenc.a /root/ffmpeg_build/lib/libvorbisenc.a
libtool: install: chmod 644 /root/ffmpeg_build/lib/libvorbisenc.a
libtool: install: ranlib /root/ffmpeg_build/lib/libvorbisenc.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /root/ffmpeg_build/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /root/ffmpeg_build/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/lib'
Making install in test
make[1]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/test'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/test'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/test'
Making install in doc
make[1]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
Making install in libvorbis
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/libvorbis'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/libvorbis'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/libvorbis'
 /usr/bin/install -c -m 644 index.html reference.html style.css vorbis_comment.html vorbis_info.html vorbis_analysis_blockout.html vorbis_analysis_buffer.html vorbis_analysis_headerout.html vorbis_analysis_init.html vorbis_analysis_wrote.html vorbis_analysis.html vorbis_bitrate_addblock.html vorbis_bitrate_flushpacket.html vorbis_block_init.html vorbis_block_clear.html vorbis_dsp_clear.html vorbis_granule_time.html vorbis_version_string.html vorbis_info_blocksize.html vorbis_info_clear.html vorbis_info_init.html vorbis_comment_add.html vorbis_comment_add_tag.html vorbis_comment_clear.html vorbis_comment_init.html vorbis_comment_query.html vorbis_comment_query_count.html vorbis_commentheader_out.html vorbis_packet_blocksize.html vorbis_synthesis.html vorbis_synthesis_blockin.html vorbis_synthesis_halfrate.html vorbis_synthesis_halfrate_p.html vorbis_synthesis_headerin.html vorbis_synthesis_idheader.html vorbis_synthesis_init.html vorbis_synthesis_lapout.html vorbis_synthesis_pcmout.html vorbis_synthesis_read.html vorbis_synthesis_restart.html '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/libvorbis'
 /usr/bin/install -c -m 644 vorbis_synthesis_trackonly.html vorbis_block.html vorbis_dsp_state.html return.html overview.html '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/libvorbis'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/libvorbis'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/libvorbis'
Making install in vorbisfile
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisfile'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisfile'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/vorbisfile'
 /usr/bin/install -c -m 644 OggVorbis_File.html callbacks.html chaining_example_c.html chainingexample.html crosslap.html datastructures.html decoding.html example.html exampleindex.html fileinfo.html index.html initialization.html ov_bitrate.html ov_bitrate_instant.html ov_callbacks.html ov_clear.html ov_comment.html ov_crosslap.html ov_fopen.html ov_info.html ov_open.html ov_open_callbacks.html ov_pcm_seek.html ov_pcm_seek_lap.html ov_pcm_seek_page.html ov_pcm_seek_page_lap.html ov_pcm_tell.html ov_pcm_total.html ov_raw_seek.html ov_raw_seek_lap.html ov_raw_tell.html ov_raw_total.html ov_read.html ov_read_float.html ov_read_filter.html ov_seekable.html ov_serialnumber.html ov_streams.html ov_test.html ov_test_callbacks.html '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/vorbisfile'
 /usr/bin/install -c -m 644 ov_test_open.html ov_time_seek.html ov_time_seek_lap.html ov_time_seek_page.html ov_time_seek_page_lap.html ov_time_tell.html ov_time_total.html overview.html reference.html seekexample.html seeking.html seeking_example_c.html seeking_test_c.html seekingexample.html style.css threads.html vorbisfile_example_c.html '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/vorbisfile'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisfile'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisfile'
Making install in vorbisenc
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisenc'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisenc'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/vorbisenc'
 /usr/bin/install -c -m 644 changes.html examples.html index.html ovectl_ratemanage2_arg.html ovectl_ratemanage_arg.html overview.html reference.html style.css vorbis_encode_ctl.html vorbis_encode_init.html vorbis_encode_setup_init.html vorbis_encode_setup_managed.html vorbis_encode_setup_vbr.html vorbis_encode_init_vbr.html '/root/ffmpeg_build/share/doc/libvorbis-1.3.5/vorbisenc'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisenc'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc/vorbisenc'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
make[3]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
make[3]: Nothing to be done for 'install-exec-am'.
/bin/bash /root/ffmpeg_sources/libvorbis-1.3.5/install-sh -d /root/ffmpeg_build/share/doc/libvorbis-1.3.5
if test -d vorbis; then \
  for dir in vorbis/*; do \
    if test -d $dir; then \
      b=`basename $dir`; \
      /bin/bash /root/ffmpeg_sources/libvorbis-1.3.5/install-sh -d /root/ffmpeg_build/share/doc/libvorbis-1.3.5/$b; \
      for f in $dir/*; do \
        /usr/bin/install -c -m 644 $f /root/ffmpeg_build/share/doc/libvorbis-1.3.5/$b; \
      done \
    fi \
  done \
fi
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/doc/libvorbis-1.3.5'
 /usr/bin/install -c -m 644 rfc5215.xml rfc5215.txt eightphase.png fish_xiph_org.png floor1_inverse_dB_table.html floorval.png fourphase.png framing.html helper.html index.html oggstream.html programming.html squarepolar.png stereo.html stream.png v-comment.html vorbis-clip.txt vorbis-errors.txt vorbis-fidelity.html doxygen-build.stamp '/root/ffmpeg_build/share/doc/libvorbis-1.3.5'
make[3]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5/doc'
make[1]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5'
make[2]: Entering directory '/root/ffmpeg_sources/libvorbis-1.3.5'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/aclocal'
 /usr/bin/install -c -m 644 vorbis.m4 '/root/ffmpeg_build/share/aclocal'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib/pkgconfig'
 /usr/bin/install -c -m 644 vorbis.pc vorbisenc.pc vorbisfile.pc '/root/ffmpeg_build/lib/pkgconfig'
make[2]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5'
make[1]: Leaving directory '/root/ffmpeg_sources/libvorbis-1.3.5'
root@tutorialspots:~/ffmpeg_sources/libvorbis-1.3.5#

Or you can use package libvorbis-dev

apt install libvorbis-dev

Step 12: Install openssl

cd ~/ffmpeg_sources
wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz
tar -xvf openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
./config --prefix="$HOME/ffmpeg_build" 
make
make install

result:

root@tutorialspots:~/ffmpeg_sources/libvorbis-1.3.5# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz
--2024-02-24 22:55:11--  https://www.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz
Resolving www.openssl.org (www.openssl.org)... 2600:1901:0:1812::, 34.36.58.177
Connecting to www.openssl.org (www.openssl.org)|2600:1901:0:1812::|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4432964 (4.2M) [application/x-tar]
Saving to: ‘openssl-1.0.1j.tar.gz’

openssl-1.0.1j.tar. 100%[===================>]   4.23M  1.86MB/s    in 2.3s

2024-02-24 22:55:15 (1.86 MB/s) - ‘openssl-1.0.1j.tar.gz’ saved [4432964/4432964]

root@tutorialspots:~/ffmpeg_sources# tar -xvf openssl-1.0.1j.tar.gz
...
root@tutorialspots:~/ffmpeg_sources# cd openssl-1.0.1j
root@tutorialspots:~/ffmpeg_sources/openssl-1.0.1j# ./config --prefix="$HOME/ffmpeg_build" 
...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/ssl'
ssl.h => ../include/openssl/ssl.h
ssl2.h => ../include/openssl/ssl2.h
ssl3.h => ../include/openssl/ssl3.h
ssl23.h => ../include/openssl/ssl23.h
tls1.h => ../include/openssl/tls1.h
dtls1.h => ../include/openssl/dtls1.h
kssl.h => ../include/openssl/kssl.h
srtp.h => ../include/openssl/srtp.h
ssltest.c => ../test/ssltest.c
heartbeat_test.c => ../test/heartbeat_test.c
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/ssl'
making links in engines...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/engines'
making links in engines/ccgost...
make[2]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/engines/ccgost'
make[2]: Nothing to be done for 'links'.
make[2]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/engines/ccgost'
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/engines'
making links in apps...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/apps'
make[1]: Nothing to be done for 'links'.
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/apps'
making links in test...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/test'
make[1]: Nothing to be done for 'links'.
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/test'
making links in tools...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/tools'
make[1]: Nothing to be done for 'links'.
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/tools'
generating dummy tests (if needed)...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/test'
make[1]: Nothing to be done for 'generate'.
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/test'

Configured for linux-x86_64.
root@tutorialspots:~/ffmpeg_sources/openssl-1.0.1j# make
...
root@tutorialspots:~/ffmpeg_sources/openssl-1.0.1j# make install
...
make[2]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/engines/ccgost'
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/engines'
making install in apps...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/apps'
installing openssl
installing CA.sh
installing CA.pl
installing tsget
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/apps'
making install in test...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/test'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/test'
making install in tools...
make[1]: Entering directory '/root/ffmpeg_sources/openssl-1.0.1j/tools'
make[1]: Leaving directory '/root/ffmpeg_sources/openssl-1.0.1j/tools'
installing libcrypto.a
installing libssl.a
cp libcrypto.pc /root/ffmpeg_build/lib/pkgconfig
chmod 644 /root/ffmpeg_build/lib/pkgconfig/libcrypto.pc
cp libssl.pc /root/ffmpeg_build/lib/pkgconfig
chmod 644 /root/ffmpeg_build/lib/pkgconfig/libssl.pc
cp openssl.pc /root/ffmpeg_build/lib/pkgconfig
chmod 644 /root/ffmpeg_build/lib/pkgconfig/openssl.pc
root@tutorialspots:~/ffmpeg_sources/openssl-1.0.1j#

Step 13: install libvpx

cd ~/ffmpeg_sources
git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
cd libvpx
CC=c99 ./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm
make
make install

result:

root@tutorialspots:~/ffmpeg_sources/openssl-1.0.1j# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
Cloning into 'libvpx'...
remote: Counting objects: 1325, done
remote: Finding sources: 100% (1325/1325)
remote: Total 1325 (delta 113), reused 540 (delta 113)
Receiving objects: 100% (1325/1325), 5.79 MiB | 10.91 MiB/s, done.
Resolving deltas: 100% (113/113), done.
root@tutorialspots:~/ffmpeg_sources# cd libvpx
root@tutorialspots:~/ffmpeg_sources/libvpx# CC=c99 ./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm
  disabling examples
  disabling unit_tests
  enabling vp9_highbitdepth
  enabling vp8_encoder
  enabling vp8_decoder
  enabling vp9_encoder
  enabling vp9_decoder
Configuring for target 'x86_64-linux-gcc'
  enabling x86_64
  enabling runtime_cpu_detect
  enabling mmx
  enabling sse
  enabling sse2
  enabling sse3
  enabling ssse3
  enabling sse4_1
  enabling avx
  enabling avx2
  enabling avx512
  using yasm
  enabling postproc
  enabling webm_io
  enabling libyuv
Creating makefiles for x86_64-linux-gcc libs
Creating makefiles for x86_64-linux-gcc tools
Creating makefiles for x86_64-linux-gcc docs
root@tutorialspots:~/ffmpeg_sources/libvpx# make
...
root@tutorialspots:~/ffmpeg_sources/libvpx# make install
    [INSTALL] /root/ffmpeg_build/include/vpx/vp8.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vp8cx.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_ext_ratectrl.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vp8dx.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_codec.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_frame_buffer.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_image.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_integer.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_decoder.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_encoder.h
    [INSTALL] /root/ffmpeg_build/include/vpx/vpx_tpl.h
    [INSTALL] /root/ffmpeg_build/lib/libvpx.a
    [INSTALL] /root/ffmpeg_build/lib/pkgconfig/vpx.pc
make[1]: Nothing to be done for 'install'.
make[1]: Nothing to be done for 'install'.
root@tutorialspots:~/ffmpeg_sources/libvpx#

Or you can use package libvpx-dev

apt install libvpx-dev

Step 14: install libharfbuzz-dev

root@tutorialspots:~/ffmpeg_sources# apt install libharfbuzz-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  i965-va-driver intel-media-va-driver libaacs0 libaom0 libass9 libasyncns0
  libavc1394-0 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbdplus0 libbluray2 libbs2b0 libcaca0
  libcairo-gobject2 libcdio-cdda2 libcdio-paranoia2 libcdio18 libchromaprint1
  libcodec2-0.9 libdc1394-22 libflac8 libflite1 libgme0 libgsm1 libiec61883-0
  libigdgmm11 libjack-jackd2-0 liblilv-0-0 libmp3lame0 libmpg123-0 libmysofa1
  libnorm1 libopenal-data libopenal1 libopenmpt0 libopus0 libpgm-5.2-0
  libpostproc55 libpulse0 libraw1394-11 librsvg2-2 librsvg2-common
  librubberband2 libsamplerate0 libsdl2-2.0-0 libserd-0-0 libshine3
  libsnappy1v5 libsndfile1 libsndio7.0 libsord-0-0 libsoxr0 libspeex1
  libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtheora0
  libtwolame0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
  libvorbisenc2 libvpx6 libwavpack1 libwayland-cursor0 libwayland-egl1
  libx264-155 libx265-179 libxcb-shape0 libxcursor1 libxinerama1 libxkbcommon0
  libxrandr2 libxss1 libxv1 libxvidcore4 libzmq5 libzvbi-common libzvbi0
  mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 va-driver-all
  vdpau-driver-all x11-common
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  gir1.2-harfbuzz-0.0 libblkid-dev libffi-dev libglib2.0-dev
  libglib2.0-dev-bin libgraphite2-dev libharfbuzz-gobject0 libharfbuzz-icu0
  libmount-dev libselinux1-dev libsepol1-dev
Suggested packages:
  libgirepository1.0-dev libglib2.0-doc libxml2-utils libgraphite2-utils
The following NEW packages will be installed:
  gir1.2-harfbuzz-0.0 libblkid-dev libffi-dev libglib2.0-dev
  libglib2.0-dev-bin libgraphite2-dev libharfbuzz-dev libharfbuzz-gobject0
  libharfbuzz-icu0 libmount-dev libselinux1-dev libsepol1-dev
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 3086 kB of archives.
After this operation, 18.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gir1.2-harfbuzz-0.0 amd64 2.6.4-1ubuntu4.2 [26.4 kB]
Selecting previously unselected package libharfbuzz-gobject0:amd64.
Preparing to unpack .../10-libharfbuzz-gobject0_2.6.4-1ubuntu4.2_amd64.deb ...
Unpacking libharfbuzz-gobject0:amd64 (2.6.4-1ubuntu4.2) ...
Selecting previously unselected package libharfbuzz-dev:amd64.
Preparing to unpack .../11-libharfbuzz-dev_2.6.4-1ubuntu4.2_amd64.deb ...
Unpacking libharfbuzz-dev:amd64 (2.6.4-1ubuntu4.2) ...
Setting up libglib2.0-dev-bin (2.64.6-1~ubuntu20.04.6) ...
Setting up libblkid-dev:amd64 (2.34-0.1ubuntu9.4) ...
Setting up libharfbuzz-icu0:amd64 (2.6.4-1ubuntu4.2) ...
Setting up libsepol1-dev:amd64 (3.0-1ubuntu0.1) ...
Setting up libharfbuzz-gobject0:amd64 (2.6.4-1ubuntu4.2) ...
Setting up libffi-dev:amd64 (3.3-4) ...
Setting up gir1.2-harfbuzz-0.0:amd64 (2.6.4-1ubuntu4.2) ...
Setting up libgraphite2-dev:amd64 (1.3.13-11build1) ...
Setting up libmount-dev:amd64 (2.34-0.1ubuntu9.4) ...
Setting up libselinux1-dev:amd64 (3.0-1build2) ...
Setting up libglib2.0-dev:amd64 (2.64.6-1~ubuntu20.04.6) ...
Processing triggers for libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.6) ...
Processing triggers for libc-bin (2.31-0ubuntu9.14) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Setting up libharfbuzz-dev:amd64 (2.6.4-1ubuntu4.2) ...

Step 15: install libtheora-dev libspeex-dev ladspa-sdk libfreetype-dev

apt install libtheora-dev libspeex-dev ladspa-sdk libfreetype-dev

result:

root@tutorialspots:~/ffmpeg_sources# apt install libtheora-dev libspeex-dev ladspa-sdk libfreetype-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libfreetype-dev is already the newest version (2.10.1-2ubuntu0.3).
The following packages were automatically installed and are no longer required:
  i965-va-driver intel-media-va-driver libaacs0 libaom0 libass9 libasyncns0
  libavc1394-0 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbdplus0 libbluray2 libbs2b0 libcaca0
  libcairo-gobject2 libcdio-cdda2 libcdio-paranoia2 libcdio18 libchromaprint1
  libcodec2-0.9 libdc1394-22 libflac8 libflite1 libgme0 libgsm1 libiec61883-0
  libigdgmm11 libjack-jackd2-0 liblilv-0-0 libmp3lame0 libmpg123-0 libmysofa1
  libnorm1 libopenal-data libopenal1 libopenmpt0 libopus0 libpgm-5.2-0
  libpostproc55 libpulse0 libraw1394-11 librsvg2-2 librsvg2-common
  librubberband2 libsamplerate0 libsdl2-2.0-0 libserd-0-0 libshine3
64 1.2~rc1.2-1.1ubuntu1.20.04.1 [65.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libtheora-dev amd64 1.1.1+dfsg.1-15ubuntu2 [178 kB]
Fetched 440 kB in 3s (136 kB/s)
Selecting previously unselected package ladspa-sdk.
(Reading database ... 132565 files and directories currently installed.)
Preparing to unpack .../ladspa-sdk_1.15-2build1_amd64.deb ...
Unpacking ladspa-sdk (1.15-2build1) ...
Selecting previously unselected package libogg-dev:amd64.
Preparing to unpack .../libogg-dev_1.3.4-0ubuntu1_amd64.deb ...
Unpacking libogg-dev:amd64 (1.3.4-0ubuntu1) ...
Selecting previously unselected package libspeex-dev:amd64.
Preparing to unpack .../libspeex-dev_1.2~rc1.2-1.1ubuntu1.20.04.1_amd64.deb ...
Unpacking libspeex-dev:amd64 (1.2~rc1.2-1.1ubuntu1.20.04.1) ...
Selecting previously unselected package libtheora-dev:amd64.
Preparing to unpack .../libtheora-dev_1.1.1+dfsg.1-15ubuntu2_amd64.deb ...
Unpacking libtheora-dev:amd64 (1.1.1+dfsg.1-15ubuntu2) ...
Setting up ladspa-sdk (1.15-2build1) ...
Setting up libogg-dev:amd64 (1.3.4-0ubuntu1) ...
Setting up libtheora-dev:amd64 (1.1.1+dfsg.1-15ubuntu2) ...
Setting up libspeex-dev:amd64 (1.2~rc1.2-1.1ubuntu1.20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...

Step 16: install FFmpeg

cd ~/ffmpeg_sources
curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --extra-libs=-lpthread \
  --extra-libs=-lm \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-libfdk_aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree \
  --enable-openssl \
  --enable-libspeex \
  --enable-libtheora \
  --enable-ladspa \
  --enable-muxer=segment \
  --enable-muxer=stream_segment
make
make install
hash -r

result:

root@tutorialspots:~/ffmpeg_sources# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.4M  100 12.4M    0     0  4307k      0  0:00:02  0:00:02 --:--:-- 4305k
root@tutorialspots:~/ffmpeg_sources# tar xjvf ffmpeg-snapshot.tar.bz2
...
cdg                     live_flv                sox
cdxl                    lmlm4                   spdif
cine                    loas                    srt
codec2                  lrc                     stl
codec2raw               luodat                  str
concat                  lvf                     subviewer
data                    lxf                     subviewer1
daud                    m4v                     sup
dcstr                   matroska                svag
derf                    mca                     svs
dfa                     mcc                     swf
dfpwm                   mgsts                   tak
dhav                    microdvd                tedcaptions
dirac                   mjpeg                   thp
dnxhd                   mjpeg_2000              threedostr
dsf                     mlp                     tiertexseq
dsicin                  mlv                     tmv
dss                     mm                      truehd
dts                     mmf                     tta
dtshd                   mods                    tty
dv                      moflex                  txd
dvbsub                  mov                     ty
dvbtxt                  mp3                     usm
dxa                     mpc                     v210
ea                      mpc8                    v210x
ea_cdata                mpegps                  vag
eac3                    mpegts                  vc1
epaf                    mpegtsraw               vc1t
evc                     mpegvideo               vividas
ffmetadata              mpjpeg                  vivo
filmstrip               mpl2                    vmd
fits                    mpsub                   vobsub
flac                    msf                     voc
flic                    msnwc_tcp               vpk
flv                     msp                     vplayer
fourxm                  mtaf                    vqf
frm                     mtv                     vvc
fsb                     musx                    w64
fwse                    mv                      wady
g722                    mvi                     wav
g723_1                  mxf                     wavarc
g726                    mxg                     wc3
g726le                  nc                      webm_dash_manifest
g729                    nistsphere              webvtt
gdv                     nsp                     wsaud
genh                    nsv                     wsd
gif                     nut                     wsvqa
gsm                     nuv                     wtv
gxf                     obu                     wv
h261                    ogg                     wve
h263                    oma                     xa
h264                    osq                     xbin
hca                     paf                     xmd
hcom                    pcm_alaw                xmv
hevc                    pcm_f32be               xvag
hls                     pcm_f32le               xwma
hnm                     pcm_f64be               yop
iamf                    pcm_f64le               yuv4mpegpipe
ico                     pcm_mulaw
idcin                   pcm_s16be

Enabled muxers:
a64                     h263                    pcm_s24be
ac3                     h264                    pcm_s24le
ac4                     hash                    pcm_s32be
adts                    hds                     pcm_s32le
adx                     hevc                    pcm_s8
aiff                    hls                     pcm_u16be
alp                     iamf                    pcm_u16le
amr                     ico                     pcm_u24be
amv                     ilbc                    pcm_u24le
apm                     image2                  pcm_u32be
apng                    image2pipe              pcm_u32le
aptx                    ipod                    pcm_u8
aptx_hd                 ircam                   pcm_vidc
argo_asf                ismv                    psp
argo_cvg                ivf                     rawvideo
asf                     jacosub                 rcwt
asf_stream              kvag                    rm
ass                     latm                    roq
ast                     lrc                     rso
au                      m4v                     rtp
avi                     matroska                rtp_mpegts
avif                    matroska_audio          rtsp
avm2                    md5                     sap
avs2                    microdvd                sbc
avs3                    mjpeg                   scc
bit                     mkvtimestamp_v2         segafilm
caf                     mlp                     segment
cavsvideo               mmf                     smjpeg
codec2                  mov                     smoothstreaming
codec2raw               mp2                     sox
crc                     mp3                     spdif
dash                    mp4                     spx
data                    mpeg1system             srt
daud                    mpeg1vcd                stream_segment
dfpwm                   mpeg1video              streamhash
dirac                   mpeg2dvd                sup
dnxhd                   mpeg2svcd               swf
dts                     mpeg2video              tee
dv                      mpeg2vob                tg2
eac3                    mpegts                  tgp
evc                     mpjpeg                  truehd
f4v                     mxf                     tta
ffmetadata              mxf_d10                 ttml
fifo                    mxf_opatom              uncodedframecrc
fifo_test               null                    vc1
filmstrip               nut                     vc1t
fits                    obu                     voc
flac                    oga                     vvc
flv                     ogg                     w64
framecrc                ogv                     wav
framehash               oma                     webm
framemd5                opus                    webm_chunk
g722                    pcm_alaw                webm_dash_manifest
g723_1                  pcm_f32be               webp
g726                    pcm_f32le               webvtt
g726le                  pcm_f64be               wsaud
gif                     pcm_f64le               wtv
gsm                     pcm_mulaw               wv
gxf                     pcm_s16be               yuv4mpegpipe
h261                    pcm_s16le

Enabled protocols:
async                   http                    rtmpt
cache                   httpproxy               rtmpte
concat                  https                   rtmpts
concatf                 icecast                 rtp
crypto                  ipfs_gateway            sctp
data                    ipns_gateway            srtp
fd                      md5                     subfile
ffrtmpcrypt             mmsh                    tcp
ffrtmphttp              mmst                    tee
file                    pipe                    tls
ftp                     prompeg                 udp
gopher                  rtmp                    udplite
gophers                 rtmpe                   unix
hls                     rtmps

Enabled filters:
a3dscope                cover_rect              null
aap                     crop                    nullsink
abench                  cropdetect              nullsrc
abitscope               crossfeed               oscilloscope
acompressor             crystalizer             overlay
acontrast               cue                     owdenoise
acopy                   curves                  pad
acrossfade              datascope               pal100bars
acrossover              dblur                   pal75bars
acrusher                dcshift                 palettegen
acue                    dctdnoiz                paletteuse
addroi                  deband                  pan
adeclick                deblock                 perms
adeclip                 decimate                perspective
adecorrelate            deconvolve              phase
adelay                  dedot                   photosensitivity
adenorm                 deesser                 pixdesctest
aderivative             deflate                 pixelize
adrawgraph              deflicker               pixscope
adrc                    dejudder                pp
adynamicequalizer       delogo                  pp7
adynamicsmooth          derain                  premultiply
aecho                   deshake                 prewitt
aemphasis               despill                 pseudocolor
aeval                   detelecine              psnr
aevalsrc                dialoguenhance          pullup
aexciter                dilation                qp
afade                   displace                random
afdelaysrc              dnn_classify            readeia608
afftdn                  dnn_detect              readvitc
afftfilt                dnn_processing          realtime
afir                    doubleweave             remap
afireqsrc               drawbox                 removegrain
afirsrc                 drawgraph               removelogo
aformat                 drawgrid                repeatfields
afreqshift              drmeter                 replaygain
afwtdn                  dynaudnorm              reverse
agate                   earwax                  rgbashift
agraphmonitor           ebur128                 rgbtestsrc
ahistogram              edgedetect              roberts
aiir                    elbg                    rotate
aintegral               entropy                 sab
ainterleave             epx                     scale
alatency                eq                      scale2ref
alimiter                equalizer               scdet
allpass                 erosion                 scharr
allrgb                  estdif                  scroll
allyuv                  exposure                segment
aloop                   extractplanes           select
alphaextract            extrastereo             selectivecolor
alphamerge              fade                    sendcmd
amerge                  feedback                separatefields
ametadata               fftdnoiz                setdar
amix                    fftfilt                 setfield
amovie                  field                   setparams
amplify                 fieldhint               setpts
amultiply               fieldmatch              setrange
anequalizer             fieldorder              setsar
anlmdn                  fillborders             settb
anlmf                   find_rect               shear
anlms                   firequalizer            showcqt
anoisesrc               flanger                 showcwt
anull                   floodfill               showfreqs
anullsink               format                  showinfo
anullsrc                fps                     showpalette
apad                    framepack               showspatial
aperms                  framerate               showspectrum
aphasemeter             framestep               showspectrumpic
aphaser                 freezedetect            showvolume
aphaseshift             freezeframes            showwaves
apsnr                   fspp                    showwavespic
apsyclip                fsync                   shuffleframes
apulsator               gblur                   shufflepixels
arealtime               geq                     shuffleplanes
aresample               gradfun                 sidechaincompress
areverse                gradients               sidechaingate
arls                    graphmonitor            sidedata
arnndn                  grayworld               sierpinski
asdr                    greyedge                signalstats
asegment                guided                  signature
aselect                 haas                    silencedetect
asendcmd                haldclut                silenceremove
asetnsamples            haldclutsrc             sinc
asetpts                 hdcd                    sine
asetrate                headphone               siti
asettb                  hflip                   smartblur
ashowinfo               highpass                smptebars
asidedata               highshelf               smptehdbars
asisdr                  hilbert                 sobel
asoftclip               histeq                  spectrumsynth
aspectralstats          histogram               speechnorm
asplit                  hqdn3d                  split
astats                  hqx                     spp
astreamselect           hstack                  sr
asubboost               hsvhold                 ssim
asubcut                 hsvkey                  ssim360
asupercut               hue                     stereo3d
asuperpass              huesaturation           stereotools
asuperstop              hwdownload              stereowiden
atadenoise              hwmap                   streamselect
atempo                  hwupload                super2xsai
atilt                   hysteresis              superequalizer
atrim                   identity                surround
avectorscope            idet                    swaprect
avgblur                 il                      swapuv
avsynctest              inflate                 tblend
axcorrelate             interlace               telecine
backgroundkey           interleave              testsrc
bandpass                join                    testsrc2
bandreject              kerndeint               thistogram
bass                    kirsch                  threshold
bbox                    ladspa                  thumbnail
bench                   lagfun                  tile
bilateral               latency                 tiltandshift
biquad                  lenscorrection          tiltshelf
bitplanenoise           life                    tinterlace
blackdetect             limitdiff               tlut2
blackframe              limiter                 tmedian
blend                   loop                    tmidequalizer
blockdetect             loudnorm                tmix
blurdetect              lowpass                 tonemap
bm3d                    lowshelf                tpad
boxblur                 lumakey                 transpose
bwdif                   lut                     treble
cas                     lut1d                   tremolo
ccrepack                lut2                    trim
cellauto                lut3d                   unpremultiply
channelmap              lutrgb                  unsharp
channelsplit            lutyuv                  untile
chorus                  mandelbrot              uspp
chromahold              maskedclamp             v360
chromakey               maskedmax               vaguedenoiser
chromanr                maskedmerge             varblur
chromashift             maskedmin               vectorscope
ciescope                maskedthreshold         vflip
codecview               maskfun                 vfrdet
color                   mcdeint                 vibrance
colorbalance            mcompand                vibrato
colorchannelmixer       median                  vif
colorchart              mergeplanes             vignette
colorcontrast           mestimate               virtualbass
colorcorrect            metadata                vmafmotion
colorhold               midequalizer            volume
colorize                minterpolate            volumedetect
colorkey                mix                     vstack
colorlevels             monochrome              w3fdif
colormap                morpho                  waveform
colormatrix             movie                   weave
colorspace              mpdecimate              xbr
colorspectrum           mptestsrc               xcorrelate
colortemperature        msad                    xfade
compand                 multiply                xmedian
compensationdelay       negate                  xstack
concat                  nlmeans                 yadif
convolution             nnedi                   yaepblur
convolve                noformat                yuvtestsrc
copy                    noise                   zoneplate
corr                    normalize               zoompan

Enabled bsfs:
aac_adtstoasc           h264_redundant_pps      pcm_rechunk
av1_frame_merge         hapqa_extract           pgs_frame_merge
av1_frame_split         hevc_metadata           prores_metadata
av1_metadata            hevc_mp4toannexb        remove_extradata
chomp                   imx_dump_header         setts
dca_core                media100_to_mjpegb      showinfo
dts2pts                 mjpeg2jpeg              text2movsub
dump_extradata          mjpega_dump_header      trace_headers
dv_error_marker         mov2textsub             truehd_core
eac3_core               mp3_header_decompress   vp9_metadata
evc_frame_merge         mpeg2_metadata          vp9_raw_reorder
extract_extradata       mpeg4_unpack_bframes    vp9_superframe
filter_units            noise                   vp9_superframe_split
h264_metadata           null                    vvc_metadata
h264_mp4toannexb        opus_metadata           vvc_mp4toannexb

Enabled indevs:
fbdev                   oss
lavfi                   v4l2

Enabled outdevs:
fbdev                   oss                     v4l2

License: nonfree and unredistributable
root@tutorialspots:~/ffmpeg_sources/ffmpeg# make
...
POD     doc/ffmpeg-all.pod
POD     doc/ffprobe-all.pod
POD     doc/ffmpeg-utils.pod
POD     doc/ffmpeg-scaler.pod
POD     doc/ffmpeg-resampler.pod
POD     doc/ffmpeg-codecs.pod
POD     doc/ffmpeg-bitstream-filters.pod
POD     doc/ffmpeg-formats.pod
POD     doc/ffmpeg-protocols.pod
POD     doc/ffmpeg-devices.pod
POD     doc/ffmpeg-filters.pod
POD     doc/libavutil.pod
POD     doc/libswscale.pod
POD     doc/libswresample.pod
POD     doc/libavcodec.pod
POD     doc/libavformat.pod
POD     doc/libavdevice.pod
POD     doc/libavfilter.pod
MAN     doc/ffmpeg.1
MAN     doc/ffprobe.1
MAN     doc/ffmpeg-all.1
MAN     doc/ffprobe-all.1
MAN     doc/ffmpeg-utils.1
MAN     doc/ffmpeg-scaler.1
MAN     doc/ffmpeg-resampler.1
MAN     doc/ffmpeg-codecs.1
MAN     doc/ffmpeg-bitstream-filters.1
MAN     doc/ffmpeg-formats.1
MAN     doc/ffmpeg-protocols.1
MAN     doc/ffmpeg-devices.1
MAN     doc/ffmpeg-filters.1
MAN     doc/libavutil.3
MAN     doc/libswscale.3
MAN     doc/libswresample.3
MAN     doc/libavcodec.3
MAN     doc/libavformat.3
MAN     doc/libavdevice.3
MAN     doc/libavfilter.3
CC      fftools/ffmpeg_dec.o
CC      fftools/ffmpeg_demux.o
CC      fftools/ffmpeg_enc.o
CC      fftools/ffmpeg_filter.o
CC      fftools/ffmpeg_hw.o
CC      fftools/ffmpeg_mux.o
CC      fftools/ffmpeg_mux_init.o
CC      fftools/ffmpeg_opt.o
CC      fftools/ffmpeg_sched.o
CC      fftools/objpool.o
CC      fftools/sync_queue.o
CC      fftools/thread_queue.o
CC      fftools/cmdutils.o
CC      fftools/opt_common.o
CC      fftools/ffmpeg.o
LD      ffmpeg_g
/usr/bin/ld: /root/ffmpeg_build/lib/libcrypto.a(x86_64cpuid.o) and /root/ffmpeg_build/lib/libcrypto.a(cryptlib.o): warning: multiple common of `OPENSSL_ia32cap_P'
STRIP   ffmpeg
CC      fftools/ffprobe.o
LD      ffprobe_g
/usr/bin/ld: /root/ffmpeg_build/lib/libcrypto.a(x86_64cpuid.o) and /root/ffmpeg_build/lib/libcrypto.a(cryptlib.o): warning: multiple common of `OPENSSL_ia32cap_P'
STRIP   ffprobe
root@tutorialspots:~/ffmpeg_sources/ffmpeg# make install
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL install-progs-yes
INSTALL ffmpeg
INSTALL ffprobe
INSTALL presets/libvpx-1080p50_60.ffpreset
INSTALL presets/libvpx-360p.ffpreset
INSTALL presets/libvpx-1080p.ffpreset
INSTALL presets/libvpx-720p50_60.ffpreset
INSTALL presets/libvpx-720p.ffpreset
INSTALL doc/ffprobe.xsd
INSTALL doc/examples/transcode.c
INSTALL doc/examples/vaapi_transcode.c
INSTALL doc/examples/show_metadata.c
INSTALL doc/examples/hw_decode.c
INSTALL doc/examples/mux.c
INSTALL doc/examples/avio_read_callback.c
INSTALL doc/examples/encode_audio.c
INSTALL doc/examples/avio_http_serve_files.c
INSTALL doc/examples/filter_audio.c
INSTALL doc/examples/decode_filter_video.c
INSTALL doc/examples/demux_decode.c
INSTALL doc/examples/resample_audio.c
INSTALL doc/examples/decode_video.c
INSTALL doc/examples/qsv_transcode.c
INSTALL doc/examples/remux.c
INSTALL doc/examples/extract_mvs.c
INSTALL doc/examples/decode_filter_audio.c
INSTALL doc/examples/vaapi_encode.c
INSTALL doc/examples/qsv_decode.c
INSTALL doc/examples/avio_list_dir.c
INSTALL doc/examples/decode_audio.c
INSTALL doc/examples/transcode_aac.c
INSTALL doc/examples/encode_video.c
INSTALL doc/examples/scale_video.c
INSTALL doc/examples/README
INSTALL doc/examples/Makefile
INSTALL doc/examples/transcode.c
INSTALL doc/examples/vaapi_transcode.c
INSTALL doc/examples/show_metadata.c
INSTALL doc/examples/hw_decode.c
INSTALL doc/examples/mux.c
INSTALL doc/examples/avio_read_callback.c
INSTALL doc/examples/encode_audio.c
INSTALL doc/examples/avio_http_serve_files.c
INSTALL doc/examples/filter_audio.c
INSTALL doc/examples/decode_filter_video.c
INSTALL doc/examples/demux_decode.c
INSTALL doc/examples/resample_audio.c
INSTALL doc/examples/decode_video.c
INSTALL doc/examples/qsv_transcode.c
INSTALL doc/examples/remux.c
INSTALL doc/examples/extract_mvs.c
INSTALL doc/examples/decode_filter_audio.c
INSTALL doc/examples/vaapi_encode.c
INSTALL doc/examples/qsv_decode.c
INSTALL doc/examples/avio_list_dir.c
INSTALL doc/examples/decode_audio.c
INSTALL doc/examples/transcode_aac.c
INSTALL doc/examples/encode_video.c
INSTALL doc/examples/scale_video.c
INSTALL doc/examples/README
INSTALL doc/examples/Makefile
INSTALL libavdevice/libavdevice.a
INSTALL libavfilter/libavfilter.a
INSTALL libavformat/libavformat.a
INSTALL libavcodec/libavcodec.a
INSTALL libpostproc/libpostproc.a
INSTALL libswresample/libswresample.a
INSTALL libswscale/libswscale.a
INSTALL libavutil/libavutil.a
INSTALL libavdevice/avdevice.h
INSTALL libavdevice/version.h
INSTALL libavdevice/version_major.h
INSTALL libavdevice/libavdevice.pc
INSTALL libavfilter/avfilter.h
INSTALL libavfilter/buffersink.h
INSTALL libavfilter/buffersrc.h
INSTALL libavfilter/version.h
INSTALL libavfilter/version_major.h
INSTALL libavfilter/libavfilter.pc
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/version.h
INSTALL libavformat/version_major.h
INSTALL libavformat/libavformat.pc
INSTALL libavcodec/ac3_parser.h
INSTALL libavcodec/adts_parser.h
INSTALL libavcodec/avcodec.h
INSTALL libavcodec/avdct.h
INSTALL libavcodec/avfft.h
INSTALL libavcodec/bsf.h
INSTALL libavcodec/codec.h
INSTALL libavcodec/codec_desc.h
INSTALL libavcodec/codec_id.h
INSTALL libavcodec/codec_par.h
INSTALL libavcodec/d3d11va.h
INSTALL libavcodec/defs.h
INSTALL libavcodec/dirac.h
INSTALL libavcodec/dv_profile.h
INSTALL libavcodec/dxva2.h
INSTALL libavcodec/jni.h
INSTALL libavcodec/mediacodec.h
INSTALL libavcodec/packet.h
INSTALL libavcodec/qsv.h
INSTALL libavcodec/vdpau.h
INSTALL libavcodec/version.h
INSTALL libavcodec/version_major.h
INSTALL libavcodec/videotoolbox.h
INSTALL libavcodec/vorbis_parser.h
INSTALL libavcodec/xvmc.h
INSTALL libavcodec/libavcodec.pc
INSTALL libpostproc/postprocess.h
INSTALL libpostproc/version.h
INSTALL libpostproc/version_major.h
INSTALL libpostproc/libpostproc.pc
INSTALL libswresample/swresample.h
INSTALL libswresample/version.h
INSTALL libswresample/version_major.h
INSTALL libswresample/libswresample.pc
INSTALL libswscale/swscale.h
INSTALL libswscale/version.h
INSTALL libswscale/version_major.h
INSTALL libswscale/libswscale.pc
INSTALL libavutil/adler32.h
INSTALL libavutil/aes.h
INSTALL libavutil/aes_ctr.h
INSTALL libavutil/ambient_viewing_environment.h
INSTALL libavutil/attributes.h
INSTALL libavutil/audio_fifo.h
INSTALL libavutil/avassert.h
INSTALL libavutil/avstring.h
INSTALL libavutil/avutil.h
INSTALL libavutil/base64.h
INSTALL libavutil/blowfish.h
INSTALL libavutil/bprint.h
INSTALL libavutil/bswap.h
INSTALL libavutil/buffer.h
INSTALL libavutil/cast5.h
INSTALL libavutil/camellia.h
INSTALL libavutil/channel_layout.h
INSTALL libavutil/common.h
INSTALL libavutil/cpu.h
INSTALL libavutil/crc.h
INSTALL libavutil/csp.h
INSTALL libavutil/des.h
INSTALL libavutil/detection_bbox.h
INSTALL libavutil/dict.h
INSTALL libavutil/display.h
INSTALL libavutil/dovi_meta.h
INSTALL libavutil/downmix_info.h
INSTALL libavutil/encryption_info.h
INSTALL libavutil/error.h
INSTALL libavutil/eval.h
INSTALL libavutil/executor.h
INSTALL libavutil/fifo.h
INSTALL libavutil/file.h
INSTALL libavutil/frame.h
INSTALL libavutil/hash.h
INSTALL libavutil/hdr_dynamic_metadata.h
INSTALL libavutil/hdr_dynamic_vivid_metadata.h
INSTALL libavutil/hmac.h
INSTALL libavutil/hwcontext.h
INSTALL libavutil/hwcontext_cuda.h
INSTALL libavutil/hwcontext_d3d11va.h
INSTALL libavutil/hwcontext_d3d12va.h
INSTALL libavutil/hwcontext_drm.h
INSTALL libavutil/hwcontext_dxva2.h
INSTALL libavutil/hwcontext_qsv.h
INSTALL libavutil/hwcontext_mediacodec.h
INSTALL libavutil/hwcontext_opencl.h
INSTALL libavutil/hwcontext_vaapi.h
INSTALL libavutil/hwcontext_videotoolbox.h
INSTALL libavutil/hwcontext_vdpau.h
INSTALL libavutil/hwcontext_vulkan.h
INSTALL libavutil/iamf.h
INSTALL libavutil/imgutils.h
INSTALL libavutil/intfloat.h
INSTALL libavutil/intreadwrite.h
INSTALL libavutil/lfg.h
INSTALL libavutil/log.h
INSTALL libavutil/lzo.h
INSTALL libavutil/macros.h
INSTALL libavutil/mathematics.h
INSTALL libavutil/mastering_display_metadata.h
INSTALL libavutil/md5.h
INSTALL libavutil/mem.h
INSTALL libavutil/motion_vector.h
INSTALL libavutil/murmur3.h
INSTALL libavutil/opt.h
INSTALL libavutil/parseutils.h
INSTALL libavutil/pixdesc.h
INSTALL libavutil/pixelutils.h
INSTALL libavutil/pixfmt.h
INSTALL libavutil/random_seed.h
INSTALL libavutil/rc4.h
INSTALL libavutil/rational.h
INSTALL libavutil/replaygain.h
INSTALL libavutil/ripemd.h
INSTALL libavutil/samplefmt.h
INSTALL libavutil/sha.h
INSTALL libavutil/sha512.h
INSTALL libavutil/spherical.h
INSTALL libavutil/stereo3d.h
INSTALL libavutil/threadmessage.h
INSTALL libavutil/time.h
INSTALL libavutil/timecode.h
INSTALL libavutil/timestamp.h
INSTALL libavutil/tree.h
INSTALL libavutil/twofish.h
INSTALL libavutil/uuid.h
INSTALL libavutil/version.h
INSTALL libavutil/video_enc_params.h
INSTALL libavutil/xtea.h
INSTALL libavutil/tea.h
INSTALL libavutil/tx.h
INSTALL libavutil/film_grain_params.h
INSTALL libavutil/video_hint.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/ffversion.h
INSTALL libavutil/libavutil.pc

Step 17: make symbolic link:

ln -s ~/bin/ffmpeg /bin/ffmpeg
ln -s ~/bin/ffprobe /bin/ffprobe

Done! check

root@tutorialspots:~/ffmpeg_sources/ffmpeg# ffmpeg -h
ffmpeg version N-113786-g7d82daf31d Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread --extra-libs=-lm --bindir=/root/bin --enable-gpl --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-openssl --enable-libspeex --enable-libtheora --enable-ladspa --enable-muxer=segment --enable-muxer=stream_segment
  libavutil      58. 39.100 / 58. 39.100
  libavcodec     60. 40.100 / 60. 40.100
  libavformat    60. 21.101 / 60. 21.101
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 17.100 /  9. 17.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Universal media converter
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Getting help:
    -h      -- print basic options
    -h long -- print more options
    -h full -- print all options (including all format and codec specific options, very long)
    -h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter/bsf/protocol
    See man ffmpeg for detailed description of the options.

Per-stream options can be followed by :<stream_spec> to apply that option to specific streams only. <stream_spec> can be a stream index, or v/a/s for video/audio/subtitle (see manual for full syntax).

Print help / information / capabilities:
-L                  show license
-h <topic>          show help
-version            show version
-muxers             show available muxers
-demuxers           show available demuxers
-devices            show available devices
-decoders           show available decoders
-encoders           show available encoders
-filters            show available filters
-pix_fmts           show available pixel formats
-layouts            show standard channel layouts
-sample_fmts        show available audio sample formats

Global options (affect whole program instead of just one file):
-v <loglevel>       set logging level
-y                  overwrite output files
-n                  never overwrite output files
-stats              print progress report during encoding

Per-file options (input and output):
-f <fmt>            force container format (auto-detected otherwise)
-t <duration>       stop transcoding after specified duration
-to <time_stop>     stop transcoding after specified time is reached
-ss <time_off>      start transcoding at specified time


Per-file options (output-only):
-metadata[:<spec>] <key=value>  add metadata

Per-stream options:
-c[:<stream_spec>] <codec>  select encoder/decoder ('copy' to copy stream without reencoding)
-filter[:<stream_spec>] <filter_graph>  apply specified filters to audio/video

Video options:
-r[:<stream_spec>] <rate>  override input framerate/convert to given output framerate (Hz value, fraction or abbreviation)
-aspect[:<stream_spec>] <aspect>  set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-vn                 disable video
-vcodec <codec>     alias for -c:v (select encoder/decoder for video streams)
-vf <filter_graph>  alias for -filter:v (apply filters to video streams)
-b <bitrate>        video bitrate (please use -b:v)

Audio options:
-aq <quality>       set audio quality (codec-specific)
-ar[:<stream_spec>] <rate>  set audio sampling rate (in Hz)
-ac[:<stream_spec>] <channels>  set number of audio channels
-an                 disable audio
-acodec <codec>     alias for -c:a (select encoder/decoder for audio streams)
-ab <bitrate>       alias for -b:a (select bitrate for audio streams)
-af <filter_graph>  alias for -filter:a (apply filters to audio streams)

Subtitle options:
-sn                 disable subtitle
-scodec <codec>     alias for -c:s (select encoder/decoder for subtitle streams)
]]>
https://tutorialspots.com/how-to-compile-ffmpeg-on-ubuntu-20-04-part-2-7279.html/feed 0
How to compile FFmpeg on Ubuntu 20.04 https://tutorialspots.com/how-to-compile-ffmpeg-on-ubuntu-20-04-7273.html https://tutorialspots.com/how-to-compile-ffmpeg-on-ubuntu-20-04-7273.html#comments Sat, 24 Feb 2024 15:47:31 +0000 http://tutorialspots.com/?p=7273 Step 1:

apt install autoconf automake bzip2 cmake libfreetype-dev libgcc1 git libtool make mercurial python3-pkgconfig zlib1g-dev

result:

root@tutorialspots:~# apt install autoconf automake bzip2 cmake libfreetype-dev libgcc1 git libtool make mercurial python3-pkgconfig zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11.1).
automake is already the newest version (1:1.16.1-4ubuntu6).
bzip2 is already the newest version (1.0.8-2).
libtool is already the newest version (2.4.6-14).
make is already the newest version (4.2.1-1.2).
cmake is already the newest version (3.16.3-1ubuntu1.20.04.1).
git is already the newest version (1:2.25.1-1ubuntu3.11).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.5).
The following packages were automatically installed and are no longer required:
  i965-va-driver intel-media-va-driver libaacs0 libaom0 libass9 libasyncns0
  libavc1394-0 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbdplus0 libbluray2 libbs2b0 libcaca0
  libcairo-gobject2 libcdio-cdda2 libcdio-paranoia2 libcdio18 libchromaprint1
  libcodec2-0.9 libdc1394-22 libflac8 libflite1 libgdk-pixbuf2.0-0
  libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgme0 libgsm1 libiec61883-0
  libigdgmm11 libjack-jackd2-0 liblilv-0-0 libmp3lame0 libmpg123-0 libmysofa1
  libnorm1 libopenal-data libopenal1 libopenmpt0 libopus0 libpgm-5.2-0
  libpostproc55 libpulse0 libraw1394-11 librsvg2-2 librsvg2-common
  librubberband2 libsamplerate0 libsdl2-2.0-0 libserd-0-0 libshine3
  libsnappy1v5 libsndfile1 libsndio7.0 libsord-0-0 libsoxr0 libspeex1
  libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtheora0
  libtwolame0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
  libvorbisenc2 libvpx6 libwavpack1 libwayland-cursor0 libwayland-egl1
  libx264-155 libx265-179 libxcb-shape0 libxcursor1 libxinerama1 libxkbcommon0
  libxrandr2 libxss1 libxv1 libxvidcore4 libzmq5 libzvbi-common libzvbi0
  mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 va-driver-all
  vdpau-driver-all x11-common
Unpacking libgcc1 (1:10.5.0-1ubuntu1~20.04) ...
Selecting previously unselected package libfreetype-dev:amd64.
Preparing to unpack .../libfreetype-dev_2.10.1-2ubuntu0.3_amd64.deb ...
Unpacking libfreetype-dev:amd64 (2.10.1-2ubuntu0.3) ...
Selecting previously unselected package mercurial-common.
Preparing to unpack .../mercurial-common_5.3.1-1ubuntu1_all.deb ...
Unpacking mercurial-common (5.3.1-1ubuntu1) ...
Selecting previously unselected package mercurial.
Preparing to unpack .../mercurial_5.3.1-1ubuntu1_amd64.deb ...
Unpacking mercurial (5.3.1-1ubuntu1) ...
Selecting previously unselected package python3-pkgconfig.
Preparing to unpack .../python3-pkgconfig_1.5.1-3_all.deb ...
Unpacking python3-pkgconfig (1.5.1-3) ...
Setting up mercurial-common (5.3.1-1ubuntu1) ...
Setting up libgcc1 (1:10.5.0-1ubuntu1~20.04) ...
Setting up libfreetype-dev:amd64 (2.10.1-2ubuntu0.3) ...
Setting up python3-pkgconfig (1.5.1-3) ...
Setting up mercurial (5.3.1-1ubuntu1) ...

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.14) ...

Step 2:

mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources

step 3: apt install yasm

result:

root@tutorialspots:~/ffmpeg_sources# apt install yasm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  i965-va-driver intel-media-va-driver libaacs0 libaom0 libass9 libasyncns0
  libavc1394-0 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbdplus0 libbluray2 libbs2b0 libcaca0
  libcairo-gobject2 libcdio-cdda2 libcdio-paranoia2 libcdio18 libchromaprint1
  libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtheora0
  libtwolame0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
  libvorbisenc2 libvpx6 libwavpack1 libwayland-cursor0 libwayland-egl1
  libx264-155 libx265-179 libxcb-shape0 libxcursor1 libxinerama1 libxkbcommon0
  libxrandr2 libxss1 libxv1 libxvidcore4 libzmq5 libzvbi-common libzvbi0
  mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 va-driver-all
  vdpau-driver-all x11-common
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  yasm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 408 kB of archives.
After this operation, 2180 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 yasm amd64 1.3.0-2ubuntu1 [408 kB]
Fetched 408 kB in 3s (156 kB/s)
Selecting previously unselected package yasm.
(Reading database ... 131749 files and directories currently installed.)
Preparing to unpack .../yasm_1.3.0-2ubuntu1_amd64.deb ...
Unpacking yasm (1.3.0-2ubuntu1) ...
Setting up yasm (1.3.0-2ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...

Step 4: install nasm

apt install nasm

result:

root@tutorialspots:~/ffmpeg_sources# apt install nasm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  i965-va-driver intel-media-va-driver libaacs0 libaom0 libass9 libasyncns0
  libavc1394-0 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbdplus0 libbluray2 libbs2b0 libcaca0
  libcairo-gobject2 libcdio-cdda2 libcdio-paranoia2 libcdio18 libchromaprint1
  libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtheora0
  libtwolame0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
  libvorbisenc2 libvpx6 libwavpack1 libwayland-cursor0 libwayland-egl1
  libx264-155 libx265-179 libxcb-shape0 libxcursor1 libxinerama1 libxkbcommon0
  libxrandr2 libxss1 libxv1 libxvidcore4 libzmq5 libzvbi-common libzvbi0
  mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 va-driver-all
  vdpau-driver-all x11-common
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  nasm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 362 kB of archives.
After this operation, 3374 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 nasm amd64 2.14.02-1 [362 kB]
Fetched 362 kB in 2s (161 kB/s)
Selecting previously unselected package nasm.
(Reading database ... 131793 files and directories currently installed.)
Preparing to unpack .../nasm_2.14.02-1_amd64.deb ...
Unpacking nasm (2.14.02-1) ...
Setting up nasm (2.14.02-1) ...
Processing triggers for man-db (2.9.1-1) ...

Step 5: install libx264

5.1: Choose your version of libx264 here: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/

Example web choose this file: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20191217-2245-stable.tar.bz2

5.2: download this file: wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20191217-2245-stable.tar.bz2

root@tutorialspots:~/ffmpeg_sources# wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20191217-2245-stable.tar.bz2
--2024-02-24 21:20:36--  ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20191217-2245-stable.tar.bz2
           => ‘x264-snapshot-20191217-2245-stable.tar.bz2’
Resolving ftp.videolan.org (ftp.videolan.org)... 2a01:e0d:1:3:58bf:fa02:c0de:20, 213.36.253.2
Connecting to ftp.videolan.org (ftp.videolan.org)|2a01:e0d:1:3:58bf:fa02:c0de:20|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/videolan/x264/snapshots ... done.
==> SIZE x264-snapshot-20191217-2245-stable.tar.bz2 ... 770169
==> EPSV ... done.    ==> RETR x264-snapshot-20191217-2245-stable.tar.bz2 ... done.
Length: 770169 (752K) (unauthoritative)

x264-snapshot-20191 100%[===================>] 752.12K   544KB/s    in 1.4s

2024-02-24 21:20:41 (544 KB/s) - ‘x264-snapshot-20191217-2245-stable.tar.bz2’ saved [770169]

5.3: extract file: tar vxf x264-snapshot-20191217-2245-stable.tar.bz2

5.4: create folder x264 and copy all files from x264-snapshot-20191217-2245-stable to x264

mkdir x264
mv -f x264-snapshot-*/* x264/

5.5: install libx264:

cd x264
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --enable-shared
make
make install
cd ..

result:

..
root@tutorialspots:~/ffmpeg_sources/x264# make install
install -d /root/bin
install x264 /root/bin
install -d /root/ffmpeg_build/include /root/ffmpeg_build/lib/pkgconfig
install -m 644 ./x264.h x264_config.h /root/ffmpeg_build/include
install -m 644 x264.pc /root/ffmpeg_build/lib/pkgconfig
install -d /root/ffmpeg_build/lib
ln -f -s libx264.so.157 /root/ffmpeg_build/lib/libx264.so
install -m 755 libx264.so.157 /root/ffmpeg_build/lib
install -d /root/ffmpeg_build/lib
install -m 644 libx264.a /root/ffmpeg_build/lib
gcc-ranlib /root/ffmpeg_build/lib/libx264.a
root@tutorialspots:~/ffmpeg_sources/x264# cd ..

5.6: make symbolic link

ln -s /root/ffmpeg_build/lib/libx264.so /usr/lib/libx264.so.157

Step 6: install libx265

git clone https://github.com/videolan/x265
cd ~/ffmpeg_sources/x265/build/linux
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
make
make install

result:

root@tutorialspots:~/ffmpeg_sources# git clone https://github.com/videolan/x265
Cloning into 'x265'...
remote: Enumerating objects: 88647, done.
remote: Counting objects: 100% (88647/88647), done.
remote: Compressing objects: 100% (72641/72641), done.
remote: Total 88647 (delta 20542), reused 83464 (delta 15967), pack-reused 0
Receiving objects: 100% (88647/88647), 200.56 MiB | 15.30 MiB/s, done.
Resolving deltas: 100% (20542/20542), done.
root@tutorialspots:~/ffmpeg_sources# cd ~/ffmpeg_sources/x265/build/linux
root@tutorialspots:~/ffmpeg_sources/x265/build/linux# cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
-- cmake version 3.16.3
CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
  The OLD behavior for policy CMP0025 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
  The OLD behavior for policy CMP0054 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detected x86_64 target processor
-- Found NUMA: /usr
-- Looking for numa_node_of_cpu
-- Looking for numa_node_of_cpu - found
-- libnuma found, building with support for NUMA nodes
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CheckIncludeFiles.cmake:120 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    numa

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  CMakeLists.txt:175 (check_include_files)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Performing Test CC_HAS_NO_STRICT_OVERFLOW
-- Performing Test CC_HAS_NO_STRICT_OVERFLOW - Success
-- Performing Test CC_HAS_NO_NARROWING
-- Performing Test CC_HAS_NO_NARROWING - Success
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS - Success
-- Performing Test CC_HAS_FAST_MATH
-- Performing Test CC_HAS_FAST_MATH - Success
-- Performing Test CC_HAS_STACK_REALIGN
-- Performing Test CC_HAS_STACK_REALIGN - Success
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG - Success
-- Found nasm: /usr/bin/nasm (found version "2.14.02")
-- Found Nasm 2.14.02 to build assembly primitives
-- GIT_EXECUTABLE /usr/bin/git
-- x265 RELEASE VERSION 3.4+28-419182243
-- The ASM_NASM compiler identification is NASM
-- Found assembler: /usr/bin/nasm
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for include file getopt.h
-- Looking for include file getopt.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ffmpeg_sources/x265/build/linux
root@tutorialspots:~/ffmpeg_sources/x265/build/linux# make
Scanning dependencies of target common
[  1%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixel-a.asm.o
[  2%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/const-a.asm.o
[  3%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/cpu-a.asm.o
[  4%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/ssd-a.asm.o
[  5%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/mc-a.asm.o
[  7%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/mc-a2.asm.o
[  8%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixel-util8.asm.o
[  9%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/blockcopy8.asm.o
[ 10%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixeladd8.asm.o
[ 11%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/dct8.asm.o
[ 12%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/seaintegral.asm.o
[ 14%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/sad-a.asm.o
[ 15%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/intrapred8.asm.o
[ 16%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/intrapred8_allangs.asm.o
[ 17%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/v4-ipfilter8.asm.o
[ 18%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/h-ipfilter8.asm.o
[ 20%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/ipfilter8.asm.o
[ 21%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/loopfilter.asm.o
[ 22%] Building CXX object common/CMakeFiles/common.dir/x86/asm-primitives.cpp.o
[ 23%] Building CXX object common/CMakeFiles/common.dir/vec/vec-primitives.cpp.o
[ 24%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse3.cpp.o
[ 25%] Building CXX object common/CMakeFiles/common.dir/vec/dct-ssse3.cpp.o
[ 27%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse41.cpp.o
[ 28%] Building CXX object common/CMakeFiles/common.dir/primitives.cpp.o
[ 29%] Building CXX object common/CMakeFiles/common.dir/pixel.cpp.o
[ 30%] Building CXX object common/CMakeFiles/common.dir/dct.cpp.o
[ 31%] Building CXX object common/CMakeFiles/common.dir/lowpassdct.cpp.o
[ 32%] Building CXX object common/CMakeFiles/common.dir/ipfilter.cpp.o
[ 34%] Building CXX object common/CMakeFiles/common.dir/intrapred.cpp.o
[ 35%] Building CXX object common/CMakeFiles/common.dir/loopfilter.cpp.o
[ 36%] Building CXX object common/CMakeFiles/common.dir/constants.cpp.o
[ 37%] Building CXX object common/CMakeFiles/common.dir/cpu.cpp.o
[ 38%] Building CXX object common/CMakeFiles/common.dir/version.cpp.o
[ 40%] Building CXX object common/CMakeFiles/common.dir/threading.cpp.o
[ 41%] Building CXX object common/CMakeFiles/common.dir/threadpool.cpp.o
[ 42%] Building CXX object common/CMakeFiles/common.dir/wavefront.cpp.o
[ 43%] Building CXX object common/CMakeFiles/common.dir/md5.cpp.o
[ 44%] Building CXX object common/CMakeFiles/common.dir/bitstream.cpp.o
[ 45%] Building CXX object common/CMakeFiles/common.dir/yuv.cpp.o
[ 47%] Building CXX object common/CMakeFiles/common.dir/shortyuv.cpp.o
[ 48%] Building CXX object common/CMakeFiles/common.dir/picyuv.cpp.o
[ 49%] Building CXX object common/CMakeFiles/common.dir/common.cpp.o
[ 50%] Building CXX object common/CMakeFiles/common.dir/param.cpp.o
[ 51%] Building CXX object common/CMakeFiles/common.dir/frame.cpp.o
[ 52%] Building CXX object common/CMakeFiles/common.dir/framedata.cpp.o
[ 54%] Building CXX object common/CMakeFiles/common.dir/cudata.cpp.o
[ 55%] Building CXX object common/CMakeFiles/common.dir/slice.cpp.o
[ 56%] Building CXX object common/CMakeFiles/common.dir/lowres.cpp.o
[ 57%] Building CXX object common/CMakeFiles/common.dir/piclist.cpp.o
[ 58%] Building CXX object common/CMakeFiles/common.dir/predict.cpp.o
[ 60%] Building CXX object common/CMakeFiles/common.dir/scalinglist.cpp.o
[ 61%] Building CXX object common/CMakeFiles/common.dir/quant.cpp.o
[ 62%] Building CXX object common/CMakeFiles/common.dir/deblock.cpp.o
[ 63%] Building CXX object common/CMakeFiles/common.dir/scaler.cpp.o
[ 63%] Built target common
Scanning dependencies of target encoder
[ 64%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o
[ 65%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o
[ 67%] Building CXX object encoder/CMakeFiles/encoder.dir/bitcost.cpp.o
[ 68%] Building CXX object encoder/CMakeFiles/encoder.dir/motion.cpp.o
[ 69%] Building CXX object encoder/CMakeFiles/encoder.dir/slicetype.cpp.o
[ 70%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o
[ 71%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o
[ 72%] Building CXX object encoder/CMakeFiles/encoder.dir/level.cpp.o
[ 74%] Building CXX object encoder/CMakeFiles/encoder.dir/nal.cpp.o
[ 75%] Building CXX object encoder/CMakeFiles/encoder.dir/sei.cpp.o
[ 76%] Building CXX object encoder/CMakeFiles/encoder.dir/sao.cpp.o
[ 77%] Building CXX object encoder/CMakeFiles/encoder.dir/entropy.cpp.o
[ 78%] Building CXX object encoder/CMakeFiles/encoder.dir/dpb.cpp.o
[ 80%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o
/root/ffmpeg_sources/x265/source/encoder/ratecontrol.cpp: In member function ‘int x265::RateControl::writeRateControlFrameStats(x265::Frame*, x265::RateControlEntry*)’:
/root/ffmpeg_sources/x265/source/encoder/ratecontrol.cpp:3010:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
 3010 |             sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]);
      |                     ^~~~~~~~           ~~~~~~~~
/root/ffmpeg_sources/x265/source/encoder/ratecontrol.cpp:3011:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
 3011 |             sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]);
      |                     ^~~~~           ~~~~~
/root/ffmpeg_sources/x265/source/encoder/ratecontrol.cpp:3010:36: warning: ‘~’ directive writing 1 byte into a region of size between 0 and 127 [-Wformat-overflow=]
 3010 |             sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]);
      |                                    ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from /root/ffmpeg_sources/x265/source/common/common.h:33,
                 from /root/ffmpeg_sources/x265/source/encoder/ratecontrol.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 3 and 140 bytes into a destination of size 128
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/ffmpeg_sources/x265/source/encoder/ratecontrol.cpp:3011:33: warning: ‘~’ directive writing 1 byte into a region of size between 0 and 39 [-Wformat-overflow=]
 3011 |             sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]);
      |                                 ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from /root/ffmpeg_sources/x265/source/common/common.h:33,
                 from /root/ffmpeg_sources/x265/source/encoder/ratecontrol.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 3 and 42 bytes into a destination of size 40
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 81%] Building CXX object encoder/CMakeFiles/encoder.dir/reference.cpp.o
[ 82%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o
[ 83%] Building CXX object encoder/CMakeFiles/encoder.dir/api.cpp.o
[ 84%] Building CXX object encoder/CMakeFiles/encoder.dir/weightPrediction.cpp.o
[ 84%] Built target encoder
Scanning dependencies of target x265-static
[ 85%] Linking CXX static library libx265.a
[ 85%] Built target x265-static
Scanning dependencies of target cli
[ 87%] Building CXX object CMakeFiles/cli.dir/input/input.cpp.o
[ 88%] Building CXX object CMakeFiles/cli.dir/input/y4m.cpp.o
[ 89%] Building CXX object CMakeFiles/cli.dir/input/yuv.cpp.o
[ 90%] Building CXX object CMakeFiles/cli.dir/output/output.cpp.o
[ 91%] Building CXX object CMakeFiles/cli.dir/output/raw.cpp.o
[ 92%] Building CXX object CMakeFiles/cli.dir/output/reconplay.cpp.o
[ 94%] Building CXX object CMakeFiles/cli.dir/output/y4m.cpp.o
[ 95%] Building CXX object CMakeFiles/cli.dir/output/yuv.cpp.o
[ 96%] Building CXX object CMakeFiles/cli.dir/x265.cpp.o
/root/ffmpeg_sources/x265/source/x265.cpp: In function ‘bool parseAbrConfig(FILE*, x265::CLIOptions*, uint8_t)’:
/root/ffmpeg_sources/x265/source/x265.cpp:157:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
  157 |         fgets(line, sizeof(line), abrConfig);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 97%] Building CXX object CMakeFiles/cli.dir/x265cli.cpp.o
[ 98%] Building CXX object CMakeFiles/cli.dir/abrEncApp.cpp.o
[100%] Linking CXX executable x265
[100%] Built target cli
root@tutorialspots:~/ffmpeg_sources/x265/build/linux# make install
[ 63%] Built target common
[ 84%] Built target encoder
[ 85%] Built target x265-static
[100%] Built target cli
Install the project...
-- Install configuration: "Release"
-- Installing: /root/ffmpeg_build/lib/libx265.a
-- Installing: /root/ffmpeg_build/include/x265.h
-- Installing: /root/ffmpeg_build/include/x265_config.h
-- Installing: /root/ffmpeg_build/lib/pkgconfig/x265.pc
-- Installing: /root/ffmpeg_build/bin/x265
root@tutorialspots:~/ffmpeg_sources/x265/build/linux#

Or you can use package libx265-dev

apt install libx265-dev

Step 7: install libfdk_aac

cd ~/ffmpeg_sources
git clone --depth 1 https://github.com/mstorsjo/fdk-aac
cd fdk-aac
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install

result:

root@tutorialspots:~/ffmpeg_sources/x265/build/linux# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# git clone --depth 1 https://github.com/mstorsjo/fdk-aac
Cloning into 'fdk-aac'...
remote: Enumerating objects: 494, done.
remote: Counting objects: 100% (494/494), done.
remote: Compressing objects: 100% (382/382), done.
remote: Total 494 (delta 219), reused 222 (delta 96), pack-reused 0
Receiving objects: 100% (494/494), 2.71 MiB | 20.41 MiB/s, done.
Resolving deltas: 100% (219/219), done.
root@tutorialspots:~/ffmpeg_sources# cd fdk-aac
root@tutorialspots:~/ffmpeg_sources/fdk-aac# autoreconf -fiv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:20: installing './compile'
configure.ac:22: installing './config.guess'
configure.ac:22: installing './config.sub'
configure.ac:7: installing './install-sh'
configure.ac:7: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
root@tutorialspots:~/ffmpeg_sources/fdk-aac# ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for library containing sin... -lm
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fdk-aac.pc
config.status: executing depfiles commands
config.status: executing libtool commands
root@tutorialspots:~/ffmpeg_sources/fdk-aac# make
  CXX      libAACdec/src/FDK_delay.lo
  CXX      libAACdec/src/aac_ram.lo
  CXX      libAACdec/src/aac_rom.lo
  CXX      libAACdec/src/aacdec_drc.lo
  CXX      libAACdec/src/aacdec_hcr.lo
  CXX      libAACdec/src/aacdec_hcr_bit.lo
  CXX      libAACdec/src/aacdec_hcrs.lo
  CXX      libAACdec/src/aacdec_pns.lo
  CXX      libAACdec/src/aacdec_tns.lo
  CXX      libAACdec/src/aacdecoder.lo
  CXX      libAACdec/src/aacdecoder_lib.lo
  CXX      libAACdec/src/block.lo
  CXX      libAACdec/src/channel.lo
  CXX      libAACdec/src/channelinfo.lo
  CXX      libAACdec/src/conceal.lo
  CXX      libAACdec/src/ldfiltbank.lo
  CXX      libAACdec/src/pulsedata.lo
  CXX      libAACdec/src/rvlc.lo
  CXX      libAACdec/src/rvlcbit.lo
  CXX      libAACdec/src/rvlcconceal.lo
  CXX      libAACdec/src/stereo.lo
  CXX      libAACdec/src/usacdec_ace_d4t64.lo
  CXX      libAACdec/src/usacdec_ace_ltp.lo
  CXX      libAACdec/src/usacdec_acelp.lo
  CXX      libAACdec/src/usacdec_fac.lo
  CXX      libAACdec/src/usacdec_lpc.lo
  CXX      libAACdec/src/usacdec_lpd.lo
  CXX      libAACdec/src/usacdec_rom.lo
  CXX      libAACenc/src/aacEnc_ram.lo
  CXX      libAACenc/src/aacEnc_rom.lo
  CXX      libAACenc/src/aacenc.lo
  CXX      libAACenc/src/aacenc_lib.lo
  CXX      libAACenc/src/aacenc_pns.lo
  CXX      libAACenc/src/aacenc_tns.lo
  CXX      libAACenc/src/adj_thr.lo
  CXX      libAACenc/src/band_nrg.lo
  CXX      libAACenc/src/bandwidth.lo
  CXX      libAACenc/src/bit_cnt.lo
  CXX      libAACenc/src/bitenc.lo
  CXX      libAACenc/src/block_switch.lo
  CXX      libAACenc/src/channel_map.lo
  CXX      libAACenc/src/chaosmeasure.lo
  CXX      libAACenc/src/dyn_bits.lo
  CXX      libAACenc/src/grp_data.lo
  CXX      libAACenc/src/intensity.lo
  CXX      libAACenc/src/line_pe.lo
  CXX      libAACenc/src/metadata_compressor.lo
  CXX      libAACenc/src/metadata_main.lo
  CXX      libAACenc/src/mps_main.lo
  CXX      libAACenc/src/ms_stereo.lo
  CXX      libAACenc/src/noisedet.lo
  CXX      libAACenc/src/pnsparam.lo
  CXX      libAACenc/src/pre_echo_control.lo
  CXX      libAACenc/src/psy_configuration.lo
  CXX      libAACenc/src/psy_main.lo
  CXX      libAACenc/src/qc_main.lo
  CXX      libAACenc/src/quantize.lo
  CXX      libAACenc/src/sf_estim.lo
  CXX      libAACenc/src/spreading.lo
  CXX      libAACenc/src/tonality.lo
  CXX      libAACenc/src/transform.lo
  CXX      libArithCoding/src/ac_arith_coder.lo
  CXX      libDRCdec/src/FDK_drcDecLib.lo
  CXX      libDRCdec/src/drcDec_gainDecoder.lo
  CXX      libDRCdec/src/drcDec_reader.lo
  CXX      libDRCdec/src/drcDec_rom.lo
  CXX      libDRCdec/src/drcDec_selectionProcess.lo
  CXX      libDRCdec/src/drcDec_tools.lo
  CXX      libDRCdec/src/drcGainDec_init.lo
  CXX      libDRCdec/src/drcGainDec_preprocess.lo
  CXX      libDRCdec/src/drcGainDec_process.lo
  CXX      libMpegTPDec/src/tpdec_adif.lo
  CXX      libMpegTPDec/src/tpdec_adts.lo
  CXX      libMpegTPDec/src/tpdec_asc.lo
  CXX      libMpegTPDec/src/tpdec_drm.lo
  CXX      libMpegTPDec/src/tpdec_latm.lo
  CXX      libMpegTPDec/src/tpdec_lib.lo
  CXX      libMpegTPEnc/src/tpenc_adif.lo
  CXX      libMpegTPEnc/src/tpenc_adts.lo
  CXX      libMpegTPEnc/src/tpenc_asc.lo
  CXX      libMpegTPEnc/src/tpenc_latm.lo
  CXX      libMpegTPEnc/src/tpenc_lib.lo
  CXX      libSACdec/src/sac_bitdec.lo
  CXX      libSACdec/src/sac_calcM1andM2.lo
  CXX      libSACdec/src/sac_dec.lo
  CXX      libSACdec/src/sac_dec_conceal.lo
  CXX      libSACdec/src/sac_dec_lib.lo
  CXX      libSACdec/src/sac_process.lo
  CXX      libSACdec/src/sac_qmf.lo
  CXX      libSACdec/src/sac_reshapeBBEnv.lo
  CXX      libSACdec/src/sac_rom.lo
  CXX      libSACdec/src/sac_smoothing.lo
  CXX      libSACdec/src/sac_stp.lo
  CXX      libSACdec/src/sac_tsd.lo
  CXX      libSACenc/src/sacenc_bitstream.lo
  CXX      libSACenc/src/sacenc_delay.lo
  CXX      libSACenc/src/sacenc_dmx_tdom_enh.lo
  CXX      libSACenc/src/sacenc_filter.lo
  CXX      libSACenc/src/sacenc_framewindowing.lo
  CXX      libSACenc/src/sacenc_huff_tab.lo
  CXX      libSACenc/src/sacenc_lib.lo
  CXX      libSACenc/src/sacenc_nlc_enc.lo
  CXX      libSACenc/src/sacenc_onsetdetect.lo
  CXX      libSACenc/src/sacenc_paramextract.lo
  CXX      libSACenc/src/sacenc_staticgain.lo
  CXX      libSACenc/src/sacenc_tree.lo
  CXX      libSACenc/src/sacenc_vectorfunctions.lo
  CXX      libSBRdec/src/HFgen_preFlat.lo
  CXX      libSBRdec/src/env_calc.lo
  CXX      libSBRdec/src/env_dec.lo
  CXX      libSBRdec/src/env_extr.lo
  CXX      libSBRdec/src/hbe.lo
  CXX      libSBRdec/src/huff_dec.lo
  CXX      libSBRdec/src/lpp_tran.lo
  CXX      libSBRdec/src/psbitdec.lo
  CXX      libSBRdec/src/psdec.lo
  CXX      libSBRdec/src/psdec_drm.lo
  CXX      libSBRdec/src/psdecrom_drm.lo
  CXX      libSBRdec/src/pvc_dec.lo
  CXX      libSBRdec/src/sbr_deb.lo
  CXX      libSBRdec/src/sbr_dec.lo
  CXX      libSBRdec/src/sbr_ram.lo
  CXX      libSBRdec/src/sbr_rom.lo
  CXX      libSBRdec/src/sbrdec_drc.lo
  CXX      libSBRdec/src/sbrdec_freq_sca.lo
  CXX      libSBRdec/src/sbrdecoder.lo
  CXX      libSBRenc/src/bit_sbr.lo
  CXX      libSBRenc/src/code_env.lo
  CXX      libSBRenc/src/env_bit.lo
  CXX      libSBRenc/src/env_est.lo
  CXX      libSBRenc/src/fram_gen.lo
  CXX      libSBRenc/src/invf_est.lo
  CXX      libSBRenc/src/mh_det.lo
  CXX      libSBRenc/src/nf_est.lo
  CXX      libSBRenc/src/ps_bitenc.lo
  CXX      libSBRenc/src/ps_encode.lo
  CXX      libSBRenc/src/ps_main.lo
  CXX      libSBRenc/src/resampler.lo
  CXX      libSBRenc/src/sbr_encoder.lo
  CXX      libSBRenc/src/sbr_misc.lo
  CXX      libSBRenc/src/sbrenc_freq_sca.lo
  CXX      libSBRenc/src/sbrenc_ram.lo
  CXX      libSBRenc/src/sbrenc_rom.lo
  CXX      libSBRenc/src/ton_corr.lo
  CXX      libSBRenc/src/tran_det.lo
  CXX      libPCMutils/src/limiter.lo
  CXX      libPCMutils/src/pcm_utils.lo
  CXX      libPCMutils/src/pcmdmx_lib.lo
  CXX      libFDK/src/FDK_bitbuffer.lo
  CXX      libFDK/src/FDK_core.lo
  CXX      libFDK/src/FDK_crc.lo
  CXX      libFDK/src/FDK_decorrelate.lo
  CXX      libFDK/src/FDK_hybrid.lo
  CXX      libFDK/src/FDK_lpc.lo
  CXX      libFDK/src/FDK_matrixCalloc.lo
  CXX      libFDK/src/FDK_qmf_domain.lo
  CXX      libFDK/src/FDK_tools_rom.lo
  CXX      libFDK/src/FDK_trigFcts.lo
  CXX      libFDK/src/autocorr2nd.lo
  CXX      libFDK/src/dct.lo
  CXX      libFDK/src/fft.lo
  CXX      libFDK/src/fft_rad2.lo
  CXX      libFDK/src/fixpoint_math.lo
  CXX      libFDK/src/huff_nodes.lo
  CXX      libFDK/src/mdct.lo
  CXX      libFDK/src/nlc_dec.lo
  CXX      libFDK/src/qmf.lo
  CXX      libFDK/src/scale.lo
  CXX      libSYS/src/genericStds.lo
  CXX      libSYS/src/syslib_channelMapDescr.lo
  GEN      libfdk-aac.la
root@tutorialspots:~/ffmpeg_sources/fdk-aac# make install
make[1]: Entering directory '/root/ffmpeg_sources/fdk-aac'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libfdk-aac.la '/root/ffmpeg_build/lib'
libtool: install: /usr/bin/install -c .libs/libfdk-aac.lai /root/ffmpeg_build/lib/libfdk-aac.la
libtool: install: /usr/bin/install -c .libs/libfdk-aac.a /root/ffmpeg_build/lib/libfdk-aac.a
libtool: install: chmod 644 /root/ffmpeg_build/lib/libfdk-aac.a
libtool: install: ranlib /root/ffmpeg_build/lib/libfdk-aac.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /root/ffmpeg_build/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /root/ffmpeg_build/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/root/ffmpeg_build/include/fdk-aac'
 /usr/bin/install -c -m 644 ./libSYS/include/machine_type.h ./libSYS/include/genericStds.h ./libSYS/include/FDK_audio.h ./libSYS/include/syslib_channelMapDescr.h ./libAACenc/include/aacenc_lib.h ./libAACdec/include/aacdecoder_lib.h '/root/ffmpeg_build/include/fdk-aac'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib/pkgconfig'
 /usr/bin/install -c -m 644 fdk-aac.pc '/root/ffmpeg_build/lib/pkgconfig'
make[1]: Leaving directory '/root/ffmpeg_sources/fdk-aac'
root@tutorialspots:~/ffmpeg_sources/fdk-aac#

Or you can use package libfdk-aac-dev

apt install libfdk-aac-dev

Step 8: install libmp3lame

cd ~/ffmpeg_sources
curl -O -L http://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz
tar xzvf lame-3.100.tar.gz
cd lame-3.100
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --disable-shared --enable-nasm
make
make install

result:

root@tutorialspots:~/ffmpeg_sources/fdk-aac# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# curl -O -L http://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   335  100   335    0     0    537      0 --:--:-- --:--:-- --:--:--   536
100 1488k  100 1488k    0     0   880k      0  0:00:01  0:00:01 --:--:--  496k
root@tutorialspots:~/ffmpeg_sources# tar xzvf lame-3.100.tar.gz
...
root@tutorialspots:~/ffmpeg_sources# cd lame-3.100
root@tutorialspots:~/ffmpeg_sources/lame-3.100# ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --disable-shared --enable-nasm
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking compiler... gcc
checking version of GCC... unknown compiler version pattern
checking dmalloc.h usability... no
checking dmalloc.h presence... no
checking for dmalloc.h... no
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking working SSE intrinsics... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking size of short... 2
checking size of unsigned short... 2
checking size of int... 4
checking size of unsigned int... 4
checking size of long... 8
checking size of unsigned long... 8
checking size of long long... 8
checking size of unsigned long long... 8
checking size of float... 4
checking size of double... 8
checking for long double with more range or precision than double... yes
checking for uint8_t... yes
checking for int8_t... yes
checking for uint16_t... yes
checking for int16_t... yes
checking for uint32_t... yes
checking for int32_t... yes
checking for uint64_t... yes
checking for int64_t... yes
checking for IEEE854 compliant 80 bit floats... no
checking for ieee754_float64_t... no
checking for ieee754_float32_t... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for gettimeofday... yes
checking for strtol... yes
checking for socket... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking ncurses/termcap.h usability... no
checking ncurses/termcap.h presence... no
checking for ncurses/termcap.h... no
checking for initscr in -ltermcap... no
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for ld used by gcc... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for cos in -lm... yes
checking for cos in -lffm... no
checking for cos in -lcpml... no
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking use of ElectricFence malloc debugging... no
checking use of file io... lame
checking use of analyzer hooks... yes
checking use of mpg123 decoder... yes (Layer 1, 2, 3)
checking if the lame frontend should be build... yes
checking if mp3x is requested... no
checking if mp3rtp is requested... no
checking if dynamic linking of the frontends is requested... no
checking for termcap... yes
checking if I have to build the internal vector lib... yes
checking for nasm... /usr/bin/nasm
checking for assembler routines for this processor type... no
checking for additional optimizations... no
checking for debug options... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libmp3lame/Makefile
config.status: creating libmp3lame/i386/Makefile
config.status: creating libmp3lame/vector/Makefile
config.status: creating frontend/Makefile
config.status: creating mpglib/Makefile
config.status: creating doc/Makefile
config.status: creating doc/html/Makefile
config.status: creating doc/man/Makefile
config.status: creating include/Makefile
config.status: creating Dll/Makefile
config.status: creating misc/Makefile
config.status: creating dshow/Makefile
config.status: creating ACM/Makefile
config.status: creating ACM/ADbg/Makefile
config.status: creating ACM/ddk/Makefile
config.status: creating ACM/tinyxml/Makefile
config.status: creating lame.spec
config.status: creating mac/Makefile
config.status: creating macosx/Makefile
config.status: creating macosx/English.lproj/Makefile
config.status: creating macosx/LAME.xcodeproj/Makefile
config.status: creating vc_solution/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
root@tutorialspots:~/ffmpeg_sources/lame-3.100# make
...
root@tutorialspots:~/ffmpeg_sources/lame-3.100# make install
Making install in mpglib
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/mpglib'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/mpglib'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/mpglib'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/mpglib'
Making install in libmp3lame
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/libmp3lame'
Making install in i386
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/i386'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/i386'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/i386'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/i386'
Making install in vector
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/vector'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/vector'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/vector'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/libmp3lame/vector'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/libmp3lame'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/libmp3lame'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libmp3lame.la '/root/ffmpeg_build/lib'
libtool: install: /usr/bin/install -c .libs/libmp3lame.lai /root/ffmpeg_build/lib/libmp3lame.la
libtool: install: /usr/bin/install -c .libs/libmp3lame.a /root/ffmpeg_build/lib/libmp3lame.a
libtool: install: chmod 644 /root/ffmpeg_build/lib/libmp3lame.a
libtool: install: ranlib /root/ffmpeg_build/lib/libmp3lame.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /root/ffmpeg_build/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /root/ffmpeg_build/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/libmp3lame'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/libmp3lame'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/libmp3lame'
Making install in frontend
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/frontend'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/frontend'
 /usr/bin/mkdir -p '/root/bin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c lame '/root/bin'
libtool: install: /usr/bin/install -c lame /root/bin/lame
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/frontend'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/frontend'
Making install in Dll
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/Dll'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/Dll'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/Dll'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/Dll'
Making install in doc
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/doc'
Making install in html
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/doc/html'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/doc/html'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/doc/lame/html'
 /usr/bin/install -c -m 644 about.html abr.html cbr.html contact.html contributors.html detailed.html history.html index.html introduction.html links.html list.html ms_stereo.html usage.html vbr.html '/root/ffmpeg_build/share/doc/lame/html'
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/doc/html'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/doc/html'
Making install in man
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/doc/man'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/doc/man'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/man/man1'
 /usr/bin/install -c -m 644 lame.1 '/root/ffmpeg_build/share/man/man1'
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/doc/man'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/doc/man'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/doc'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/doc'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/doc'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/doc'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/doc'
Making install in include
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/include'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/include'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/include/lame'
 /usr/bin/install -c -m 644 lame.h '/root/ffmpeg_build/include/lame'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/include'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/include'
Making install in misc
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/misc'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/misc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/misc'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/misc'
Making install in dshow
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/dshow'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/dshow'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/dshow'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/dshow'
Making install in ACM
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM'
Making install in ADbg
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM/ADbg'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM/ADbg'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM/ADbg'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM/ADbg'
Making install in ddk
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM/ddk'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM/ddk'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM/ddk'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM/ddk'
Making install in tinyxml
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM/tinyxml'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM/tinyxml'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM/tinyxml'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM/tinyxml'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/ACM'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/ACM'
Making install in mac
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/mac'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/mac'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/mac'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/mac'
Making install in macosx
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/macosx'
Making install in English.lproj
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/macosx/English.lproj'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/macosx/English.lproj'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/macosx/English.lproj'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/macosx/English.lproj'
Making install in LAME.xcodeproj
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/macosx/LAME.xcodeproj'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/macosx/LAME.xcodeproj'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/macosx/LAME.xcodeproj'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/macosx/LAME.xcodeproj'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/macosx'
make[3]: Entering directory '/root/ffmpeg_sources/lame-3.100/macosx'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/lame-3.100/macosx'
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/macosx'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/macosx'
Making install in vc_solution
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100/vc_solution'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100/vc_solution'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100/vc_solution'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100/vc_solution'
make[1]: Entering directory '/root/ffmpeg_sources/lame-3.100'
make[2]: Entering directory '/root/ffmpeg_sources/lame-3.100'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/lame-3.100'
make[1]: Leaving directory '/root/ffmpeg_sources/lame-3.100'
root@tutorialspots:~/ffmpeg_sources/lame-3.100# 

Or you can use package libmp3lame-dev

apt install libmp3lame-dev

Step 9: install libopus

cd ~/ffmpeg_sources
curl -O -L https://archive.mozilla.org/pub/opus/opus-1.2.1.tar.gz
tar xzvf opus-1.2.1.tar.gz
cd opus-1.2.1
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install

result:

root@tutorialspots:~/ffmpeg_sources/lame-3.100# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# curl -O -L https://archive.mozilla.org/pub/opus/opus-1.2.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  987k  100  987k    0     0   686k      0  0:00:01  0:00:01 --:--:--  686k
root@tutorialspots:~/ffmpeg_sources# tar xzvf opus-1.2.1.tar.gz
...
root@tutorialspots:~/ffmpeg_sources# cd opus-1.2.1
root@tutorialspots:~/ffmpeg_sources/opus-1.2.1# ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gcc option to accept ISO C99... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking dependency style of gcc... gcc3
checking for C/C++ restrict keyword... __restrict
checking for C99 variable-size arrays... yes
checking for cos in -lm... yes
checking if compiler supports SSE intrinsics... yes
checking if compiler supports SSE2 intrinsics... yes
checking if compiler supports SSE4.1 intrinsics... no
checking if compiler supports SSE4.1 intrinsics with -msse4.1... yes
checking if compiler supports AVX intrinsics... no
checking if compiler supports AVX intrinsics with -mavx... yes
checking How to get X86 CPU Info... Inline Assembly
checking for doxygen... no
checking for dot... no
checking if gcc supports -fvisibility=hidden... yes
checking if gcc supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... yes
checking for lrintf... yes
checking for lrint... yes
checking for __malloc_hook... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating opus.pc
config.status: creating opus-uninstalled.pc
config.status: creating celt/arm/armopts.s
config.status: creating doc/Makefile
config.status: creating doc/Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
------------------------------------------------------------------------
  opus 1.2.1:  Automatic configuration OK.

    Compiler support:

      C99 var arrays: ................ yes
      C99 lrintf: .................... yes
      Use alloca: .................... no (using var arrays)

    General configuration:

      Floating point support: ........ yes
      Fast float approximations: ..... no
      Fixed point debugging: ......... no
      Inline Assembly Optimizations: . No inline ASM for your platform, please send patches
      External Assembly Optimizations:
      Intrinsics Optimizations.......: x86 SSE SSE2 SSE4.1 AVX
      Run-time CPU detection: ........ x86 SSE4.1 AVX
      Custom modes: .................. no
      Assertion checking: ............ no
      Fuzzing: ....................... no
      Check ASM: ..................... no
      Ambisonics support: ............ no

      API documentation: ............. yes
      Extra programs: ................ yes
------------------------------------------------------------------------

 Type "make; make install" to compile and install
 Type "make check" to run the test suite

root@tutorialspots:~/ffmpeg_sources/opus-1.2.1# make
make  all-recursive
make[1]: Entering directory '/root/ffmpeg_sources/opus-1.2.1'
make[2]: Entering directory '/root/ffmpeg_sources/opus-1.2.1'
  CC       celt/bands.lo
  CC       celt/celt.lo
  CC       celt/celt_encoder.lo
  CC       celt/celt_decoder.lo
  CC       celt/cwrs.lo
  CC       celt/entcode.lo
  CC       celt/entdec.lo
  CC       celt/entenc.lo
  CC       celt/kiss_fft.lo
  CC       celt/laplace.lo
  CC       celt/mathops.lo
  CC       celt/mdct.lo
  CC       celt/modes.lo
  CC       celt/pitch.lo
  CC       celt/celt_lpc.lo
  CC       celt/quant_bands.lo
  CC       celt/rate.lo
  CC       celt/vq.lo
  CC       celt/x86/x86cpu.lo
  CC       celt/x86/x86_celt_map.lo
  CC       celt/x86/pitch_sse.lo
  CC       celt/x86/pitch_sse2.lo
  CC       celt/x86/vq_sse2.lo
  CC       celt/x86/celt_lpc_sse.lo
  CC       celt/x86/pitch_sse4_1.lo
  CC       silk/CNG.lo
  CC       silk/code_signs.lo
  CC       silk/init_decoder.lo
  CC       silk/decode_core.lo
  CC       silk/decode_frame.lo
  CC       silk/decode_parameters.lo
  CC       silk/decode_indices.lo
  CC       silk/decode_pulses.lo
  CC       silk/decoder_set_fs.lo
  CC       silk/dec_API.lo
  CC       silk/enc_API.lo
  CC       silk/encode_indices.lo
  CC       silk/encode_pulses.lo
  CC       silk/gain_quant.lo
  CC       silk/interpolate.lo
  CC       silk/LP_variable_cutoff.lo
  CC       silk/NLSF_decode.lo
  CC       silk/NSQ.lo
  CC       silk/NSQ_del_dec.lo
  CC       silk/PLC.lo
  CC       silk/shell_coder.lo
  CC       silk/tables_gain.lo
  CC       silk/tables_LTP.lo
  CC       silk/tables_NLSF_CB_NB_MB.lo
  CC       silk/tables_NLSF_CB_WB.lo
  CC       silk/tables_other.lo
  CC       silk/tables_pitch_lag.lo
  CC       silk/tables_pulses_per_block.lo
  CC       silk/VAD.lo
  CC       silk/control_audio_bandwidth.lo
  CC       silk/quant_LTP_gains.lo
  CC       silk/VQ_WMat_EC.lo
  CC       silk/HP_variable_cutoff.lo
  CC       silk/NLSF_encode.lo
  CC       silk/NLSF_VQ.lo
  CC       silk/NLSF_unpack.lo
  CC       silk/NLSF_del_dec_quant.lo
  CC       silk/process_NLSFs.lo
  CC       silk/stereo_LR_to_MS.lo
  CC       silk/stereo_MS_to_LR.lo
  CC       silk/check_control_input.lo
  CC       silk/control_SNR.lo
  CC       silk/init_encoder.lo
  CC       silk/control_codec.lo
  CC       silk/A2NLSF.lo
  CC       silk/ana_filt_bank_1.lo
  CC       silk/biquad_alt.lo
  CC       silk/bwexpander_32.lo
  CC       silk/bwexpander.lo
  CC       silk/debug.lo
  CC       silk/decode_pitch.lo
  CC       silk/inner_prod_aligned.lo
  CC       silk/lin2log.lo
  CC       silk/log2lin.lo
  CC       silk/LPC_analysis_filter.lo
  CC       silk/LPC_inv_pred_gain.lo
  CC       silk/table_LSF_cos.lo
  CC       silk/NLSF2A.lo
  CC       silk/NLSF_stabilize.lo
  CC       silk/NLSF_VQ_weights_laroia.lo
  CC       silk/pitch_est_tables.lo
  CC       silk/resampler.lo
  CC       silk/resampler_down2_3.lo
  CC       silk/resampler_down2.lo
  CC       silk/resampler_private_AR2.lo
  CC       silk/resampler_private_down_FIR.lo
  CC       silk/resampler_private_IIR_FIR.lo
  CC       silk/resampler_private_up2_HQ.lo
  CC       silk/resampler_rom.lo
  CC       silk/sigm_Q15.lo
  CC       silk/sort.lo
  CC       silk/sum_sqr_shift.lo
  CC       silk/stereo_decode_pred.lo
  CC       silk/stereo_encode_pred.lo
  CC       silk/stereo_find_predictor.lo
  CC       silk/stereo_quant_pred.lo
  CC       silk/LPC_fit.lo
  CC       silk/float/apply_sine_window_FLP.lo
  CC       silk/float/corrMatrix_FLP.lo
  CC       silk/float/encode_frame_FLP.lo
  CC       silk/float/find_LPC_FLP.lo
  CC       silk/float/find_LTP_FLP.lo
  CC       silk/float/find_pitch_lags_FLP.lo
  CC       silk/float/find_pred_coefs_FLP.lo
  CC       silk/float/LPC_analysis_filter_FLP.lo
  CC       silk/float/LTP_analysis_filter_FLP.lo
  CC       silk/float/LTP_scale_ctrl_FLP.lo
  CC       silk/float/noise_shape_analysis_FLP.lo
  CC       silk/float/process_gains_FLP.lo
  CC       silk/float/regularize_correlations_FLP.lo
  CC       silk/float/residual_energy_FLP.lo
  CC       silk/float/warped_autocorrelation_FLP.lo
  CC       silk/float/wrappers_FLP.lo
  CC       silk/float/autocorrelation_FLP.lo
  CC       silk/float/burg_modified_FLP.lo
  CC       silk/float/bwexpander_FLP.lo
  CC       silk/float/energy_FLP.lo
  CC       silk/float/inner_product_FLP.lo
  CC       silk/float/k2a_FLP.lo
  CC       silk/float/LPC_inv_pred_gain_FLP.lo
  CC       silk/float/pitch_analysis_core_FLP.lo
  CC       silk/float/scale_copy_vector_FLP.lo
  CC       silk/float/scale_vector_FLP.lo
  CC       silk/float/schur_FLP.lo
  CC       silk/float/sort_FLP.lo
  CC       silk/x86/NSQ_sse.lo
  CC       silk/x86/NSQ_del_dec_sse.lo
  CC       silk/x86/x86_silk_map.lo
  CC       silk/x86/VAD_sse.lo
  CC       silk/x86/VQ_WMat_EC_sse.lo
  CC       src/opus.lo
  CC       src/opus_decoder.lo
  CC       src/opus_encoder.lo
  CC       src/opus_multistream.lo
  CC       src/opus_multistream_encoder.lo
  CC       src/opus_multistream_decoder.lo
  CC       src/repacketizer.lo
  CC       src/analysis.lo
  CC       src/mlp.lo
  CC       src/mlp_data.lo
  CCLD     libopus.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       celt/tests/test_unit_cwrs32.o
  CCLD     celt/tests/test_unit_cwrs32
  CC       celt/tests/test_unit_dft.o
  CCLD     celt/tests/test_unit_dft
  CC       celt/tests/test_unit_entropy.o
  CCLD     celt/tests/test_unit_entropy
  CC       celt/tests/test_unit_laplace.o
  CCLD     celt/tests/test_unit_laplace
  CC       celt/tests/test_unit_mathops.o
  CCLD     celt/tests/test_unit_mathops
  CC       celt/tests/test_unit_mdct.o
  CCLD     celt/tests/test_unit_mdct
  CC       celt/tests/test_unit_rotation.o
  CCLD     celt/tests/test_unit_rotation
  CC       celt/tests/test_unit_types.o
  CCLD     celt/tests/test_unit_types
  CC       src/opus_compare.o
  CCLD     opus_compare
  CC       src/opus_demo.o
  CCLD     opus_demo
  CC       src/repacketizer_demo.o
  CCLD     repacketizer_demo
  CC       silk/tests/test_unit_LPC_inv_pred_gain.o
  CCLD     silk/tests/test_unit_LPC_inv_pred_gain
  CC       tests/test_opus_api.o
  CCLD     tests/test_opus_api
  CC       tests/test_opus_decode.o
  CCLD     tests/test_opus_decode
  CC       tests/test_opus_encode.o
  CC       tests/opus_encode_regressions.o
  CCLD     tests/test_opus_encode
  CC       tests/test_opus_padding.o
  CCLD     tests/test_opus_padding
make[3]: Entering directory '/root/ffmpeg_sources/opus-1.2.1/doc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1/doc'
make[2]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1'
make[1]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1'
root@tutorialspots:~/ffmpeg_sources/opus-1.2.1# make install
make  install-recursive
make[1]: Entering directory '/root/ffmpeg_sources/opus-1.2.1'
make[2]: Entering directory '/root/ffmpeg_sources/opus-1.2.1'
make[3]: Entering directory '/root/ffmpeg_sources/opus-1.2.1/doc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1/doc'
make[3]: Entering directory '/root/ffmpeg_sources/opus-1.2.1'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libopus.la '/root/ffmpeg_build/lib'
libtool: install: /usr/bin/install -c .libs/libopus.lai /root/ffmpeg_build/lib/libopus.la
libtool: install: /usr/bin/install -c .libs/libopus.a /root/ffmpeg_build/lib/libopus.a
libtool: install: chmod 644 /root/ffmpeg_build/lib/libopus.a
libtool: install: ranlib /root/ffmpeg_build/lib/libopus.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /root/ffmpeg_build/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /root/ffmpeg_build/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[4]: Entering directory '/root/ffmpeg_sources/opus-1.2.1/doc'
make[5]: Entering directory '/root/ffmpeg_sources/opus-1.2.1/doc'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1/doc'
make[4]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1/doc'
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/aclocal'
 /usr/bin/install -c -m 644 opus.m4 '/root/ffmpeg_build/share/aclocal'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib/pkgconfig'
 /usr/bin/install -c -m 644 opus.pc '/root/ffmpeg_build/lib/pkgconfig'
 /usr/bin/mkdir -p '/root/ffmpeg_build/include/opus'
 /usr/bin/install -c -m 644 include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h '/root/ffmpeg_build/include/opus'
make[3]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1'
make[2]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1'
make[1]: Leaving directory '/root/ffmpeg_sources/opus-1.2.1'
root@tutorialspots:~/ffmpeg_sources/opus-1.2.1#

Or you can use package libopus-dev

apt install libopus-dev

Step 10: install libogg

cd ~/ffmpeg_sources
curl -O -L http://downloads.xiph.org/releases/ogg/libogg-1.3.3.tar.gz
tar xzvf libogg-1.3.3.tar.gz
cd libogg-1.3.3
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install

result:

root@tutorialspots:~/ffmpeg_sources/opus-1.2.1# cd ~/ffmpeg_sources
root@tutorialspots:~/ffmpeg_sources# curl -O -L http://downloads.xiph.org/releases/ogg/libogg-1.3.3.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   161  100   161    0     0     45      0  0:00:03  0:00:03 --:--:--    45
100  566k  100  566k    0     0  79726      0  0:00:07  0:00:07 --:--:--  183k
root@tutorialspots:~/ffmpeg_sources# tar xzvf libogg-1.3.3.tar.gz
...
root@ns5008133:~/ffmpeg_sources# cd libogg-1.3.3
root@ns5008133:~/ffmpeg_sources/libogg-1.3.3# ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking size of int16_t... 2
checking size of uint16_t... 2
checking size of u_int16_t... 2
checking size of int32_t... 4
checking size of uint32_t... 4
checking size of u_int32_t... 4
checking size of int64_t... 8
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking for working memcmp... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating doc/libogg/Makefile
config.status: creating include/Makefile
config.status: creating include/ogg/Makefile
config.status: creating include/ogg/config_types.h
config.status: creating libogg.spec
config.status: creating ogg.pc
config.status: creating ogg-uninstalled.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
root@tutorialspots:~/ffmpeg_sources/libogg-1.3.3# make
make  all-recursive
make[1]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3'
Making all in src
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include   -O20 -Wall -ffast-math -fsigned-char -g -O2 -MT framing.lo -MD -MP -MF .deps/framing.Tpo -c -o framing.lo framing.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -O20 -Wall -ffast-math -fsigned-char -g -O2 -MT framing.lo -MD -MP -MF .deps/framing.Tpo -c framing.c -o framing.o
mv -f .deps/framing.Tpo .deps/framing.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include   -O20 -Wall -ffast-math -fsigned-char -g -O2 -MT bitwise.lo -MD -MP -MF .deps/bitwise.Tpo -c -o bitwise.lo bitwise.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -O20 -Wall -ffast-math -fsigned-char -g -O2 -MT bitwise.lo -MD -MP -MF .deps/bitwise.Tpo -c bitwise.c -o bitwise.o
mv -f .deps/bitwise.Tpo .deps/bitwise.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -O20 -Wall -ffast-math -fsigned-char -g -O2 -no-undefined -version-info 8:3:8  -o libogg.la -rpath /root/ffmpeg_build/lib framing.lo bitwise.lo
libtool: link: ar cru .libs/libogg.a  framing.o bitwise.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libogg.a
libtool: link: ( cd ".libs" && rm -f "libogg.la" && ln -s "../libogg.la" "libogg.la" )
gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include  -D_V_SELFTEST -O20 -Wall -ffast-math -fsigned-char -g -O2 -MT test_bitwise-bitwise.o -MD -MP -MF .deps/test_bitwise-bitwise.Tpo -c -o test_bitwise-bitwise.o `test -f 'bitwise.c' || echo './'`bitwise.c
mv -f .deps/test_bitwise-bitwise.Tpo .deps/test_bitwise-bitwise.Po
/bin/bash ../libtool  --tag=CC   --mode=link gcc -D_V_SELFTEST -O20 -Wall -ffast-math -fsigned-char -g -O2   -o test_bitwise test_bitwise-bitwise.o
libtool: link: gcc -D_V_SELFTEST -O20 -Wall -ffast-math -fsigned-char -g -O2 -o test_bitwise test_bitwise-bitwise.o
gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include  -D_V_SELFTEST -O20 -Wall -ffast-math -fsigned-char -g -O2 -MT test_framing-framing.o -MD -MP -MF .deps/test_framing-framing.Tpo -c -o test_framing-framing.o `test -f 'framing.c' || echo './'`framing.c
mv -f .deps/test_framing-framing.Tpo .deps/test_framing-framing.Po
/bin/bash ../libtool  --tag=CC   --mode=link gcc -D_V_SELFTEST -O20 -Wall -ffast-math -fsigned-char -g -O2   -o test_framing test_framing-framing.o
libtool: link: gcc -D_V_SELFTEST -O20 -Wall -ffast-math -fsigned-char -g -O2 -o test_framing test_framing-framing.o
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/src'
Making all in include
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include'
Making all in ogg
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include/ogg'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include/ogg'
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include'
Making all in doc
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
Making all in libogg
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc/libogg'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc/libogg'
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3'
make[1]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3'
root@tutorialspots:~/ffmpeg_sources/libogg-1.3.3# make install
Making install in src
make[1]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/src'
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/src'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libogg.la '/root/ffmpeg_build/lib'
libtool: install: /usr/bin/install -c .libs/libogg.lai /root/ffmpeg_build/lib/libogg.la
libtool: install: /usr/bin/install -c .libs/libogg.a /root/ffmpeg_build/lib/libogg.a
libtool: install: chmod 644 /root/ffmpeg_build/lib/libogg.a
libtool: install: ranlib /root/ffmpeg_build/lib/libogg.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /root/ffmpeg_build/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /root/ffmpeg_build/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/src'
make[1]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/src'
Making install in include
make[1]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include'
Making install in ogg
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include/ogg'
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include/ogg'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/include/ogg'
 /usr/bin/install -c -m 644 config_types.h '/root/ffmpeg_build/include/ogg'
 /usr/bin/mkdir -p '/root/ffmpeg_build/include/ogg'
 /usr/bin/install -c -m 644 ogg.h os_types.h '/root/ffmpeg_build/include/ogg'
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include/ogg'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include/ogg'
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include'
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/include'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include'
make[1]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/include'
Making install in doc
make[1]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
Making install in libogg
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc/libogg'
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc/libogg'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/doc/libogg/libogg'
 /usr/bin/install -c -m 644 bitpacking.html datastructures.html decoding.html encoding.html general.html index.html ogg_iovec_t.html ogg_packet.html ogg_packet_clear.html ogg_page.html ogg_page_bos.html ogg_page_checksum_set.html ogg_page_continued.html ogg_page_eos.html ogg_page_granulepos.html ogg_page_packets.html ogg_page_pageno.html ogg_page_serialno.html ogg_page_version.html ogg_stream_check.html ogg_stream_clear.html ogg_stream_destroy.html ogg_stream_eos.html ogg_stream_flush.html ogg_stream_flush_fill.html ogg_stream_init.html ogg_stream_iovecin.html ogg_stream_packetin.html ogg_stream_packetout.html ogg_stream_packetpeek.html ogg_stream_pagein.html ogg_stream_pageout.html ogg_stream_pageout_fill.html ogg_stream_reset.html ogg_stream_reset_serialno.html ogg_stream_state.html ogg_sync_buffer.html ogg_sync_check.html ogg_sync_clear.html ogg_sync_destroy.html '/root/ffmpeg_build/share/doc/libogg/libogg'
 /usr/bin/install -c -m 644 ogg_sync_init.html ogg_sync_pageout.html ogg_sync_pageseek.html ogg_sync_reset.html ogg_sync_state.html ogg_sync_wrote.html oggpack_adv.html oggpack_adv1.html oggpack_bits.html oggpack_buffer.html oggpack_bytes.html oggpack_get_buffer.html oggpack_look.html oggpack_look1.html oggpack_read.html oggpack_read1.html oggpack_readinit.html oggpack_reset.html oggpack_write.html oggpack_writealign.html oggpack_writecheck.html oggpack_writeclear.html oggpack_writecopy.html oggpack_writeinit.html oggpack_writetrunc.html overview.html reference.html style.css '/root/ffmpeg_build/share/doc/libogg/libogg'
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc/libogg'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc/libogg'
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[3]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/doc/libogg'
 /usr/bin/install -c -m 644 framing.html index.html oggstream.html ogg-multiplex.html fish_xiph_org.png multiplex1.png packets.png pages.png stream.png vorbisword2.png white-ogg.png white-xifish.png rfc3533.txt rfc5334.txt skeleton.html '/root/ffmpeg_build/share/doc/libogg'
make[3]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[1]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3/doc'
make[1]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3'
make[2]: Entering directory '/root/ffmpeg_sources/libogg-1.3.3'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/root/ffmpeg_build/share/aclocal'
 /usr/bin/install -c -m 644 ogg.m4 '/root/ffmpeg_build/share/aclocal'
 /usr/bin/mkdir -p '/root/ffmpeg_build/lib/pkgconfig'
 /usr/bin/install -c -m 644 ogg.pc '/root/ffmpeg_build/lib/pkgconfig'
make[2]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3'
make[1]: Leaving directory '/root/ffmpeg_sources/libogg-1.3.3'
root@tutorialspots:~/ffmpeg_sources/libogg-1.3.3#

Or you can use package libogg-dev

apt install libogg-dev

Read part 2: How to compile FFmpeg on Ubuntu 20.04 – part 2

]]>
https://tutorialspots.com/how-to-compile-ffmpeg-on-ubuntu-20-04-7273.html/feed 0
How to build PHP 8 Extension on Windows https://tutorialspots.com/how-to-build-php-8-extension-on-windows-7269.html https://tutorialspots.com/how-to-build-php-8-extension-on-windows-7269.html#comments Sat, 24 Feb 2024 13:14:11 +0000 http://tutorialspots.com/?p=7269 Read this article first: How to build PHP 8 on Windows

Example, we need to build extension vld:
https://github.com/derickr/vld

We follow 8 first steps in this article

Step 9: download extension source code https://github.com/derickr/vld/archive/refs/heads/master.zip

then unzip to folder F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\ext\vld

Step 10: compile PHP

nmake clean
F:\php-sdk\phpsdk-vs16-x64.bat
buildconf
configure --disable-all --enable-cli --enable-vld=shared
nmake

result:

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ nmake clean

Microsoft (R) Program Maintenance Utility Version 14.16.27050.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Cleaning SAPI
Cleaning distribution build dirs
        rd /s /q F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php-8.2.16
The system cannot find the file specified.

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ F:\php-sdk\phpsdk-vs16-x64.bat
[vcvarsall.bat] Environment initialized for: 'x64'

PHP SDK 2.2.1-dev

OS architecture:    64-bit
Build architecture: 64-bit
Visual C++:         14.16.27050.0
PHP-SDK path:       F:\php-sdk

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ buildconf
Rebuilding configure.js
Now run 'configure --help'

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ configure --disable-all --enable-cli --enable-vld=shared
PHP Version: 8.2.16

Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
  Detected compiler Visual C++ 2017
  Detected x64 compiler
Checking for link.exe ...  <in default path>
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
  Detected bison version 3.3.2
Checking for sed.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 1.1.1
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <in default path>
Checking for 7za.exe ...  <in default path>
Checking for mc.exe ...  C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64
Checking for mt.exe ...  C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64
Enabling multi process build

Build dir: F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS
PHP Core:  php8ts.dll and php8ts.lib
Checking for ML64.exe ...  <in default path>

Checking for wspiapi.h ...  <in default path>
Enabling IPv6 support
Enabling SAPI sapi\cli
Checking for library edit_a.lib;edit.lib ... <in deps path> \lib\edit_a.lib
Checking for editline/readline.h ...  <in deps path> \include
Enabling extension ext\date
Enabling extension ext\hash
Checking for KeccakHash.h ...  ext/hash/sha3/generic64lc
Checking for PMurHash.h ...  ext/hash/murmur
Checking for xxhash.h ...  ext/hash/xxhash
Enabling extension ext\json
Enabling extension ext\pcre
Enabling extension ext\random
Enabling extension ext\reflection
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard
Enabling extension ext\vld-sourceguardian [shared]

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
        [content unchanged; skipping]
Generating main/config.w32.h
Generating phpize
Done.



Enabled extensions:
-----------------------
| Extension  | Mode   |
-----------------------
| date       | static |
| hash       | static |
| json       | static |
| pcre       | static |
| random     | static |
| reflection | static |
| spl        | static |
| standard   | static |
| vld        | shared |
-----------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cli       |
-------------


-----------------------------------------
|                     |                 |
-----------------------------------------
| Build type          | Release         |
| Thread Safety       | Yes             |
| Compiler            | Visual C++ 2017 |
| Target Architecture | x64             |
| Host Architecture   | x64             |
| Optimization        | PGO disabled    |
| Native intrinsics   | SSE2            |
| Static analyzer     | disabled        |
-----------------------------------------


Type 'nmake' to build PHP

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ nmake

Microsoft (R) Program Maintenance Utility Version 14.16.27050.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        type ext\pcre\php_pcre.def > F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.dll.def
branchinfo.c
set.c
srm_oparray.c
vld.c
zend.c
zend_API.c
zend_alloc.c
zend_ast.c
zend_atomic.c
zend_attributes.c
zend_builtin_functions.c
zend_closures.c
zend_compile.c
zend_constants.c
zend_cpuinfo.c
zend_default_classes.c
zend_enum.c
zend_exceptions.c
zend_execute.c
zend_execute_API.c
zend_extensions.c
zend_fibers.c
zend_float.c
zend_gc.c
zend_generators.c
zend_hash.c
zend_highlight.c
zend_inheritance.c
zend_ini.c
zend_ini_parser.c
zend_ini_scanner.c
zend_interfaces.c
zend_iterators.c
zend_language_parser.c
zend_language_scanner.c
zend_list.c
zend_llist.c
zend_multibyte.c
zend_object_handlers.c
zend_objects.c
zend_objects_API.c
zend_observer.c
zend_opcode.c
zend_operators.c
zend_ptr_stack.c
zend_smart_str.c
zend_sort.c
zend_stack.c
zend_stream.c
zend_string.c
zend_strtod.c
zend_system_id.c
zend_variables.c
zend_virtual_cwd.c
zend_vm_opcodes.c
zend_weakrefs.c
block_pass.c
compact_literals.c
compact_vars.c
dce.c
dfa_pass.c
escape_analysis.c
nop_removal.c
optimize_func_calls.c
optimize_temp_vars_5.c
pass1.c
pass3.c
sccp.c
scdf.c
zend_call_graph.c
zend_cfg.c
zend_dfg.c
zend_dump.c
zend_func_info.c
zend_inference.c
zend_optimizer.c
zend_ssa.c
SAPI.c
fopen_wrappers.c
getopt.c
internal_functions.c
main.c
network.c
output.c
php_content_types.c
php_ini.c
php_ini_builder.c
php_odbc_utils.c
php_open_temporary_file.c
php_scandir.c
php_syslog.c
php_ticks.c
php_variables.c
reentrancy.c
rfc1867.c
safe_bcmp.c
snprintf.c
spprintf.c
strlcat.c
strlcpy.c
cast.c
filter.c
glob_wrapper.c
memory.c
mmap.c
plain_wrapper.c
streams.c
transports.c
userspace.c
xp_socket.c
codepage.c
console.c
dllmain.c
fnmatch.c
ftok.c
getrusage.c
glob.c
globals.c
inet.c
ioutil.c
nice.c
readdir.c
registry.c
select.c
sendmail.c
signal.c
sockets.c
time.c
winutil.c
wsyslog.c
TSRM.c
tsrm_win32.c
php_date.c
astro.c
dow.c
interval.c
parse_date.c
parse_iso_intervals.c
parse_posix.c
parse_tz.c
timelib.c
tm2unixtime.c
unixtime2tm.c
hash.c
hash_adler32.c
hash_crc32.c
hash_fnv.c
hash_gost.c
hash_haval.c
hash_joaat.c
hash_md.c
hash_murmur.c
hash_ripemd.c
hash_sha.c
hash_sha3.c
hash_snefru.c
hash_tiger.c
hash_whirlpool.c
hash_xxhash.c
KeccakHash.c
KeccakP-1600-opt64.c
KeccakSponge.c
PMurHash.c
PMurHash128.c
ext\hash\murmur\PMurHash128.c(485): warning C4028: formal parameter 3 different from declaration
json.c
json_encoder.c
json_parser.tab.c
json_scanner.c
php_pcre.c
pcre2_auto_possess.c
pcre2_chartables.c
pcre2_compile.c
pcre2_config.c
pcre2_context.c
pcre2_convert.c
pcre2_dfa_match.c
pcre2_error.c
pcre2_extuni.c
pcre2_find_bracket.c
pcre2_jit_compile.c
pcre2_maketables.c
pcre2_match.c
pcre2_match_data.c
pcre2_newline.c
pcre2_ord2utf.c
pcre2_pattern_info.c
pcre2_script_run.c
pcre2_serialize.c
pcre2_string_utils.c
pcre2_study.c
pcre2_substitute.c
pcre2_substring.c
pcre2_tables.c
pcre2_ucd.c
pcre2_valid_utf.c
pcre2_xclass.c
random.c
engine_combinedlcg.c
engine_mt19937.c
engine_pcgoneseq128xslrr64.c
engine_secure.c
engine_user.c
engine_xoshiro256starstar.c
randomizer.c
php_reflection.c
php_spl.c
spl_array.c
spl_directory.c
spl_dllist.c
spl_exceptions.c
spl_fixedarray.c
spl_functions.c
spl_heap.c
spl_iterators.c
spl_observer.c
array.c
assert.c
base64.c
basic_functions.c
browscap.c
crc32.c
crc32_x86.c
credits.c
crypt.c
crypt_blowfish.c
crypt_freesec.c
crypt_sha256.c
crypt_sha512.c
css.c
datetime.c
dir.c
dl.c
dns.c
dns_win32.c
exec.c
file.c
filestat.c
filters.c
flock_compat.c
formatted_print.c
fsock.c
ftok.c
ftp_fopen_wrapper.c
head.c
hrtime.c
html.c
http.c
http_fopen_wrapper.c
image.c
incomplete_class.c
info.c
iptc.c
levenshtein.c
link.c
mail.c
math.c
md5.c
metaphone.c
microtime.c
net.c
pack.c
pageinfo.c
password.c
php_crypt_r.c
php_fopen_wrapper.c
proc_open.c
quot_print.c
scanf.c
sha1.c
soundex.c
streamsfuncs.c
string.c
strnatcmp.c
syslog.c
type.c
uniqid.c
url.c
url_scanner_ex.c
user_filters.c
uuencode.c
var.c
var_unserializer.c
versioning.c
avifinfo.c
        rc /nologo /fo F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.dll.res /d FILE_DESCRIPTION="\"PHP Script Interpreter\""  /d FILE_NAME="\"php8ts.dll\"" /d PRODUCT_NAME="\"PHP Script Interpreter\""  /IF:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS /d MC_INCLUDE="\"F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\wsyslog.rc\""  win32\build\template.rc
        ML64.exe /DBOOST_CONTEXT_EXPORT=EXPORT /nologo /c /Fo F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\Zend\jump_x86_64_ms_pe_masm.obj Zend\asm\jump_x86_64_ms_pe_masm.asm
 Assembling: Zend\asm\jump_x86_64_ms_pe_masm.asm
        ML64.exe /DBOOST_CONTEXT_EXPORT=EXPORT /nologo /c /Fo F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\Zend\make_x86_64_ms_pe_masm.obj Zend\asm\make_x86_64_ms_pe_masm.asm
 Assembling: Zend\asm\make_x86_64_ms_pe_masm.asm
   Creating library F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.lib and object F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.exp
   Creating library F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php_vld.lib and object F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php_vld.exp
EXT vld build complete
php_cli.c
php_cli_process_title.c
php_cli_server.c
php_http_parser.c
ps_title.c
   Creating library F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php.lib and object F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php.exp
SAPI sapi\cli build complete

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src

Done! output: F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php_vld.dll

]]>
https://tutorialspots.com/how-to-build-php-8-extension-on-windows-7269.html/feed 0
How to build PHP 8 on Windows https://tutorialspots.com/how-to-build-php-8-on-windows-7259.html https://tutorialspots.com/how-to-build-php-8-on-windows-7259.html#comments Sat, 24 Feb 2024 03:56:43 +0000 http://tutorialspots.com/?p=7259 Example: we build PHP 8.2 on Windows 11

Step 1: install Microsoft Visual Studio 2017

Step 2: create workspace folder

F:\php-sdk

Step 3: download PHP SDK binary tools

https://github.com/microsoft/php-sdk-binary-tools/archive/refs/heads/master.zip

Step 4: extract PHP SDK binary tools to workspace folder F:\php-sdk

php sdk binary tools

Step 5: download PHP source https://windows.php.net/download/

Example PHP 8.2 https://windows.php.net/downloads/releases/php-8.2.16-src.zip

Step 6: Run VS 2017 x64 Native Tools Command Prompt with Administrator Privileges

cd F:\php-sdk
F:
phpsdk-starter.bat -c vs16 -a x64
phpsdk_buildtree php-dev

Result:

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Windows\System32>cd F:\php-sdk

C:\Windows\System32>F:

F:\php-sdk>phpsdk-starter.bat -c vs16 -a x64
[vcvarsall.bat] Environment initialized for: 'x64'

PHP SDK 2.2.1-dev

OS architecture:    64-bit
Build architecture: 64-bit
Visual C++:         14.16.27050.0
PHP-SDK path:       F:\php-sdk

F:\php-sdk
$ phpsdk_buildtree php-dev

F:\php-sdk\php-dev\vs16\x64

Note:
PHP 7.1 use vc14
PHP 7.2 7.3 7.4 use vc15
PHP 8.x use vs16

Step 7: Extract PHP Source
F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src

Step 8: download dependencies

cd php*
phpsdk_deps -u

Result:

F:\php-sdk\php-dev\vs16\x64
$ cd php*

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ phpsdk_deps -u

Configuration: 8.2-vs16-x64-stable

Processing package apache-2.4.43-vs16-x64.zip
Processing package c-client-2007f-1-vs16-x64.zip
Processing package fbclient-3.0.6-nocrt-x64.zip
Processing package freetype-2.11.1-vs16-x64.zip
Processing package glib-2.53.3-1-vs16-x64.zip
Processing package ICU-71.1-vs16-x64.zip
Processing package libargon2-20190702-vs16-x64.zip
Processing package libavif-0.9.0-1-vs16-x64.zip
Processing package libbzip2-1.0.8-vs16-x64.zip
Processing package libcurl-7.85.0-vs16-x64.zip
Processing package libenchant2-2.2.8-vs16-x64.zip
Processing package libffi-3.3-4-vs16-x64.zip
Processing package libiconv-1.16-5-vs16-x64.zip
Processing package libintl-0.18.3-8-vs16-x64.zip
Processing package libjpeg-turbo-2.1.0-vs16-x64.zip
Processing package liblmdb-0.9.22-6-vs16-x64.zip
Processing package liblzma-5.2.5-vs16-x64.zip
Processing package libonig-6.9.8-vs16-x64.zip
Processing package libpng-1.6.34-8-vs16-x64.zip
Processing package libpq-11.4-1-vs16-x64.zip
Processing package libqdbm-1.8.78-vs16-x64.zip
Processing package libsasl-2.1.27-3-vs16-x64.zip
Processing package libsodium-1.0.18-vs16-x64.zip
Processing package libssh2-1.10.0-2-vs16-x64.zip
Processing package libtidy-5.6.0-2-vs16-x64.zip
Processing package libwebp-1.3.2-vs16-x64.zip
Processing package libxml2-2.10.3-vs16-x64.zip
Processing package libxpm-3.5.12-8-vs16-x64.zip
Processing package libxslt-1.1.37-vs16-x64.zip
Processing package libzip-1.7.1-1-vs16-x64.zip
Processing package mpir-3.0.0-vs16-x64.zip
Processing package net-snmp-5.7.3-3-vs16-x64.zip
Processing package nghttp2-1.49.0-vs16-x64.zip
Processing package openldap-2.4.47-1-vs16-x64.zip
Processing package openssl-3.0.13-vs16-x64.zip
Processing package sqlite3-3.39.2-vs16-x64.zip
Processing package wineditline-2.206-vs16-x64.zip
Processing package zlib-1.2.12-vs16-x64.zip
Updates performed successfully.
Old dependencies backed up into 'F:\php-sdk\php-dev\vs16\x64\deps.202402231618'.

Step 9: compile PHP

F:\php-sdk\phpsdk-vs16-x64.bat
buildconf
configure --disable-all --enable-cli
nmake

note: to disable thread safety in PHP use:

configure --disable-all --enable-cli --disable-zts

result:

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ F:\php-sdk\phpsdk-vs16-x64.bat
[vcvarsall.bat] Environment initialized for: 'x64'

PHP SDK 2.2.1-dev

OS architecture:    64-bit
Build architecture: 64-bit
Visual C++:         14.16.27050.0
PHP-SDK path:       F:\php-sdk

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ buildconf
Rebuilding configure.js
Now run 'configure --help'

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ configure --disable-all --enable-cli
PHP Version: 8.2.16

Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
  Detected compiler Visual C++ 2017
  Detected x64 compiler
Checking for link.exe ...  <in default path>
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
  Detected bison version 3.3.2
Checking for sed.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 1.1.1
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <in default path>
Checking for 7za.exe ...  <in default path>
Checking for mc.exe ...  C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64
Checking for mt.exe ...  C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64
Enabling multi process build

Build dir: F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS
PHP Core:  php8ts.dll and php8ts.lib
Checking for ML64.exe ...  <in default path>

Checking for wspiapi.h ...  <in default path>
Enabling IPv6 support
Enabling SAPI sapi\cli
Checking for library edit_a.lib;edit.lib ... <in deps path> \lib\edit_a.lib
Checking for editline/readline.h ...  <in deps path> \include
Enabling extension ext\date
Enabling extension ext\hash
Checking for KeccakHash.h ...  ext/hash/sha3/generic64lc
Checking for PMurHash.h ...  ext/hash/murmur
Checking for xxhash.h ...  ext/hash/xxhash
Enabling extension ext\json
Enabling extension ext\pcre
Enabling extension ext\random
Enabling extension ext\reflection
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
Generating main/config.w32.h
Generating phpize
Done.



Enabled extensions:
-----------------------
| Extension  | Mode   |
-----------------------
| date       | static |
| hash       | static |
| json       | static |
| pcre       | static |
| random     | static |
| reflection | static |
| spl        | static |
| standard   | static |
-----------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cli       |
-------------


-----------------------------------------
|                     |                 |
-----------------------------------------
| Build type          | Release         |
| Thread Safety       | Yes             |
| Compiler            | Visual C++ 2017 |
| Target Architecture | x64             |
| Host Architecture   | x64             |
| Optimization        | PGO disabled    |
| Native intrinsics   | SSE2            |
| Static analyzer     | disabled        |
-----------------------------------------


Type 'nmake' to build PHP

F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
$ nmake

Microsoft (R) Program Maintenance Utility Version 14.16.27050.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Recreating build dirs
        bison.exe --output=Zend/zend_ini_parser.c -v -d Zend/zend_ini_parser.y
        bison.exe --output=Zend/zend_language_parser.c -v -d Zend/zend_language_parser.y
        "re2c.exe"  --no-generation-date --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l
        "re2c.exe"  --no-generation-date --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l
        bison.exe --output=sapi/phpdbg/phpdbg_parser.c -v -d sapi/phpdbg/phpdbg_parser.y
        "re2c.exe"  --no-generation-date -cbdFo sapi/phpdbg/phpdbg_lexer.c sapi/phpdbg/phpdbg_lexer.l
        type ext\pcre\php_pcre.def > F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.dll.def
        "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\mc.exe" -h win32\ -r F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\ -x F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\ win32\build\wsyslog.mc
MC: Compiling win32\build\wsyslog.mc
php_cli.c
php_cli_process_title.c
php_cli_server.c
php_http_parser.c
ps_title.c
zend.c
zend_API.c
zend_alloc.c
zend_ast.c
zend_atomic.c
zend_attributes.c
zend_builtin_functions.c
zend_closures.c
zend_compile.c
zend_constants.c
zend_cpuinfo.c
zend_default_classes.c
zend_enum.c
zend_exceptions.c
zend_execute.c
zend_execute_API.c
zend_extensions.c
zend_fibers.c
zend_float.c
zend_gc.c
zend_generators.c
zend_hash.c
zend_highlight.c
zend_inheritance.c
zend_ini.c
zend_ini_parser.c
zend_ini_scanner.c
zend_interfaces.c
zend_iterators.c
zend_language_parser.c
zend_language_scanner.c
zend_list.c
zend_llist.c
zend_multibyte.c
zend_object_handlers.c
zend_objects.c
zend_objects_API.c
zend_observer.c
zend_opcode.c
zend_operators.c
zend_ptr_stack.c
zend_smart_str.c
zend_sort.c
zend_stack.c
zend_stream.c
zend_string.c
zend_strtod.c
zend_system_id.c
zend_variables.c
zend_virtual_cwd.c
zend_vm_opcodes.c
zend_weakrefs.c
block_pass.c
compact_literals.c
compact_vars.c
dce.c
dfa_pass.c
escape_analysis.c
nop_removal.c
optimize_func_calls.c
optimize_temp_vars_5.c
pass1.c
pass3.c
sccp.c
scdf.c
zend_call_graph.c
zend_cfg.c
zend_dfg.c
zend_dump.c
zend_func_info.c
zend_inference.c
zend_optimizer.c
zend_ssa.c
SAPI.c
fopen_wrappers.c
getopt.c
internal_functions.c
main.c
network.c
output.c
php_content_types.c
php_ini.c
php_ini_builder.c
php_odbc_utils.c
php_open_temporary_file.c
php_scandir.c
php_syslog.c
php_ticks.c
php_variables.c
reentrancy.c
rfc1867.c
safe_bcmp.c
snprintf.c
spprintf.c
strlcat.c
strlcpy.c
cast.c
filter.c
glob_wrapper.c
memory.c
mmap.c
plain_wrapper.c
streams.c
transports.c
userspace.c
xp_socket.c
codepage.c
console.c
dllmain.c
fnmatch.c
ftok.c
getrusage.c
glob.c
globals.c
inet.c
ioutil.c
nice.c
readdir.c
registry.c
select.c
sendmail.c
signal.c
sockets.c
time.c
winutil.c
wsyslog.c
TSRM.c
tsrm_win32.c
php_date.c
astro.c
dow.c
interval.c
parse_date.c
parse_iso_intervals.c
parse_posix.c
parse_tz.c
timelib.c
tm2unixtime.c
unixtime2tm.c
hash.c
hash_adler32.c
hash_crc32.c
hash_fnv.c
hash_gost.c
hash_haval.c
hash_joaat.c
hash_md.c
hash_murmur.c
hash_ripemd.c
hash_sha.c
hash_sha3.c
hash_snefru.c
hash_tiger.c
hash_whirlpool.c
hash_xxhash.c
KeccakP-1600-opt64.c
KeccakHash.c
KeccakSponge.c
PMurHash.c
PMurHash128.c
ext\hash\murmur\PMurHash128.c(485): warning C4028: formal parameter 3 different from declaration
json.c
        bison.exe --defines -l ext/json/json_parser.y -o ext/json/json_parser.tab.c
        "re2c.exe"  -t ext/json/php_json_scanner_defs.h --no-generation-date -bci -o ext/json/json_scanner.c ext/json/json_scanner.re
json_encoder.c
json_parser.tab.c
json_scanner.c
php_pcre.c
pcre2_auto_possess.c
pcre2_chartables.c
pcre2_compile.c
pcre2_config.c
pcre2_context.c
pcre2_convert.c
pcre2_dfa_match.c
pcre2_error.c
pcre2_extuni.c
pcre2_find_bracket.c
pcre2_jit_compile.c
pcre2_maketables.c
pcre2_match.c
pcre2_match_data.c
pcre2_newline.c
pcre2_ord2utf.c
pcre2_pattern_info.c
pcre2_script_run.c
pcre2_serialize.c
pcre2_string_utils.c
pcre2_study.c
pcre2_substitute.c
pcre2_substring.c
pcre2_tables.c
pcre2_ucd.c
pcre2_valid_utf.c
pcre2_xclass.c
random.c
engine_combinedlcg.c
engine_mt19937.c
engine_pcgoneseq128xslrr64.c
engine_secure.c
engine_user.c
engine_xoshiro256starstar.c
randomizer.c
php_reflection.c
php_spl.c
spl_array.c
spl_directory.c
spl_dllist.c
spl_exceptions.c
spl_fixedarray.c
spl_functions.c
spl_heap.c
spl_iterators.c
spl_observer.c
        cd F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
        "re2c.exe"  --no-generation-date -b -o ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.re
        cd F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src
        "re2c.exe"  --no-generation-date -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re
array.c
assert.c
base64.c
basic_functions.c
browscap.c
crc32.c
crc32_x86.c
credits.c
crypt.c
crypt_blowfish.c
crypt_freesec.c
crypt_sha256.c
crypt_sha512.c
css.c
datetime.c
dir.c
dl.c
dns.c
dns_win32.c
exec.c
file.c
filestat.c
filters.c
flock_compat.c
formatted_print.c
fsock.c
ftok.c
ftp_fopen_wrapper.c
head.c
hrtime.c
html.c
http.c
http_fopen_wrapper.c
image.c
incomplete_class.c
info.c
iptc.c
levenshtein.c
link.c
mail.c
math.c
md5.c
metaphone.c
microtime.c
net.c
pack.c
pageinfo.c
password.c
php_crypt_r.c
php_fopen_wrapper.c
proc_open.c
quot_print.c
scanf.c
sha1.c
soundex.c
streamsfuncs.c
string.c
strnatcmp.c
syslog.c
type.c
uniqid.c
url.c
url_scanner_ex.c
user_filters.c
uuencode.c
var.c
var_unserializer.c
versioning.c
avifinfo.c
        rc /nologo /fo F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.dll.res /d FILE_DESCRIPTION="\"PHP Script Interpreter\""  /d FILE_NAME="\"php8ts.dll\"" /d PRODUCT_NAME="\"PHP Script Interpreter\""  /IF:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS /d MC_INCLUDE="\"F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\wsyslog.rc\""  win32\build\template.rc
        ML64.exe /DBOOST_CONTEXT_EXPORT=EXPORT /nologo /c /Fo F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\Zend\jump_x86_64_ms_pe_masm.obj Zend\asm\jump_x86_64_ms_pe_masm.asm
 Assembling: Zend\asm\jump_x86_64_ms_pe_masm.asm
        ML64.exe /DBOOST_CONTEXT_EXPORT=EXPORT /nologo /c /Fo F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\Zend\make_x86_64_ms_pe_masm.obj Zend\asm\make_x86_64_ms_pe_masm.asm
 Assembling: Zend\asm\make_x86_64_ms_pe_masm.asm
   Creating library F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.lib and object F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php8ts.exp
   Creating library F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php.lib and object F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS\php.exp
SAPI sapi\cli build complete

done! output: F:\php-sdk\php-dev\vs16\x64\php-8.2.16-src\x64\Release_TS

]]>
https://tutorialspots.com/how-to-build-php-8-on-windows-7259.html/feed 0
Windows Cygwin: install mediainfo https://tutorialspots.com/windows-cygwin-install-mediainfo-7257.html https://tutorialspots.com/windows-cygwin-install-mediainfo-7257.html#comments Wed, 21 Feb 2024 14:02:31 +0000 http://tutorialspots.com/?p=7257 MediaInfo is a free, cross-platform and open-source program that displays technical information about media files, as well as tag information for many audio and video files. It is used in many programs such as XMedia Recode, MediaCoder, eMule, and K-Lite Codec Pack.

Read more: https://en.wikipedia.org/wiki/MediaInfo

Step 1: install mediainfo

apt-cyg install mediainfo

Result:

$ apt-cyg install mediainfo
Installing mediainfo
--2024-02-21 20:52:16--  http://cygwin.mirror.constant.com//x86_64/release/media
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.8
HTTP request sent, awaiting response... 200 OK
Length: 22260 (22K) [application/octet-stream]
Saving to: ‘mediainfo-17.12-1.tar.xz’

mediainfo-17.12-1.tar.xz                             100%[======================

2024-02-21 20:52:17 (69.3 KB/s) - ‘mediainfo-17.12-1.tar.xz’ saved [22260/22260]

mediainfo-17.12-1.tar.xz: OK
Unpacking...
Package mediainfo installed

Step 2: install dependencies

$ apt-cyg install libgcc1
Package libgcc1 is already installed, skipping

$ apt-cyg install libstdc++6
Package libstdc++6 is already installed, skipping

$ apt-cyg install libmediainfo0
Installing libmediainfo0
--2024-02-21 20:54:11--  http://cygwin.mirror.constant.com//x86_64/release/libmediainfo/libmediainfo0/libmediainfo0-17.12-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1861984 (1.8M) [application/octet-stream]
Saving to: ‘libmediainfo0-17.12-1.tar.xz’

libmediainfo0-17.12 100%[===================>]   1.78M   303KB/s    in 6.5s

2024-02-21 20:54:19 (281 KB/s) - ‘libmediainfo0-17.12-1.tar.xz’ saved [1861984/1861984]

libmediainfo0-17.12-1.tar.xz: OK
Package libmediainfo0 installed

$ apt-cyg install libzen0
Installing libzen0
--2024-02-21 20:54:27--  http://cygwin.mirror.constant.com//x86_64/release/libzen/libzen0/libzen0-0.4.37-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73128 (71K) [application/octet-stream]
Saving to: ‘libzen0-0.4.37-1.tar.xz’

libzen0-0.4.37-1.ta 100%[===================>]  71.41K   106KB/s    in 0.7s

2024-02-21 20:54:28 (106 KB/s) - ‘libzen0-0.4.37-1.tar.xz’ saved [73128/73128]

libzen0-0.4.37-1.tar.xz: OK
Unpacking...
Package libzen0 installed

$ apt-cyg install libmetalink
Installing libmetalink
Unable to locate package libmetalink

$ apt-cyg install zlib0
Package zlib0 is already installed, skipping

$ apt-cyg install libtinyxml2_6
Installing libtinyxml2_6
--2024-02-21 20:56:29--  http://cygwin.mirror.constant.com//x86_64/release/tinyxml2/libtinyxml2_6/libtinyxml2_6-6.0.0-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19596 (19K) [application/octet-stream]
Saving to: ‘libtinyxml2_6-6.0.0-1.tar.xz’

libtinyxml2_6-6.0.0 100%[===================>]  19.14K  67.2KB/s    in 0.3s

2024-02-21 20:56:30 (67.2 KB/s) - ‘libtinyxml2_6-6.0.0-1.tar.xz’ saved [19596/19596]

libtinyxml2_6-6.0.0-1.tar.xz: OK
Unpacking...
Package libtinyxml2_6 installed

$ apt-cyg install libcurl4
Package libcurl4 is already installed, skipping

Done!, check:

$ mediainfo
Usage: "mediainfo [-Options...] FileName1 [Filename2...]"
"mediainfo --Help" for displaying more information
]]>
https://tutorialspots.com/windows-cygwin-install-mediainfo-7257.html/feed 0
Windows Cygwin: how to install Poppler https://tutorialspots.com/windows-cygwin-how-to-install-poppler-7254.html https://tutorialspots.com/windows-cygwin-how-to-install-poppler-7254.html#comments Sun, 18 Feb 2024 05:35:45 +0000 http://tutorialspots.com/?p=7254 Poppler is a free software utility library for rendering Portable Document Format (PDF) documents. Its development is supported by freedesktop.org.

Website: https://poppler.freedesktop.org/

Read more: https://en.wikipedia.org/wiki/Poppler_(software)

Step 1: install poppler

$ apt-cyg install poppler
Installing poppler
--2024-02-18 12:10:40--  http://cygwin.mirror.constant.com//x86_64/release/poppler/poppler-21.01.0-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 728484 (711K) [application/octet-stream]
Saving to: ‘poppler-21.01.0-1.tar.xz’

poppler-21.01.0-1.t 100%[===================>] 711.41K   130KB/s    in 5.4s

2024-02-18 12:10:46 (131 KB/s) - ‘poppler-21.01.0-1.tar.xz’ saved [728484/728484]

poppler-21.01.0-1.tar.xz: OK
Unpacking...
Package poppler installed

Step 2: install dependencies

$ apt-cyg install libcairo2
$ apt-cyg install libpoppler106
$ apt-cyg install libfreetype6
$ apt-cyg install liblcms2_2
$ apt-cyg install libstdc++6
$ apt-cyg install libcurl4
$ apt-cyg install libfontconfig1
$ apt-cyg install libgcc1
$ apt-cyg install libjpeg8
$ apt-cyg install libnspr4
$ apt-cyg install libnss3
$ apt-cyg install libopenjp2_7
$ apt-cyg install libpng16
$ apt-cyg install libtiff6
$ apt-cyg install poppler-data
$ apt-cyg install zlib0

Result:

$ apt-cyg install libcairo2
Installing libcairo2
--2024-02-18 12:17:11--  http://cygwin.mirror.constant.com//x86_64/release/cairo/libcairo2/libcairo2-1.17.4-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 618336 (604K) [application/octet-stream]
Saving to: ‘libcairo2-1.17.4-1.tar.xz’

libcairo2-1.17.4-1. 100%[===================>] 603.84K   165KB/s    in 4.0s

2024-02-18 12:17:16 (151 KB/s) - ‘libcairo2-1.17.4-1.tar.xz’ saved [618336/618336]

libcairo2-1.17.4-1.tar.xz: OK
Unpacking...
Package libcairo2 installed

 
$ apt-cyg install libpoppler106
Installing libpoppler106
--2024-02-18 12:17:44--  http://cygwin.mirror.constant.com//x86_64/release/poppler/libpoppler106/libpoppler106-21.01.0-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 803572 (785K) [application/octet-stream]
Saving to: ‘libpoppler106-21.01.0-1.tar.xz’

libpoppler106-21.01 100%[===================>] 784.74K   228KB/s    in 3.4s

2024-02-18 12:17:48 (228 KB/s) - ‘libpoppler106-21.01.0-1.tar.xz’ saved [803572/803572]

libpoppler106-21.01.0-1.tar.xz: OK
Unpacking...
Package libpoppler106 installed

 
$ apt-cyg install libfreetype6
Installing libfreetype6
--2024-02-18 12:18:00--  http://cygwin.mirror.constant.com//x86_64/release/freetype2/libfreetype6/libfreetype6-2.13.1-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 468616 (458K) [application/octet-stream]
Saving to: ‘libfreetype6-2.13.1-1.tar.xz’

libfreetype6-2.13.1 100%[===================>] 457.63K  45.1KB/s    in 8.5s

2024-02-18 12:18:09 (53.9 KB/s) - ‘libfreetype6-2.13.1-1.tar.xz’ saved [468616/468616]

libfreetype6-2.13.1-1.tar.xz: OK
Unpacking...
Package libfreetype6 installed

 
$ apt-cyg install liblcms2_2
Installing liblcms2_2
--2024-02-18 12:18:19--  http://cygwin.mirror.constant.com//x86_64/release/lcms2/liblcms2_2/liblcms2_2-2.15-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 130728 (128K) [application/octet-stream]
Saving to: ‘liblcms2_2-2.15-1.tar.xz’

liblcms2_2-2.15-1.t 100%[===================>] 127.66K   139KB/s    in 0.9s

2024-02-18 12:18:21 (139 KB/s) - ‘liblcms2_2-2.15-1.tar.xz’ saved [130728/130728]

liblcms2_2-2.15-1.tar.xz: OK
Unpacking...
Package liblcms2_2 installed

 
$ apt-cyg install libstdc++6
Package libstdc++6 is already installed, skipping

$ apt-cyg install libcurl4
Package libcurl4 is already installed, skipping

 
$ apt-cyg install libfontconfig1
Installing libfontconfig1
--2024-02-18 12:24:10--  http://cygwin.mirror.constant.com//x86_64/release/fontconfig/libfontconfig1/libfontconfig1-2.13.1-2.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 106368 (104K) [application/octet-stream]
Saving to: ‘libfontconfig1-2.13.1-2.tar.xz’

libfontconfig1-2.13 100%[===================>] 103.88K   127KB/s    in 0.8s

2024-02-18 12:24:12 (127 KB/s) - ‘libfontconfig1-2.13.1-2.tar.xz’ saved [106368/106368]

libfontconfig1-2.13.1-2.tar.xz: OK
Unpacking...
Fontconfig error: Cannot load default config file
Package libfontconfig1 installed

 
$ apt-cyg install libgcc1
Package libgcc1 is already installed, skipping

 
$ apt-cyg install libjpeg8
Package libjpeg8 is already installed, skipping

 
$ apt-cyg install libnspr4
Installing libnspr4
--2024-02-18 12:24:38--  http://cygwin.mirror.constant.com//x86_64/release/nspr/libnspr4/libnspr4-4.21-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 106216 (104K) [application/octet-stream]
Saving to: ‘libnspr4-4.21-1.tar.xz’

libnspr4-4.21-1.tar 100%[===================>] 103.73K   125KB/s    in 0.8s

2024-02-18 12:24:40 (125 KB/s) - ‘libnspr4-4.21-1.tar.xz’ saved [106216/106216]

libnspr4-4.21-1.tar.xz: OK
Unpacking...
Package libnspr4 installed

 
$ apt-cyg install libnss3
Installing libnss3
--2024-02-18 12:24:47--  http://cygwin.mirror.constant.com//x86_64/release/nss/libnss3/libnss3-3.45-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1027240 (1003K) [application/octet-stream]
Saving to: ‘libnss3-3.45-1.tar.xz’

libnss3-3.45-1.tar. 100%[===================>]   1003K  56.6KB/s    in 15s

2024-02-18 12:25:02 (66.3 KB/s) - ‘libnss3-3.45-1.tar.xz’ saved [1027240/1027240]

libnss3-3.45-1.tar.xz: OK
Unpacking...
Running /etc/postinstall/nss.sh
Package libnss3 installed

 
$ apt-cyg install libopenjp2_7
Package libopenjp2_7 is already installed, skipping

 
$ apt-cyg install libpng16
Package libpng16 is already installed, skipping

 
$ apt-cyg install libtiff6
Package libtiff6 is already installed, skipping

 
$ apt-cyg install poppler-data
Installing poppler-data
--2024-02-18 12:25:39--  http://cygwin.mirror.constant.com//noarch/release/poppler-data/poppler-data-0.4.10-1.tar.xz
Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83
Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1600620 (1.5M) [application/octet-stream]
Saving to: ‘poppler-data-0.4.10-1.tar.xz’

poppler-data-0.4.10 100%[===================>]   1.53M   165KB/s    in 9.7s

2024-02-18 12:25:49 (161 KB/s) - ‘poppler-data-0.4.10-1.tar.xz’ saved [1600620/1600620]

poppler-data-0.4.10-1.tar.xz: OK
Unpacking...
Package poppler-data installed

 
$ apt-cyg install zlib0
Package zlib0 is already installed, skipping

Done! check

$ pdfimages
pdfimages version 21.01.0
Copyright 2005-2021 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdfimages [options] <PDF-file> <image-root>
  -f <int>       : first page to convert
  -l <int>       : last page to convert
  -png           : change the default output format to PNG
  -tiff          : change the default output format to TIFF
  -j             : write JPEG images as JPEG files
  -jp2           : write JPEG2000 images as JP2 files
  -jbig2         : write JBIG2 images as JBIG2 files
  -ccitt         : write CCITT images as CCITT files
  -all           : equivalent to -png -tiff -j -jp2 -jbig2 -ccitt
  -list          : print list of images instead of saving
  -opw <string>  : owner password (for encrypted files)
  -upw <string>  : user password (for encrypted files)
  -p             : include page numbers in output file names
  -q             : don't print any messages or errors
  -v             : print copyright and version info
  -h             : print usage information
  -help          : print usage information
  --help         : print usage information
  -?             : print usage information
]]>
https://tutorialspots.com/windows-cygwin-how-to-install-poppler-7254.html/feed 0