why/howto install and configure libjpeg-turbo ?!

by iman

hi.

why use it?

  • 2-4x as fast as libjpeg on x86, x86-64, and ARM platforms
  • 32-bit and 64-bit binaries provided for popular Linux distributions, Windows, OS X, and iOS

i used it for my zoneminder servers and decreased at least 40% of system load … .

howto :

1. download package : http://sourceforge.net/projects/libjpeg-turbo/files/
2. dpkg -i libjpeg-turbo_1.1.1_amd64.deb
3. ln -s /opt/libjpeg-turbo/lib/libjpeg.a /usr/lib/libjpeg.a
ln -s /opt/libjpeg-turbo/include/jconfig.h /usr/include/jconfig.h
ln -s /opt/libjpeg-turbo/include/jerror.h /usr/include/jerror.h
ln -s /opt/libjpeg-turbo/include/jmorecfg.h /usr/include/jmorecfg.h
ln -s /opt/libjpeg-turbo/include/jpeglib.h /usr/include/jpeglib.h
4. Configure Lib Paths:
echo “/opt/libjpeg-turbo/lib” > /etc/ld.so.conf.d/libjpeg-turbo.conf
echo “/usr/local/lib” > /etc/ld.so.conf.d/ffmpeg.conf
echo “LD_LIBRARY_PATH=/usr/local/lib:/opt/libjpeg-turbo/lib:$LD_LIBRARY_PATH” >> /etc/bash.bashrc
echo “export LD_LIBRARY_PATH” >> /etc/bash.bashrc
5.  ldconfig