View Single Post
Old 10-02-2024, 05:19 PM   #9
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,341
Karma: 105899727
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
I can't remember ever doing python.

This is obviously doing the wrong check.
Code:
def check_for_recent_freetype():
    import ctypes
    try:
        f = ctypes.CDLL('libfreetype.so')
    except OSError:
        raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.')
    try:
        f.FT_Get_Color_Glyph_Paint
    except AttributeError:
        raise SystemExit('Your system has too old a version of the FreeType library.'
                         ' freetype >= 2.11 is needed for the FT_Get_Color_Glyph_Paint function which is required by Qt WebEngine')
I downloaded the "linux-installler.sh" and simply commented it all out (a # at the start of each line just in that listed block ("def check_for_recent_freetype():") after the "import ctypes" and then saved it and ran it and it worked.

I've no idea what it should be checking for (it's not 'libfreetype6.so'), or if the checking code is correct.
Quoth is offline   Reply With Quote