Linux x64 under Compile Libjpeg

Source: Internet
Author: User

Libjpeg Compile:

    1. Download Libjpeg Source: http://www.ijg.org/, download jpegsrc.v9a.tar.gz
    2. Decompression source, command: TAR-ZXVF jpegsrc.v9a, source folder for jpeg-9a
    3. Run command:./configure--prefix=jpeg-9a/release --enable-shared=no
    4. Find the makefile file under jpeg-9a and open, find Cflags, add-g-02 after cflags =-fpic
    5. Run command: Make
    6. Run command: Make install
    7. Final static library files are installed under Jpeg-9a/release/lib

Libpng Compile:

Compiling the libpng first requires compiling the zlib, as follows:

    1. Download Zlib Source zlib-1.2.8.tar.gz
    2. Decompression zlib Source to zlib-1.2.8
    3. Run command:./configure --static Static compilation
    4. Find the makefile file and open it under zlib-1.2.8, find the cflags and add-fpic to the line at the end
    5. Run command: Make
    6. Run command: Make install

Compile libpng below

    1. Download Source libpng-1.6.13.tar.gz
    2. Unzip to libpng-1.6.13
    3. Run command:./configure--prefix=libpng-1.6.13/release --enable-shared=no
    4. Find the makefile file and open it under libpng-1.6.13, find the cflags and add-fpic to the line at the end
    5. Run command: Make
    6. Run command: Make install

Linux x64 under Compile Libjpeg

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.