knik0 / faac

Freeware Advanced Audio Coder faac mirror
https://sourceforge.net/projects/faac/
Other
179 stars 60 forks source link

Reporting wrong libfaac version #43

Open ronfischler opened 3 years ago

ronfischler commented 3 years ago

Running Ubuntu 18.04 LTS. Following the instructions in the INSTALL text file, faac was built and then installed in /usr/local/bin. Running faac then results in the following error: main.c(507): wrong libfaac version

Note: the version using apt, 1.29, is not installed, but maybe there is a conflict with something else?

fabiangreffrath commented 3 years ago

What does which faac say? And what does ldd /path/to/faac say with the path to the faac binary that which faac reported?

ronfischler commented 3 years ago

$ which faac /usr/local/bin/faac $ ldd /usr/local/bin/faac linux-vdso.so.1 (0x00007fff3695a000) libfaac.so.0 => /usr/lib/x86_64-linux-gnu/libfaac.so.0 (0x00007fd564411000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd564020000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd563c82000) /lib64/ld-linux-x86-64.so.2 (0x00007fd56482d000)

fabiangreffrath commented 3 years ago

libfaac.so.0 => /usr/lib/x86_64-linux-gnu/libfaac.so.0 (0x00007fd564411000)

Please try to move that out of the way.

ronfischler commented 3 years ago

OK, I moved libfaac.so.0 out of the way, and now I get this:

$ faac faac: error while loading shared libraries: libfaac.so.0: cannot open shared object file: No such file or directory

$ which faac /usr/local/bin/faac

$ ldd /usr/local/bin/faac linux-vdso.so.1 (0x00007ffcac9de000) libfaac.so.0 => not found libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3e962cd000) /lib64/ld-linux-x86-64.so.2 (0x00007f3e968cb000)

Note: I tried running "sudo make install" again but that does not appear to install a new libfaac library, only the faac executable.

Edit: I went into the libfaac dir, did a "sudo make install" in there for libfaac, then I needed to run ldconfig. Now it comes up running! I don't think installing libfaac is being done when "make install" is done for the faac executable.

fabiangreffrath commented 3 years ago

So, is this still an issue?

artenax commented 1 year ago

You can compile in static:

./bootstrap
./configure --prefix=/usr/local --enable-silent-rules --disable-drm --enable-static --disable-shared
make
sudo make install