Cross compiling libjpeg-turbo targeting ARM for software jpeg compression

In a quest to get faster software jpeg compression on ARM I cross compiled libjpeg-turbo 1.3.0 and pitted it against standard libjpeg (libjpeg-turbo can be used as a drop in replacement for libjpeg). For 24bit rbg images of size 4096×2000, libjpeg-turbo was about twice as fast as libjpeg. Here’s how I compiled libjpeg-turbo:

First get the source:


Then un-tar it and cd into the main source directory. Then configure for ARM:

 ./configure --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar \
          STRIP=arm-linux-gnueabi-strip RANLIB=arm-linux-gnueabi-ranlib \

And make:

make install

The output files will be put under the directory that you specified when you configured, copy them onto your ARM device as appropriate.

1 reply
  1. Junaid shuja
    Junaid shuja says:

    how can i cross-compile for Qemu/ARM? I need the static flag with no shared libraries so that it can execute on Qemu.

Comments are closed.