Cross-compiled configuration files for HiSilicon 3520dv400:
-qt-freetype: font support
tff -qt-gfx-transformed: support rotation
qws/linux-arm-hisiv500-g++ as a new directory for the platform
Compile:
use make: 40 minutes and 16 seconds
use make -j4: 23 minutes and 16 seconds
use make -j8: 22 minutes and 59 seconds
Runtime problems:
1)
QWSSocket::connectToLocalFile could not connect:: No such file or directory
Add -qws to the executable program
2)
Error opening framebuffer device /dev/fb0
QScreenLinuxFb::connect: Operation not permitted
Answer: first run the fb sample/hifb of HiSilicon
3) jpg pictures cannot be displayed, configure configuration -qt-libjpeg
Add plugins in /etc/profile
export QT_INSTALL_PATH=/opt/qt
export LD_LIBRARY_PATH=/lib:/usr/lib:${QT_INSTALL_PATH}/lib:${LD_LIBRARY_PATH}
export QT_QWS_FONTDIR=${QT_INSTALL_PATH}/lib/fonts
export LD_LIBRARY_PATHI=/opt/qt/plugins/imageformats:$LD_LIBRARY_PATH
export QT_PLUGIN_PATH=/opt/qt/plugins
export LD_LIBRARY_PATH=$QT_INSTALL_PATH/plugins/imageformats:$LD_LIBRARY_PATH
export QT_PLUGIN_PATH=$QT_INSTALL_PATH/plugins
#export QT_QWS_DISPLAY=linuxFB:/dev/fb0
Add in the .pro project:
QTPLUGIN += qjpeg
To display jpg images
4) Cancel the qDebug() printing message and add it in .pro
DEFINES += QT_NO_WARNING_OUTPUT\
QT_NO_DEBUG_OUTPUT
5) The following error occurs when the QT application starts
QWSServerSocket: could not bind to file /tmp/qtembedded-0/QtEmbedded-0
Error: File exists
Failed to bind to /tmp/qtembedded-0/QtEmbedded-0
Modifying usock in the re-kernel provided on the Internet does not work for this project.
When starting the qt reference program, add a short delay.