(business edition) Building Qt 6.8.0 for QNX710
-
Our team is using Qt5.15.2 for QNX700 and is now ready to upgrade to Qt6.8.0 for QNX710.
I used the Qt MainTenance Tool to install all of Qt6.8, including the source code. Installed QNX710 SDK.
We refer to Qt's official Build Qt for QNX file,This is the toolchain .cmake file we used:
We need to set CMAKE_C_COMPILER_TARGET and CMAKE_CXX_COMPILER_TARGET is gcc_ntoaarch64le_gpp. (if just modify it to gcc_ntoaarch64le will build successed)In the process of cmake, I got these issues:
[64/9829] Building CXX object qtbase/src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o
FAILED: qtbase/src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o
/home/enhao/qnx710/host/linux/x86_64/usr/bin/q++ -Vgcc_ntoaarch64le_gpp -Wc,-isysroot,/home/enhao/qnx710/target/qnx7 -lang-c++ -DPCRE2_CODE_UNIT_WIDTH=16 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QPAIR -DQT_NO_QSNPRINTF -DQT_NO_USING_NAMESPACE -DQT_TYPESAFE_FLAGS -DQT_USE_NODISCARD_FILE_OPEN -DQT_USE_QSTRINGBUILDER -D_FORTIFY_SOURCE=2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_REENTRANT -I/home/enhao/Qt/6.8.0/Src/build/qtbase/src/corelib/Core_autogen/include -I/home/enhao/Qt/6.8.0/Src/build/qtbase/include -I/home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore -I/home/enhao/Qt/6.8.0/Src/qtbase/src/corelib -I/home/enhao/Qt/6.8.0/Src/build/qtbase/src/corelib -I/home/enhao/Qt/6.8.0/Src/build/qtbase/src/corelib/global -I/home/enhao/Qt/6.8.0/Src/build/qtbase/src/corelib/kernel -I/home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/../3rdparty/tinycbor/src -I/home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0 -I/home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore -I/home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -I/home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/../3rdparty/double-conversion -I/home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/../3rdparty/forkfd -I/home/enhao/Qt/6.8.0/Src/build/qtbase/src/corelib/.rcc -I/home/enhao/Qt/6.8.0/Src/qtbase/mkspecs/qnx-aarch64le-qcc -I/home/enhao/Qt/6.8.0/Src/qtbase/src/3rdparty/pcre2/src -DNDEBUG -DNDEBUG -O3 -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fexceptions -Wno-invalid-offsetof -fstack-protector-strong -fstack-clash-protection -Wp,-MD,qtbase/src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o.d -Wp,-MT,qtbase/src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o -Wp,-MF,qtbase/src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o.d -o qtbase/src/corelib/CMakeFiles/Core.dir/global/qsimd.cpp.o -c /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:638:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:638:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:61,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:640:34: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
merge(map<_Key, _Tp, _C2, _Alloc>& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:640:34: note: expected a type, got '1'
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:646:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:646:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:61,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:648:34: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
merge(map<_Key, _Tp, _C2, _Alloc>&& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:648:34: note: expected a type, got '1'
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:651:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:651:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:61,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:653:39: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::multimap'
merge(multimap<_Key, _Tp, _C2, _Alloc>& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:653:39: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:653:2: error: 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&)' cannot be overloaded with 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&)'
merge(multimap<_Key, _Tp, _C2, _Alloc>& __source)
^~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:640:2: note: previous declaration 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&)'
merge(map<_Key, _Tp, _C2, _Alloc>& __source)
^~~~~
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:659:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:659:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:61,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:661:39: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::multimap'
merge(multimap<_Key, _Tp, _C2, _Alloc>&& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:661:39: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:661:2: error: 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&&)' cannot be overloaded with 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&&)'
merge(multimap<_Key, _Tp, _C2, _Alloc>&& __source)
^~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:648:2: note: previous declaration 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&&)'
merge(map<_Key, _Tp, _C2, _Alloc>&& __source)
^~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h: In member function 'void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&)':
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:642:56: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tree1, class _Cmp2> class std::_Rb_tree_merge_helper'
using _Merge_helper = _Rb_tree_merge_helper<map, _C2>;
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:642:56: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:643:25: error: '_Merge_helper' has not been declared
_M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source));
^~~~~~~~~~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h: In member function 'void std::map<_Key, _Tp, _Compare, _Alloc>::merge(int&)':
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:655:56: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tree1, class _Cmp2> class std::_Rb_tree_merge_helper'
using _Merge_helper = _Rb_tree_merge_helper<map, _C2>;
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:655:56: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_map.h:656:25: error: '_Merge_helper' has not been declared
_M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source));
^~~~~~~~~~~~~
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h: At global scope:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:654:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:654:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:62,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:656:39: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::multimap'
merge(multimap<_Key, _Tp, _C2, _Alloc>& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:656:39: note: expected a type, got '1'
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:662:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:662:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:62,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:664:39: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::multimap'
merge(multimap<_Key, _Tp, _C2, _Alloc>&& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:664:39: note: expected a type, got '1'
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:667:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:667:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:62,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:669:34: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
merge(map<_Key, _Tp, _C2, _Alloc>& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:669:34: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:669:2: error: 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&)' cannot be overloaded with 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&)'
merge(map<_Key, _Tp, _C2, _Alloc>& __source)
^~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:656:2: note: previous declaration 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&)'
merge(multimap<_Key, _Tp, _C2, _Alloc>& __source)
^~~~~
In file included from /home/enhao/qnx710/target/qnx7/usr/include/stddef.h:23,
from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/cstddef:50,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal.h:14,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:19,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:675:25: error: expected nested-name-specifier before numeric constant
template<typename _C2>
^~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:675:25: error: expected '>' before numeric constant
In file included from /home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/map:62,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/kernel/qmetatype.h:27,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qmetatype.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/tools/qversionnumber.h:12,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qversionnumber.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qoperatingsystemversion.h:6,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/qoperatingsystemversion.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qglobal_p.h:63,
from /home/enhao/Qt/6.8.0/Src/build/qtbase/include/QtCore/6.8.0/QtCore/private/qglobal_p.h:1,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd_p.h:19,
from /home/enhao/Qt/6.8.0/Src/qtbase/src/corelib/global/qsimd.cpp:9:
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:677:34: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
merge(map<_Key, _Tp, _C2, _Alloc>&& __source)
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:677:34: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:677:2: error: 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&&)' cannot be overloaded with 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&&)'
merge(map<_Key, _Tp, _C2, _Alloc>&& __source)
^~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:664:2: note: previous declaration 'template<class _Key, class _Tp, class _Compare, class _Alloc> template<<typeprefixerror><anonymous> > void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&&)'
merge(multimap<_Key, _Tp, _C2, _Alloc>&& __source)
^~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h: In member function 'void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&)':
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:658:61: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tree1, class _Cmp2> class std::_Rb_tree_merge_helper'
using _Merge_helper = _Rb_tree_merge_helper<multimap, _C2>;
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:658:61: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:659:24: error: '_Merge_helper' has not been declared
_M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source));
^~~~~~~~~~~~~
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h: In member function 'void std::multimap<_Key, _Tp, _Compare, _Alloc>::merge(int&)':
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:671:61: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tree1, class _Cmp2> class std::_Rb_tree_merge_helper'
using _Merge_helper = _Rb_tree_merge_helper<multimap, _C2>;
^
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:671:61: note: expected a type, got '1'
/home/enhao/qnx710/target/qnx7/usr/include/c++/8.3.0/bits/stl_multimap.h:672:24: error: '_Merge_helper' has not been declared
_M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source));
^~~~~~~~~~~~~
ninja: build stopped: subcommand failed.Can you help me see if there is a wrong setting or a solution to it?
-
You should ask the Qt support as the forum is driven by users which have normally no access to some commercial Qt stuff.
From a first pov I would say gcc 8.3 is way to old but maybe this is still supported for QNX. -
@Christian-Ehrlicher Thank you for your reply. Where can I get support from Qt? As far as I know, the qnx710 uses gcc 5.4.0 and the qnx710 uses gcc 8.3. It's been upgraded... But maybe it's probably still low.
-
@Euen-Zhang said in (business edition) Building Qt 6.8.0 for QNX710:
Where can I get support from Qt?
Since you've a license, contact the Qt support through your Qt contact.
-
@Christian-Ehrlicher I found it. Thank you!