Purpose:
Introduce how to solve the issue of freetype error when use lcd_mkfont to make font library on CentOS 6.
Scope:
CentOS 6
Target Audience:
Advantechers technician
Advantech lcdkit users
Contents:
When use lcd_mkfont (LCDKit) to creat font library on CentOS 6 (CentOS 6.6), it shows errors as the following. CentOS 7 doesn't have this issue.
This issue is related to freetype built in CentOS 6.6 (v2.3.11, it is an older version and cannot support source-han-sans font files), and can be resolved by update freetype to a newer version.
Because CentOS 6.6 cannot use yum install to install/update packages on-line now, you need to update it manually.
1. Download source code from the following link (the latest version is 2.11.0)
https://download.savannah.gnu.org/releases/freetype/
2. Unzip and install
# tar zxvf freetype-2.11.0.tar.gz
# cd freetype-2.11.0
# ./configure
# make install
3. Update the soft link of libfreetype
# cp /home/freetype-2.11.0/objs/.libs/libfreetype.so.6.18.0 /usr/lib64/
# cd /usr/lib64/
# rm -f libfreetype.so
# ln -s libfreetype.so.6.18.0 libfreetype.so
# rm -f libfreetype.so.6
# ln -s libfreetype.so.6.18.0 libfreetype.so.6
Now you can use lcd_mkfont to create font library normally.
Comments
0 comments
Please sign in to leave a comment.