mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use the same soname for the freetype library as webengine uses
This commit is contained in:
parent
8fbb9b254b
commit
ee88003c01
@ -801,8 +801,9 @@ def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
|
|||||||
|
|
||||||
def check_for_recent_freetype():
|
def check_for_recent_freetype():
|
||||||
import ctypes
|
import ctypes
|
||||||
|
f = None
|
||||||
try:
|
try:
|
||||||
f = ctypes.CDLL('libfreetype.so')
|
f = ctypes.CDLL('libfreetype.so.6')
|
||||||
except OSError:
|
except OSError:
|
||||||
raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.')
|
raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.')
|
||||||
try:
|
try:
|
||||||
|
@ -850,8 +850,9 @@ def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
|
|||||||
|
|
||||||
def check_for_recent_freetype():
|
def check_for_recent_freetype():
|
||||||
import ctypes
|
import ctypes
|
||||||
|
f = None
|
||||||
try:
|
try:
|
||||||
f = ctypes.CDLL('libfreetype.so')
|
f = ctypes.CDLL('libfreetype.so.6')
|
||||||
except OSError:
|
except OSError:
|
||||||
raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.')
|
raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.')
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user