guowenxue
2019-05-17 1abf6c4b401af1c20d62fe9c2f5e73ce84d14b22
Add QT 4.6.4 build shell script and apps build shell script in qt4 folder
2 files added
90 ■■■■■ changed files
qt4/apps/build.sh 3 ●●●●● patch | view | raw | blame | history
qt4/build-everywhere-4.6.4.sh 87 ●●●●● patch | view | raw | blame | history
qt4/apps/build.sh
New file
@@ -0,0 +1,3 @@
#!/bin/sh
export PATH=/apps/qt-everywhere-rpi/bin/:$PATH
qmake -project && qmake && make
qt4/build-everywhere-4.6.4.sh
New file
@@ -0,0 +1,87 @@
#!/bin/bash
#+--------------------------------------------------------------------------------------------
#|Description:  This shell script used to download qt-extended-4.4.3 code and cross compile it.
#|     Author:  GuoWenxue <guowenxue@gmail.com>
#|  ChangeLog:
#|           1, Initialize 1.0.0 on 2012.03.28
#+--------------------------------------------------------------------------------------------
APP_NAME="qt-everywhere-opensource-src-4.6.4"
PACK_SUFIX="tar.gz"
DL_ADDR="http://releases.qt-project.org/qt4/source/$APP_NAME.$PACK_SUFIX"
INST_PATH=/apps
QT_INST_PATH=$INST_PATH/qt-everywhere-rpi
ARCH=cortexa53
if [ -z "$ARCH" -a $# -gt 0 ] ; then
   ARCH=$1
fi
sup_arch=("" "arm920t" )
function select_arch()
{
   echo "Current support ARCH: "
   i=1
   len=${#sup_arch[*]}
   while [ $i -lt $len ]; do
     echo "$i: ${sup_arch[$i]}"
     let i++;
   done
   echo "Please select: "
   index=
   read index
   ARCH=${sup_arch[$index]}
}
if [ -z "$CROSS" ] ; then
    if [ -z $ARCH ] ; then
        select_arch
    fi
    CROSS=/opt/rpi/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
fi
export PATH=`dirname $CROSS`:$PATH
mkdir -p ${QT_INST_PATH}
echo "+------------------------------------------------------------------+"
echo "|          Build $APP_NAME for $ARCH "
echo "| Crosstool:  $CROSS"
echo "+------------------------------------------------------------------+"
# Download source code packet
if [ ! -s $APP_NAME.$PACK_SUFIX ] ; then
    echo "+------------------------------------------------------------------+"
    echo "|  Download $APP_NAME.$PACK_SUFIX now "
    echo "+------------------------------------------------------------------+"
    wget $DL_ADDR
fi
# Decompress source code packet
if [ ! -d $APP_NAME ] ; then
    tar -xzf $APP_NAME.$PACK_SUFIX
fi
cd $APP_NAME
#Configure for the QT
./configure -opensource -confirm-license -release -prefix ${QT_INST_PATH} \
-embedded arm -xplatform qws/linux-arm-g++ -shared -no-fast -no-largefile -no-multimedia \
-no-audio-backend  -no-phonon -no-phonon-backend -no-svg -qt-freetype \
-little-endian -nomake tools -nomake docs -no-xmlpatterns \
-no-javascript-jit -no-script -no-scripttools -no-declarative -qt-zlib \
-no-gif -qt-libtiff -qt-libpng  -no-libmng -qt-libjpeg -no-openssl \
-no-nis -no-cups -no-dbus -no-mmx -no-3dnow -no-sse -no-sse2 -no-rpath -no-glib \
-no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info
make -j 16 && make install
cd -