Install JPEG library under Linux

Source: Internet
Author: User
Tags gz file

Because the collected images are to be stored, so the library is used .... The specific installation method can be found on the network, most of which can be used

I downloaded this jpegsrc.v9a.tar.gz address: www.ijg.org

Then installed, casually downloaded to a path, and then I saw on a Web site "he Zhiqiang" written an installation script, slightly changed the version number, stored as a file, and then source ...

#----WHERE to download----#ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v9a.tar.gz#----. tar.gz file name----jpeg_tar_gz= jpegsrc.v9a.tar.gz#----which version----ver_jpeg=jpeg-9a#----where to install----jpeg=/usr/local/jpeg#---- Untar----tar xzvf $jpeg _tar_gz#----Install----CD $ver _jpeg./configure--prefix= $jpeg--enable-shared-- Enable-staticmakemkdir $jpegmkdir $jpeg/includemkdir $jpeg/libmkdir $jpeg/binmkdir $jpeg/manmkdir $jpeg/man/man1make Installcd. #----FREE----RM-RF $ver _jpeg#----configuration information----echo "---------------------------------------------  ------------------------"echo" Add following lines in You/etc/profile "echo" ("echo" Tip: "echo" can add these Lines in a file named/etc/profile.jpeg, ' echo ' and then ' Add a line ' on the end Of/etc/profile: ' Echo '. /etc/profile.jpeg "echo" It is simple,:) "echo"): "echo" Path= "" $ "" PATH: $jpeg/bin "echo" cplus_include_path= "" $ "cplus_ Include_path: $jpeg/include "echo" ld_library_path= "" $ "" Ld_library_path: $jpeg/lib "echo" Library_path= "$" "Library_path: $jpeg/lib" echo "manpath=" "$" "MANPATH: $jpeg/man" echo "" echo "Export PATH Cplus_ Include_path Ld_library_path Library_path MANPATH "
The echo "---------------------------------------------------------------------" in this paragraph above
You can do it manually after the content.
Build a file called Profile_jpeg, the content is written below ...
So the JPEG library PC version is done ... How to write an embedded version at night

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.