guowenxue
2019-08-08 47f7b47c8443994cf11be904407db826476f911f
qt5/iconv/build.sh
@@ -7,12 +7,11 @@
#|           1, Initialize 1.0.0 on 2011.04.12
#+--------------------------------------------------------------------------------------------
PROJ_PATH=`pwd`/../
ICONV_INST_PATH=${PROJ_PATH}/libs/
INST_PATH=`pwd`/../install
if [ -z $CROSSTOOL ] ; then
   CROSSTOOL=/opt/xtools/arm920t/bin/arm-linux-
fi
CROSSTOOL=/opt/rpi/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-
LYFTP_SRC=ftp://master.iot-yun.club/src/
function msg_banner()
{
@@ -61,7 +60,7 @@
    SRC_NAME=libiconv-1.15
    PACK_SUFIX=tar.gz
    if [ -f ${ICONV_INST_PATH}/lib/libiconv.so ] ; then
    if [ -f ${INST_PATH}/lib/libiconv.so ] ; then
        msg_banner "Already cross compile $SRC_NAME "
        return 0;
    fi
@@ -69,14 +68,15 @@
    msg_banner "Start cross compile $SRC_NAME "
    if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then
        wget https://ftp.gnu.org/gnu/libiconv/${SRC_NAME}.${PACK_SUFIX}
        #wget https://ftp.gnu.org/gnu/libiconv/${SRC_NAME}.${PACK_SUFIX}
        wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX}
        check_result "ERROR: download ${SRC_NAME} failure"
    fi
    tar -xzf ${SRC_NAME}.${PACK_SUFIX} 
    cd ${SRC_NAME}
    ./configure --prefix=${ICONV_INST_PATH} ${CONFIG_CROSS}
    ./configure --prefix=${INST_PATH} ${CONFIG_CROSS}
    make && make install
    cd -