tjko / jpeginfo

jpeginfo - prints information and tests integrity of JPEG/JFIF files
http://www.iki.fi/tjko/projects.html
GNU General Public License v3.0
139 stars 17 forks source link

[Solved] Install on Synology DS212 (arm processor) #2

Closed luclaurent closed 9 years ago

luclaurent commented 9 years ago

I tried to compile jpeginfo on Synology server (DS212 with arm processor). I can compile it normally but I can't execute it. I have this error: Wrong JPEG library version: library is 80, caller expects 62

ldd says:

libjpeg.so.62 => /lib/libjpeg.so.62 (0x40031000) libc.so.6 => /lib/libc.so.6 (0x40085000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x401c7000) /lib/ld-linux.so.3 (0x40000000)

This is really weird because the arm package for debian (https://packages.debian.org/wheezy/jpeginfo) works fine.

szepeviktor commented 9 years ago

What is your vesion of libjpeg-dev?

szepeviktor commented 9 years ago

https://github.com/tjko/jpeginfo/blob/master/README#L5-L7

luclaurent commented 9 years ago

I don't really know but on my /lib directory, I have:

lrwxrwxrwx 1 root root 16 2014-12-29 16:21 libjpeg.so -> libjpeg.so.8.0.2 lrwxrwxrwx 1 root root 16 2014-12-29 16:21 libjpeg.so.62 -> libjpeg.so.8.0.2 lrwxrwxrwx 1 root root 16 2014-12-29 16:21 libjpeg.so.8 -> libjpeg.so.8.0.2 -rwxr-xr-x 1 root root 212812 2014-12-03 01:42 libjpeg.so.8.0.2 lrwxrwxrwx 1 root root 21 2014-12-29 16:21 libturbojpeg.so -> libturbojpeg.so.0.0.0 lrwxrwxrwx 1 root root 21 2014-12-29 16:21 libturbojpeg.so.0 -> libturbojpeg.so.0.0.0 -rwxr-xr-x 1 root root 232440 2014-12-03 01:42 libturbojpeg.so.0.0.0

szepeviktor commented 9 years ago

libjpeg.so.62 -> libjpeg.so.8.0.2 This could be the problem. Please change the symlink to 6.2.

szepeviktor commented 9 years ago

...or try to remove it. Not by hand! By your package manager.

luclaurent commented 9 years ago

I didn't have any package manager. I remove the libjpeg.so.62 link but jpeginfo says: ./jpeginfo: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory. But I created new symlink using libjpeg.so.62 available in an other directory (/opt/lib/libjpeg.so.62). Now, jpeginfo works fine.

I am very suprised because with the package for debian version 1.6.0-5, it works fine...

Thank you for your help.

szepeviktor commented 9 years ago

Please use only one version on libjpeg.

szepeviktor commented 9 years ago

Close this issue!