freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a static/standalone binary for ft-demos


From: Werner LEMBERG
Subject: Re: Building a static/standalone binary for ft-demos
Date: Wed, 31 May 2023 06:23:32 +0000 (UTC)

> [...] Doing
>
> `$ ldd freetype-demos/bin/.libs/ftbench`
>
> Reports:
>
> `CANNOT LINK EXECUTABLE "linker64": library "libpng16.so.16" not
> found: needed by main executable`
>
> From what I understand it is because the libpng library is
> dynamically linked but isn't available in the environment.
>
> I want to know if there is any way to build these executables
> statically so that they can work in a standalone manner and not be
> dependent on the environment.

I don't know this environment, but I guess the 'hard way' works:
Compile 'libpng' as a static library and make sure that
`libpng16.so.16` isn't found during compilation; this should enforce
the compiler to take the static library instead.


    Werner



reply via email to

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