freetype
[Top][All Lists]
Advanced

[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: Thu, 27 Jun 2019 09:59:39 +1200

On Wed, 26 Jun 2019 22:28:19 +0100, Kris wrote:

> 16892 stat("/usr/lib/gcc/x86_64-linux-gnu/8/libfreetype.so", 
> 0x7ffeecb07830) = -1 ENOENT (No such file or directory)

Why is that "/8/” in the path? That’s not where it is on my Debian
Unstable system:

ldo@theon:~> ls -l /usr/lib/x86_64-linux-gnu/libfreetype.* 
-rw-r--r-- 1 root root 1055516 Nov 22 2018 
/usr/lib/x86_64-linux-gnu/libfreetype.a
lrwxrwxrwx 1 root root      21 Nov 22 2018 
/usr/lib/x86_64-linux-gnu/libfreetype.so -> libfreetype.so.6.16.1
lrwxrwxrwx 1 root root      21 Nov 22 2018 
/usr/lib/x86_64-linux-gnu/libfreetype.so.6 -> libfreetype.so.6.16.1
-rw-r--r-- 1 root root  763816 Nov 22 2018 
/usr/lib/x86_64-linux-gnu/libfreetype.so.6.16.1

The unversioned symlink (and .a file) comes from the -dev package, while
the actual versioned library comes from the runtime package.

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]