I have an application that depends on many libraries (not all of us). Most of these libraries are installed through the package manager. For those that are not, I recompiled them, but I still get the same libpng incompatibility error.
libpng warning: Application was compiled with png.h from libpng-1.2.44 libpng warning: Application is running with png.c from libpng-1.4.3
This is an error because the received buffer is empty. How do I know which library is associated with the new and which library is associated with the old?
ldd <executable-name> ... libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f5a0660f000) ...
Running locate png.h gives me a couple of system level files
/usr/include/png.h /usr/include/libpng12/png.h
All of them are 1.2.44.
I am running Ubuntu 11.04 x86-64.
UPDATE. It turns out that OpenCV comes with its own version of libpng, which is 1.4.3.
Dat chu
source share