QLC+ with Qt 5.14.2 errors
Posted: Wed Jun 03, 2020 2:14 pm
Building QLC+ from GIT against Qt 5.14.2 on Ubuntu 20.04 (fresh installed) I'm getting this errors:
After some reseach I can built it adding this options to qmake: QMAKE_CXXFLAGS+=-Wno-error=deprecated-copy and install then with make install. QLC+ compiles without errors with the Qt version 5.12.8 that comes by default with Ubuntu 20.04. Another problem I found is that the translations are not installing in the /usr/share/qlcplus/translations folder.
Code: Select all
g++ -c -pipe -Werror -Wno-unused-local-typedefs -g -D_REENTRANT -Wall -Wextra -fPIC -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_SCRIPT_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/5.14.2/gcc_64/include -I../../../Qt/5.14.2/gcc_64/include/QtMultimediaWidgets -I../../../Qt/5.14.2/gcc_64/include/QtWidgets -I../../../Qt/5.14.2/gcc_64/include/QtMultimedia -I../../../Qt/5.14.2/gcc_64/include/QtGui -I../../../Qt/5.14.2/gcc_64/include/QtScript -I../../../Qt/5.14.2/gcc_64/include/QtNetwork -I../../../Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I. -I../../../Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o vcsliderproperties.o virtualconsole/vcsliderproperties.cpp
In file included from ../../../Qt/5.14.2/gcc_64/include/QtCore/qobject.h:49,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/qiodevice.h:45,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/qxmlstream.h:43,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/QXmlStreamReader:1,
from virtualconsole/vcmatrix.cpp:20:
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = VCMatrixControl]’:
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h:550:9: required from ‘QList<T>::iterator QList<T>::insert(QList<T>::iterator, const T&) [with T = VCMatrixControl]’
virtualconsole/vcmatrix.cpp:991:110: required from here
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h:471:35: error: implicitly-declared ‘VCMatrixControl& VCMatrixControl::operator=(const VCMatrixControl&)’ is deprecated [-Werror=deprecated-copy]
471 | else *reinterpret_cast<T*>(n) = t;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from virtualconsole/vcmatrix.h:30,
from virtualconsole/vcmatrixproperties.h:26,
from virtualconsole/vcmatrix.cpp:32:
virtualconsole/vcmatrixcontrol.h:50:14: note: because ‘VCMatrixControl’ has user-provided ‘VCMatrixControl::VCMatrixControl(const VCMatrixControl&)’
50 | explicit VCMatrixControl(VCMatrixControl const& vcmc);
| ^~~~~~~~~~~~~~~
g++ -c -pipe -Werror -Wno-unused-local-typedefs -g -D_REENTRANT -Wall -Wextra -fPIC -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_SCRIPT_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/5.14.2/gcc_64/include -I../../../Qt/5.14.2/gcc_64/include/QtMultimediaWidgets -I../../../Qt/5.14.2/gcc_64/include/QtWidgets -I../../../Qt/5.14.2/gcc_64/include/QtMultimedia -I../../../Qt/5.14.2/gcc_64/include/QtGui -I../../../Qt/5.14.2/gcc_64/include/QtScript -I../../../Qt/5.14.2/gcc_64/include/QtNetwork -I../../../Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I. -I../../../Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o vcsoloframe.o virtualconsole/vcsoloframe.cpp
g++ -c -pipe -Werror -Wno-unused-local-typedefs -g -D_REENTRANT -Wall -Wextra -fPIC -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_SCRIPT_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/5.14.2/gcc_64/include -I../../../Qt/5.14.2/gcc_64/include/QtMultimediaWidgets -I../../../Qt/5.14.2/gcc_64/include/QtWidgets -I../../../Qt/5.14.2/gcc_64/include/QtMultimedia -I../../../Qt/5.14.2/gcc_64/include/QtGui -I../../../Qt/5.14.2/gcc_64/include/QtScript -I../../../Qt/5.14.2/gcc_64/include/QtNetwork -I../../../Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I. -I../../../Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o vcsoloframeproperties.o virtualconsole/vcsoloframeproperties.cpp
g++ -c -pipe -Werror -Wno-unused-local-typedefs -g -D_REENTRANT -Wall -Wextra -fPIC -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_SCRIPT_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/5.14.2/gcc_64/include -I../../../Qt/5.14.2/gcc_64/include/QtMultimediaWidgets -I../../../Qt/5.14.2/gcc_64/include/QtWidgets -I../../../Qt/5.14.2/gcc_64/include/QtMultimedia -I../../../Qt/5.14.2/gcc_64/include/QtGui -I../../../Qt/5.14.2/gcc_64/include/QtScript -I../../../Qt/5.14.2/gcc_64/include/QtNetwork -I../../../Qt/5.14.2/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I. -I../../../Qt/5.14.2/gcc_64/mkspecs/linux-g++ -o vcspeeddial.o virtualconsole/vcspeeddial.cpp
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:34611: vcmatrix.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../../Qt/5.14.2/gcc_64/include/QtCore/qobject.h:49,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/qiodevice.h:45,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/qxmlstream.h:43,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/QXmlStreamReader:1,
from virtualconsole/vcslider.cpp:22:
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = VCSlider::LevelChannel]’:
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h:614:13: required from ‘void QList<T>::append(const T&) [with T = VCSlider::LevelChannel]’
virtualconsole/vcslider.cpp:557:35: required from here
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h:471:35: error: implicitly-declared ‘constexpr VCSlider::LevelChannel& VCSlider::LevelChannel::operator=(const VCSlider::LevelChannel&)’ is deprecated [-Werror=deprecated-copy]
471 | else *reinterpret_cast<T*>(n) = t;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
virtualconsole/vcslider.cpp:1829:1: note: because ‘VCSlider::LevelChannel’ has user-provided ‘VCSlider::LevelChannel::LevelChannel(const VCSlider::LevelChannel&)’
1829 | VCSlider::LevelChannel::LevelChannel(const LevelChannel& lc)
| ^~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:35846: vcslider.o] Error 1
In file included from ../../../Qt/5.14.2/gcc_64/include/QtCore/qobject.h:49,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/qiodevice.h:45,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/qxmlstream.h:43,
from ../../../Qt/5.14.2/gcc_64/include/QtCore/QXmlStreamReader:1,
from virtualconsole/vcspeeddial.cpp:21:
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = VCSpeedDialPreset]’:
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h:550:9: required from ‘QList<T>::iterator QList<T>::insert(QList<T>::iterator, const T&) [with T = VCSpeedDialPreset]’
virtualconsole/vcspeeddial.cpp:924:105: required from here
../../../Qt/5.14.2/gcc_64/include/QtCore/qlist.h:471:35: error: implicitly-declared ‘VCSpeedDialPreset& VCSpeedDialPreset::operator=(const VCSpeedDialPreset&)’ is deprecated [-Werror=deprecated-copy]
471 | else *reinterpret_cast<T*>(n) = t;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from virtualconsole/vcspeeddial.cpp:32:
virtualconsole/vcspeeddialpreset.h:44:14: note: because ‘VCSpeedDialPreset’ has user-provided ‘VCSpeedDialPreset::VCSpeedDialPreset(const VCSpeedDialPreset&)’
44 | explicit VCSpeedDialPreset(VCSpeedDialPreset const& preset);
| ^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:36690: vcspeeddial.o] Error 1
make[2]: Leaving directory '/home/sbenejam/qlctest/ui/src'
make[1]: *** [Makefile:48: sub-src-make_first-ordered] Error 2
make[1]: Leaving directory '/home/sbenejam/qlctest/ui'
make: *** [Makefile:141: sub-ui-make_first-ordered] Error 2