Technology Sharing

ubuntu22.04 compile freetype dynamic library

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

#--------------------------------------------------------------------
# ubuntu22.04 compile freetypeDynamic Library
#--------------------------------------------------------------------
Since I need to call some special fonts in a project, I need to use freetype, so I download the source code
Compile toshared library and install it. I'm recording this for future reference.

Execute the following script as root throughout the process:

cd /opt/download ##Create the directory if it doesn't exist
wget https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.13.2.tar.gz
tar -zxvf freetype-2.13.2.tar.gz -C /opt
cd /opt/freetype-2.13.2
./configure
make -j$(nproc)
make install