Ok, finally we managed to solve the problem.
Problem was that libgdiplus
could not find the proper version of libjpeg.so
. The newest version of libjpeg.so
provided with libjpeg-turbo
was 62 while the required version is 90. Finally we used the newest version of libjpeg
available at http://www.ijg.org/.
If you encounter similar problem you should first install proper (>=90) version of libjpeg.so
then copy it to /usr/lib64/
and then recompile libgdiplus
. That should fix it.