This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3354: AM3354 PORT QT5.12.0

Part Number: AM3354

When I use the compiler provided by Ti Linux SDK to build an arm environment for qt5.12.0, the system reports the following error:

arm-linux-gnueabihf-g++ -c -include .pch/Qt5Core -pipe -O3 -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wno-missing-field-initializers -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. -I../3rdparty/zlib/src -Iglobal -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty -I../3rdparty/double-conversion/include -I../3rdparty/double-conversion/include/double-conversion -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.12.0 -I../../include/QtCore/5.12.0/QtCore -I.moc -I.tracegen -I../3rdparty/pcre2/src -I/opt/tslib1.4/include -I../../mkspecs/linux-arm-gnueabi-g++ -o .obj/qrandom.o global/qrandom.cpp
In file included from global/qrandom.cpp:43:0:
global/qrandom.h:202:9: error: ‘is_trivially_destructible’ is not a member of ‘std’
global/qrandom.h:202:9: error: ‘::value’ has not been declared
global/qrandom.h:202:9: error: expected primary-expression before ‘bool’
global/qrandom.h:202:9: error: expected ‘,’ before ‘bool’
global/qrandom.h:202:9: error: expected string-literal before ‘bool’
global/qrandom.h:202:9: error: expected ‘)’ before ‘bool’
Makefile:12808: recipe for target '.obj/qrandom.o' failed

I check my gcc is:

Using built-in specs.
COLLECT_GCC=arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabi/5/lto-wrapper
Target: arm-linux-gnueabi
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)