Created
August 4, 2015 23:50
-
-
Save eriknelson/280f4d2ecf17ec7190b4 to your computer and use it in GitHub Desktop.
Albert build issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make | |
[ 2%] Automatic moc for target albert | |
[ 2%] Built target albert_automoc | |
[ 5%] Building CXX object CMakeFiles/albert.dir/src/ui/mainwidget/history.cpp.o | |
/home/nelsk/dev/albert/src/ui/mainwidget/history.cpp:46:5: error: invalid operands to binary expression ('QDataStream' and 'QStringList') | |
in >> _data; | |
~~ ^ ~~~~~ | |
/usr/include/qt/QtCore/qchar.h:585:28: note: candidate function not viable: no known conversion from 'QStringList' to 'QChar &' for 2nd argument | |
Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QChar &); | |
^ | |
/usr/include/qt/QtCore/qbytearray.h:663:28: note: candidate function not viable: no known conversion from 'QStringList' to 'QByteArray &' for 2nd argument | |
Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QByteArray &); | |
^ | |
/usr/include/qt/QtCore/qstring.h:1327:28: note: candidate function not viable: no known conversion from 'QStringList' to 'QString &' for 2nd argument | |
Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QString &); | |
^ | |
/usr/include/qt/QtCore/qregexp.h:115:28: note: candidate function not viable: no known conversion from 'QStringList' to 'QRegExp &' for 2nd argument | |
Q_CORE_EXPORT QDataStream &operator>>(QDataStream &in, QRegExp ®Exp); | |
^ | |
/usr/include/qt/QtCore/qvariant.h:533:28: note: candidate function not viable: no known conversion from 'QStringList' to 'QVariant &' for 2nd argument | |
Q_CORE_EXPORT QDataStream& operator>> (QDataStream& s, QVariant& p); | |
^ | |
/usr/include/qt/QtCore/qvariant.h:535:28: note: candidate function not viable: no known conversion from 'QStringList' to 'QVariant::Type &' for 2nd argument | |
Q_CORE_EXPORT QDataStream& operator>> (QDataStream& s, QVariant::Type& p); | |
^ | |
1 error generated. | |
CMakeFiles/albert.dir/build.make:620: recipe for target 'CMakeFiles/albert.dir/src/ui/mainwidget/history.cpp.o' failed | |
make[2]: *** [CMakeFiles/albert.dir/src/ui/mainwidget/history.cpp.o] Error 1 | |
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/albert.dir/all' failed | |
make[1]: *** [CMakeFiles/albert.dir/all] Error 2 | |
Makefile:127: recipe for target 'all' failed | |
make: *** [all] Error 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make | |
[ 2%] Automatic moc for target albert | |
[ 2%] Built target albert_automoc | |
[ 5%] Building CXX object CMakeFiles/albert.dir/src/ui/mainwidget/history.cpp.o | |
/home/nelsk/dev/albert/src/ui/mainwidget/history.cpp: In member function ‘void History::deserilizeData(QDataStream&)’: | |
/home/nelsk/dev/albert/src/ui/mainwidget/history.cpp:46:8: error: invalid initialization of non-const reference of type ‘QVariant&’ from an rvalue of type ‘QVariant’ | |
in >> _data; | |
^ | |
In file included from /usr/include/qt/QtCore/qsettings.h:38:0, | |
from /usr/include/qt/QtCore/QSettings:1, | |
from /home/nelsk/dev/albert/src/ui/mainwidget/history.h:22, | |
from /home/nelsk/dev/albert/src/ui/mainwidget/history.cpp:17: | |
/usr/include/qt/QtCore/qvariant.h:219:5: note: after user-defined conversion: QVariant::QVariant(const QStringList&) | |
QVariant(const QStringList &stringlist); | |
^ | |
/usr/include/qt/QtCore/qvariant.h:533:28: note: initializing argument 2 of ‘QDataStream& operator>>(QDataStream&, QVariant&)’ | |
Q_CORE_EXPORT QDataStream& operator>> (QDataStream& s, QVariant& p); | |
^ | |
CMakeFiles/albert.dir/build.make:620: recipe for target 'CMakeFiles/albert.dir/src/ui/mainwidget/history.cpp.o' failed | |
make[2]: *** [CMakeFiles/albert.dir/src/ui/mainwidget/history.cpp.o] Error 1 | |
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/albert.dir/all' failed | |
make[1]: *** [CMakeFiles/albert.dir/all] Error 2 | |
Makefile:127: recipe for target 'all' failed | |
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
local/qt5-base 5.5.0-1 (qt qt5)
local/qt5-declarative 5.5.0-1 (qt qt5)
local/qt5-location 5.5.0-1 (qt qt5)
local/qt5-script 5.5.0-1 (qt qt5)
local/qt5-sensors 5.5.0-1 (qt qt5)
local/qt5-svg 5.5.0-1 (qt qt5)
local/qt5-tools 5.5.0-1 (qt qt5)
local/qt5-translations 5.5.0-1 (qt qt5)
local/qt5-webchannel 5.5.0-1 (qt qt5)
local/qt5-webkit 5.5.0-1 (qt qt5)
local/qt5-x11extras 5.5.0-1 (qt qt5)
local/qt5-xmlpatterns 5.5.0-1 (qt qt5)