[Interest] Qt5.15 from source on centOS 7

Henry Skoglund henry at tungware.se
Fri Jun 17 08:18:41 CEST 2022


On 2022-06-17 07:46, Alexander Carôt wrote:
> Hi all,
>
> I have to compile Qt5.15 from source on an older centOS 7.9 machine but it fails due to this issue (sorry, only german language):
>
> .In file included from ../include/QtCore/qmetatype.h:1:0,
>                   from ../include/QtCore/../../src/corelib/kernel/qvariant.h:46,
>                   from ../include/QtCore/qvariant.h:1,
>                   from ../include/QtCore/../../src/corelib/text/qlocale.h:43,
>                   from ../include/QtCore/qlocale.h:1,
>                   from ../include/QtCore/../../src/corelib/serialization/qtextstream.h:46,
>                   from ../include/QtCore/qtextstream.h:1,
>                   from ../include/QtCore/../../src/corelib/io/qdebug.h:49,
>                   from ../include/QtCore/qdebug.h:1,
>                   from /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/proitems.h:34,
>                   from /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeparser.h:34,
>                   from /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeevaluator.h:36,
>                   from /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/project.h:32,
>                   from /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/main.cpp:30:
> ../include/QtCore/../../src/corelib/kernel/qmetatype.h: In Instanziierung von »QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const T*) [with T = QList<QVariant>]«:
> ../include/QtCore/../../src/corelib/kernel/qvariant.h:772:139:   von hier erfordert
> ../include/QtCore/../../src/corelib/kernel/qmetatype.h:1160:135: Fehler: mehrdeutige Klassentemplate-Instanziierung für »struct QtMetaTypePrivate::ContainerCapabilitiesImpl<QList<QVariant>, void>«
>         , _iteratorCapabilities(ContainerAPI<T>::IteratorCapabilities | (1 << 4) | (ContainerCapabilitiesImpl<T>::ContainerCapabilities << (4+3)))
>                           
>
> There is an ambigious class template instantiation for struct QtMetaTypePrivate::ContainerCapabilitiesImpl<QList<QVariant> – that obvious but I currently don't know how to resolve it.
>
> Can anyone help ?
>
> Thanks !
>
> Alex
>
Hi, default GCC version on CentOS 7.9 is 4.8.5 but Qt 5.15 requires at 
least GCC version 5.



More information about the Interest mailing list