qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf
添加
QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib
QMAKE_CFLAGS += -march=armv7-a -mfpu=neon
QMAKE_CXXFLAGS += -march=armv7-a -mfpu=neon
./configure
-v -opensource
-debug
-no-rpath
-c++std c++11
-sysroot /home/ouyang/zte/sysroot
-no-gcc-sysroot
-no-harfbuzz -no-pch
-nomake tests
-nomake examples
-confirm-license
-xplatform linux-arm-gnueabi-g++
-device-option CROSS_COMPILE=/home/ouyang/zte/arm-linux-gnueabi/bin/arm-linux-gnueabi-
-no-accessibility -no-qml-debug
-system-zlib -system-libpng -system-libjpeg
-no-xkbcommon-evdev -no-xinput2 -no-xcb-xlib -no-glib -no-pulseaudio -no-alsa -no-gtkstyle
-gui -no-widgets
-no-nis -no-cups -no-iconv -no-evdev -no-tslib -no-icu
-fontconfig -dbus-linked
-no-xcb -no-eglfs -no-kms -no-gbm -no-directfb -no-linuxfb -no-mirclient
-no-opengl
-no-libinput -no-gstreamer
-I/home/ouyang/zte/sysroot/usr/local/include
-L/home/ouyang/zte/sysroot/usr/local/lib