注意问题,不能随便换工具链,否者会出现各种问题。
./configure \
-sysroot ~/android-ndk-r16b/platforms/android-27/arch-arm64/usr/ \
-extprefix ~/qt5.12.11-android \
-confirm-license \
-opensource \
-release \
-make libs \
-xplatform linux-aarch64-gnu-g++ \
-pch \
-qt-libjpeg \
-qt-libpng \
-qt-zlib \
-no-sse2 \
-no-openssl \
-no-cups \
-no-glib \
-no-dbus \
-no-sql-sqlite \
-no-cups \
-no-vulkan \
-no-iconv \
-no-ssl \
-nomake tests \
-nomake examples \
-no-separate-debug-info \
-skip speech \
-skip location -skip multimedia -skip qtnetworkauth \
-skip qtactiveqt \
-skip purchasing \
-skip qtdatavis3d \
-skip qtvirtualkeyboard -skip androidextras -skip macextras -skip x11extras -skip winextras \
-skip qtgamepad \
-skip qtconnectivity \
-skip qt3d \
-skip qtcanvas3d \
-skip qtsensors -skip qtdoc \
-skip qtwebchannel \
-skip qtwebengine \
-skip qtwebglplugin \
-skip qtwebview \
-skip remoteobjects \
-skip serialport \
-skip websockets \
-skip wayland -skip qtxmlpatterns \
-skip charts \
-skip qtdeclarative \
-opengl es2 \
-egl \
-no-eglfs \
-qpa minimalegl \
-no-linuxfb \
-recheck-all
export QT_QPA_FONTDIR=/system/fonts/
export QTDIR=/data/build/
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
export QT_QPA_PLATFORM=minimalegl