RubyPDF Blog tutorial MinGW Cross compiling Win32 Jpeg-turbo under Debian Lenny

MinGW Cross compiling Win32 Jpeg-turbo under Debian Lenny

In my previous article, LibJpeg vs LibJpeg-turbo, libjpeg-turbo is a fork of libjpeg that uses SIMD instructions to accelerate JPEG encoding and decoding, so I decide to replace libjpeg with libjpeg-turbo on my MinGW cross compiling environment, and here is the step.


wget http://downloads.sourceforge.net/project/libjpeg-turbo/1.1.0/libjpeg-turbo-1.1.0.tar.gz
tar zxf libjpeg-turbo-1.1.0.tar.gz
cd libjpeg-turbo-1.1.0
./configure --host=i686-pc-mingw32 --enable-static --disable-shared --prefix=/opt/mingw/usr/i686-pc-mingw32
make
make install

if you have not install nasm, you will get the following message,
checking for nasm... no
checking for nasmw... no
configure: error: no nasm (Netwide Assembler) found

then you need install nasm,
apt-get install nasm
and repeat
./configure --host=i686-pc-mingw32 --enable-static --disable-shared --prefix=/opt/mingw/usr/i686-pc-mingw32
make
make install

That is all.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.