背景:

  jpeg库的使用可以提高显示效率。

host平台   :Ubuntu 16.04
arm平台   : S5P6818
 
jpeg       :v9c
arm-gcc   :4.8.1

主机准备:

运行以下脚本:

##
#    Copyright By Schips, All Rights Reserved
#    https://gitee.com/schips/

#    File Name:  make.sh
#    Created  :  Fri  Nov  :: AM CST

##
#!/bin/sh
BASE=`pwd`
BUILD_HOST=arm-hisiv500-linux
JPEG=jpegsrc.v9c
OUTPUT=${BASE}/install/

make_dirs() {
    cd ${BASE}
    mkdir  compressed  install  source -p

}

download_package () {
    cd ${BASE}/compressed
    #下载包
    wget    http://www.ijg.org/files/${JPEG}.tar.gz
}

tar_package () {
    cd ${BASE}/compressed
    #解压下载的包
    tar -C ../source -xf ${JPEG}.tar.gz
}

configure_jpeg () {
    cd ${BASE}/source/*
    ./configure \
    --prefix=${OUTPUT}/${JPEG} \
    --host=${BUILD_HOST}
}

make_jpeg () {
    cd ${BASE}/source/*make -j4 && make install
}
make_dirs
download_package
tar_package
configure_jpeg
make_jpeg

开发板准备:

拷贝对应的库到板子上,使其在环境变量中能够找到对应的lib

05-17 21:30