Not able to build QtWebEngine (Qt 6.4.2) on Centos7 with devtoolset-10
-
I am trying to build QtWebengine (Qt 6.4.2) from source on CentOS7. I am using devtoolset-10 but the build fails with the error
qt6/qtwebengine/src/3rdparty/chromium/base/allocator/partition_allocator/starscan/stats_collector.h:207:19: required from here
/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/basic_string.h:3150:57: error: no type named ‘size_type’ in ‘std::basic_string<char, std::char_traits<char>, partition_alloc::internal::MetadataAllocator<char> >::_CharT_alloc_type’ {aka ‘std::allocator_traits<partition_alloc::internal::MetadataAllocator<char> >::rebind_alloc<char>’}
3150 | typedef typename _CharT_alloc_type::size_type size_type;/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/basic_string.h:3151:61: error: no type named ‘difference_type’ in ‘std::basic_string<char, std::char_traits<char>, partition_alloc::internal::MetadataAllocator<char> >::_CharT_alloc_type’ {aka ‘std::allocator_traits<partition_alloc::internal::MetadataAllocator<char> >::rebind_alloc<char>’}
3151 | typedef typename _CharT_alloc_type::difference_type difference_type;Any help or inputs are appreciated
-
I am trying to build QtWebengine (Qt 6.4.2) from source on CentOS7. I am using devtoolset-10 but the build fails with the error
qt6/qtwebengine/src/3rdparty/chromium/base/allocator/partition_allocator/starscan/stats_collector.h:207:19: required from here
/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/basic_string.h:3150:57: error: no type named ‘size_type’ in ‘std::basic_string<char, std::char_traits<char>, partition_alloc::internal::MetadataAllocator<char> >::_CharT_alloc_type’ {aka ‘std::allocator_traits<partition_alloc::internal::MetadataAllocator<char> >::rebind_alloc<char>’}
3150 | typedef typename _CharT_alloc_type::size_type size_type;/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/basic_string.h:3151:61: error: no type named ‘difference_type’ in ‘std::basic_string<char, std::char_traits<char>, partition_alloc::internal::MetadataAllocator<char> >::_CharT_alloc_type’ {aka ‘std::allocator_traits<partition_alloc::internal::MetadataAllocator<char> >::rebind_alloc<char>’}
3151 | typedef typename _CharT_alloc_type::difference_type difference_type;Any help or inputs are appreciated
@nitingera According to https://doc.qt.io/archives/qt-6.4/supported-platforms.html Qt 6.4 does not support Cenos7 (Red Hat 7).