Closed BenWiederhake closed 7 years ago
Dynamically linked libraries need to be in the linker's "path". So, you need to run it like this:
LD_LIBRARY_PATH=./ ./flif
Or, copy the flif library to one of the standard paths, such as /usr/lib/
.
Oh, I had missed your LD_PRELOAD
option. It does work for me, on Ubuntu 16.04.
Does LD_LIBRARY_PATH
work for you?
It does, thanks! Would it make sense to open a PR that touches up the text to mention LD_LIBRARY_PATH
?
@BenWiederhake Yeah :+1:
Note that the linking to a dynamic library is a new thing. Previously we were statically linking the flif
executable.
Great :+1:
I want only the
flif
executable. I followed the build instructions in theREADME.md
, which boiled down to typingSo in short:
libpng-dev
) installed; but that would have given a different error anyway.Could it be that gcc somehow ignores the
-shared
option? For reference, I'm running this:What else could I try?