OS: Ubuntu 20.04
Qt v6.2.4
gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
I'm waiting for the new version of Ubuntu 22.04 in case there is a problem with Ubuntu 20.04.
Massimo, with what version of Ubuntu and Qt does it work to compile QLC +?
Code: Select all
g++ -c -pipe -Werror -Wno-unused-local-typedefs -g -std=gnu++1z -D_REENTRANT -Wall -Wextra -fPIC -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Imonitor -Ishowmanager -Ivirtualconsole -I../../engine/src -I../../engine/audio/src -I../../plugins/interfaces -I../../webaccess -I../../../Qt/6.2.4/gcc_64/include -I../../../Qt/6.2.4/gcc_64/include/QtMultimediaWidgets -I../../../Qt/6.2.4/gcc_64/include/QtWidgets -I../../../Qt/6.2.4/gcc_64/include/QtMultimedia -I../../../Qt/6.2.4/gcc_64/include/QtGui -I../../../Qt/6.2.4/gcc_64/include/QtQml -I../../../Qt/6.2.4/gcc_64/include/QtNetwork -I../../../Qt/6.2.4/gcc_64/include/QtCore -I. -I. -I../../../Qt/6.2.4/gcc_64/mkspecs/linux-g++ -o vcclock.o virtualconsole/vcclock.cpp
In file included from ../../../Qt/6.2.4/gcc_64/include/QtCore/qarraydataops.h:45,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/qarraydatapointer.h:43,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/qbytearray.h:47,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/qstringview.h:58,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/qchar.h:666,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/qstring.h:50,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/qobject.h:47,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/qsettings.h:43,
from ../../../Qt/6.2.4/gcc_64/include/QtCore/QSettings:1,
from virtualconsole/addvcbuttonmatrix.cpp:20:
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h: In instantiation of ‘QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)> [with auto:22 = unsigned int]’:
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:304:18: required from ‘auto QtPrivate::sequential_erase_if(Container&, Predicate&) [with Container = QList<unsigned int>; Predicate = QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)>]’
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:320:31: required from ‘auto QtPrivate::sequential_erase(Container&, const T&) [with Container = QList<unsigned int>; T = int]’
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:328:28: required from ‘auto QtPrivate::sequential_erase_with_copy(Container&, const T&) [with Container = QList<unsigned int>; T = int]’
../../../Qt/6.2.4/gcc_64/include/QtCore/qlist.h:540:53: required from ‘qsizetype QList<T>::removeAll(const AT&) [with AT = int; T = unsigned int; qsizetype = long long int]’
virtualconsole/addvcbuttonmatrix.cpp:139:62: required from here
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:319:40: error: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Werror=sign-compare]
319 | auto cmp = [&](auto &e) { return e == t; };
| ~~^~~~
g++ -c -pipe -Werror -Wno-unused-local-typedefs -g -std=gnu++1z -D_REENTRANT -Wall -Wextra -fPIC -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Imonitor -Ishowmanager -Ivirtualconsole -I../../engine/src -I../../engine/audio/src -I../../plugins/interfaces -I../../webaccess -I../../../Qt/6.2.4/gcc_64/include -I../../../Qt/6.2.4/gcc_64/include/QtMultimediaWidgets -I../../../Qt/6.2.4/gcc_64/include/QtWidgets -I../../../Qt/6.2.4/gcc_64/include/QtMultimedia -I../../../Qt/6.2.4/gcc_64/include/QtGui -I../../../Qt/6.2.4/gcc_64/include/QtQml -I../../../Qt/6.2.4/gcc_64/include/QtNetwork -I../../../Qt/6.2.4/gcc_64/include/QtCore -I. -I. -I../../../Qt/6.2.4/gcc_64/mkspecs/linux-g++ -o vcclockproperties.o virtualconsole/vcclockproperties.cpp
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h: In instantiation of ‘QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)> [with auto:22 = const unsigned int]’:
/usr/include/c++/10/bits/predefined_ops.h:316:23: required from ‘bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = QList<unsigned int>::const_iterator; _Predicate = QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)>]’
/usr/include/c++/10/bits/stl_algobase.h:1929:14: required from ‘_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = QList<unsigned int>::const_iterator; _Predicate = __gnu_cxx::__ops::_Iter_pred<QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)> >]’
/usr/include/c++/10/bits/stl_algobase.h:1974:23: required from ‘_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = QList<unsigned int>::const_iterator; _Predicate = __gnu_cxx::__ops::_Iter_pred<QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)> >]’
/usr/include/c++/10/bits/stl_algo.h:3934:28: required from ‘_IIter std::find_if(_IIter, _IIter, _Predicate) [with _IIter = QList<unsigned int>::const_iterator; _Predicate = QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)>]’
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:288:35: required from ‘auto QtPrivate::sequential_erase_if(Container&, Predicate&) [with Container = QList<unsigned int>; Predicate = QtPrivate::sequential_erase<QList<unsigned int>, int>::<lambda(auto:22&)>]’
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:320:31: required from ‘auto QtPrivate::sequential_erase(Container&, const T&) [with Container = QList<unsigned int>; T = int]’
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:328:28: required from ‘auto QtPrivate::sequential_erase_with_copy(Container&, const T&) [with Container = QList<unsigned int>; T = int]’
../../../Qt/6.2.4/gcc_64/include/QtCore/qlist.h:540:53: required from ‘qsizetype QList<T>::removeAll(const AT&) [with AT = int; T = unsigned int; qsizetype = long long int]’
virtualconsole/addvcbuttonmatrix.cpp:139:62: required from here
../../../Qt/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h:319:40: error: comparison of integer expressions of different signedness: ‘const unsigned int’ and ‘const int’ [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:37212: addvcbuttonmatrix.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/sbenejam/qlcqt6/ui/src'
make[1]: *** [Makefile:48: sub-src-make_first-ordered] Error 2
make[1]: Leaving directory '/home/sbenejam/qlcqt6/ui'
make: *** [Makefile:141: sub-ui-make_first-ordered] Error 2