[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Linking against freetype in Linux
From: |
Lawrence D'Oliveiro |
Subject: |
Re: [ft] Linking against freetype in Linux |
Date: |
Fri, 28 Jun 2019 07:18:53 +1200 |
On Thu, 27 Jun 2019 16:36:26 +0100, Kris wrote:
> On 26/06/2019 22:59, Lawrence D'Oliveiro wrote:
>>
>> Just for fun, would you like to try a simple Python script?
>>
>> import ctypes as ct
>> ft = ct.cdll.LoadLibrary("libfreetype.so.6")
>> hasattr(ft, "FT_Init_FreeType")
>>
>> prints out
>>
>> True
>>
>> on my system.
>
> Doesn't print anything on mine.
Sorry, make that last line
print(hasattr(ft, "FT_Init_FreeType"))
That’s what happens when you only test things in Jupyter notebooks. ;)
> These lines DON'T report "ENOENT (No such file or directory)", so
> with that plus the results of the Python script, suggest that the
> linker is opening the libfreetype.so file OK, but then failing to
> find the symbol within it!
Except the ENOENT meant it wasn’t opening the library file OK, because
the path was wrong.
- [ft] Linking against freetype in Linux, Kris, 2019/06/26
- Re: [ft] Linking against freetype in Linux, Lawrence D'Oliveiro, 2019/06/26
- Re: [ft] Linking against freetype in Linux, armin, 2019/06/26
- Re: [ft] Linking against freetype in Linux, Kris, 2019/06/26
- Re: [ft] Linking against freetype in Linux, Nelson H. F. Beebe, 2019/06/26
- Re: [ft] Linking against freetype in Linux, Kris, 2019/06/26
- Re: [ft] Linking against freetype in Linux, Lawrence D'Oliveiro, 2019/06/26
- Re: [ft] Linking against freetype in Linux, Kris, 2019/06/27
- Re: [ft] Linking against freetype in Linux,
Lawrence D'Oliveiro <=
- Re: [ft] Linking against freetype in Linux, Kris, 2019/06/28