Problem compiling with qmlui

Post Reply
chille
Posts: 2
Joined: Wed Jan 11, 2017 8:45 pm
Real Name:

Problem compiling with qmlui

Post by chille » Thu Feb 09, 2017 5:07 pm

Hello!

I'm trying to compile the latest development version from GIT, with qmlui. However I have some trouble and can not process to get any further. I'm running a recently updated Ubuntu 16.04. I'm not really familiar qt, so I don't really know where to start to look for problems. Any ideas what could be wrong?

Code: Select all

g++ -c -m64 -pipe -std=c++11 -Werror -Wno-unused-local-typedefs -g -Wall -W -D_REENTRANT -fPIC -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../engine/src -I../engine/audio/src -Ivirtualconsole -I../plugins/interfaces -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtQuick -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimediaWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtQml -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o vcpage.o virtualconsole/vcpage.cpp
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:74:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtQuick/qtquickglobal.h:37,
                 from /usr/include/x86_64-linux-gnu/qt5/QtQuick/qquickwindow.h:37,
                 from /usr/include/x86_64-linux-gnu/qt5/QtQuick/qquickview.h:37,
                 from /usr/include/x86_64-linux-gnu/qt5/QtQuick/QQuickView:1,
                 from virtualconsole/vcwidget.h:23,
                 from virtualconsole/vcframe.h:23,
                 from virtualconsole/vcpage.h:23,
                 from virtualconsole/vcpage.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h: In instantiation of ‘uint qHash(const T&, uint) [with T = QKeySequence; uint = unsigned int]’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:952:18:   required from ‘QHash<Key, T>::Node** QHash<Key, T>::findNode(const Key&, uint*) const [with Key = QKeySequence; T = QPair<unsigned int, VCWidget*>; QHash<Key, T>::Node = QHashNode<QKeySequence, QPair<unsigned int, VCWidget*> >; uint = unsigned int]’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:758:27:   required from ‘QList<T> QHash<Key, T>::values(const Key&) const [with Key = QKeySequence; T = QPair<unsigned int, VCWidget*>]’
virtualconsole/vcpage.cpp:197:77:   required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:103:5: error: no matching function for call to ‘qHash(const QKeySequence&)’
     Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))

User avatar
mcallegari
Posts: 1895
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: Problem compiling with qmlui

Post by mcallegari » Fri Feb 10, 2017 8:50 am

You need to build at least with Qt 5.6 or 5.7

Post Reply