zoukankan      html  css  js  c++  java
  • arm linux 移植 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 22 Nov 2019 11:49:30 AM CST
    
    ##
    #!/bin/sh
    BASE=`pwd`
    BUILD_HOST=arm-linux
    JPEG=jpegsrc.v9c
    OUTPUT=${BASE}/install/
    
    make_dirs() {
        cd ${BASE}
        mkdir  compressed  install  source -p
    
    }
    
    tget () { #try wget
        filename=`basename $1`
        echo "Downloading [${filename}]..."
        if [ ! -f ${filename} ];then
            wget $1
        fi
    
        echo "[OK] Downloaded [${filename}] "
    }
    
    
    download_package () {
        cd ${BASE}/compressed
        #下载包
        tget    http://www.ijg.org/files/${JPEG}.tar.gz
    }
    
    tar_package () {
        cd ${BASE}/compressed
        ls * > /tmp/list.txt
        for TAR in `cat /tmp/list.txt`
        do
            tar -xf $TAR -C  ../source
        done
        rm -rf /tmp/list.txt
    }
    
    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。

  • 相关阅读:
    stm32之watchdog
    stm32之PWM
    stm32之GPIO(二)
    JavaScript之怎样获取元素节点
    JavaScript之对象学习
    JavaScript之数组学习
    Jquery遍历数组之$.inArray()方法介绍
    Jquery 遍历数组之$().each方法与$.each()方法介绍
    C# 移位运算符
    tensorboard简单使用
  • 原文地址:https://www.cnblogs.com/schips/p/12374458.html
Copyright © 2011-2022 走看看