Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#!/bin/bash

if [ "x" == "x$1" ]; then
    echo "No qt source dir specified"
    exit 0
fi

PWD=`pwd`
OUTPUT=$PWD/output

YOCTOSDK=/opt/poky/3.1.31/sysroots

ROOTFS=$YOCTOSDK/aarch64-poky-linux

export PATH=$YOCTOSDK/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux:$PATH

export PKG_CONFIG_LIBDIR=$YOCTOSDK/aarch64-poky-linux/usr/lib64/pkgconfig

rm -rf $OUTPUT/*

cd $1
./configure -v -extprefix $OUTPUT -opensource -release -optimized-qmake -confirm-license -xplatform linux-aarch64-gnu-g++ -sysroot $ROOTFS -shared -silent -no-pch -no-rpath -pkg-config -no-pulseaudio -no-alsa -no-evdev -no-sse2 -no-sse3 -no-cups -dbus -make examples -compile-examples -no-fontconfig -opengl es2 -egl -eglfs -no-glib -no-harfbuzz -no-iconv -icu -system-libjpeg -kms -gbm -system-libpng -no-libproxy -make libs -linuxfb -no-mtdev -no-openssl -no-openvg -qt-pcre -sm -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -sql-sqlite -system-sqlite -sql-sqlite2 -no-sql-tds -nomake tests -make tools -no-tslib -libudev -widgets -no-xcb -system-zlib -skip webengine -c++std c++11 -skip qtdoc -qpa wayland

if [ "0" != "$?" ]; then
    exit 1
fi

make

if [ "0" != "$?" ]; then
    exit 1
fi

make install

if [ "0" != "$?" ]; then
    exit 1
fi

cd ../$OUTPUT
tar -zcf ../qt-5.15.2-eglfs-wayland-build.tar.gz *

echo ====== SUCCESS ======

...