Libjpeg Compile:
- Download Libjpeg Source: http://www.ijg.org/, download jpegsrc.v9a.tar.gz
- Decompression source, command: TAR-ZXVF jpegsrc.v9a, source folder for jpeg-9a
- Run command:./configure--prefix=jpeg-9a/release --enable-shared=no
- Find the makefile file under jpeg-9a and open, find Cflags, add-g-02 after cflags =-fpic
- Run command: Make
- Run command: Make install
- Final static library files are installed under Jpeg-9a/release/lib
Libpng Compile:
Compiling the libpng first requires compiling the zlib, as follows:
- Download Zlib Source zlib-1.2.8.tar.gz
- Decompression zlib Source to zlib-1.2.8
- Run command:./configure --static Static compilation
- Find the makefile file and open it under zlib-1.2.8, find the cflags and add-fpic to the line at the end
- Run command: Make
- Run command: Make install
Compile libpng below
- Download Source libpng-1.6.13.tar.gz
- Unzip to libpng-1.6.13
- Run command:./configure--prefix=libpng-1.6.13/release --enable-shared=no
- Find the makefile file and open it under libpng-1.6.13, find the cflags and add-fpic to the line at the end
- Run command: Make
- Run command: Make install
Linux x64 under Compile Libjpeg