Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile #37

Closed
0ion9 opened this issue Aug 2, 2015 · 11 comments
Closed

Cannot compile #37

0ion9 opened this issue Aug 2, 2015 · 11 comments

Comments

@0ion9
Copy link

0ion9 commented Aug 2, 2015

I am experiencing the following error during compilation, using the PKGBUILD linked in the Arch Linux forums thread:

[ 86%] Building CXX object CMakeFiles/albert.dir/src/ui/mainwidget/history.cpp.o
/tmp/alb/src/albert-0.6.1/src/ui/mainwidget/history.cpp: In member function ‘void History::deserilizeData(QDataStream&)’:
/tmp/alb/src/albert-0.6.1/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 /tmp/alb/src/albert-0.6.1/src/ui/mainwidget/history.h:22,
                 from /tmp/alb/src/albert-0.6.1/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:53: note:   initializing argument 2 of ‘QDataStream& operator>>(QDataStream&, QVariant&)’
 Q_CORE_EXPORT QDataStream& operator>> (QDataStream& s, QVariant& p);
                                                     ^
CMakeFiles/albert.dir/build.make:597: 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:60: recipe for target 'CMakeFiles/albert.dir/all' failed
make[1]: *** [CMakeFiles/albert.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

qt5-base version: 5.5.0 (I ran yaourt -Syu in case there was an upgrade I was missing, but no Qt packages were listed for upgrade).

@flanagan
Copy link

flanagan commented Aug 4, 2015

Morning :)
I have the same problem :(

@ManuelSchneid3r
Copy link
Member

Well this seems to be a qt 5.5 problem. I would appreciate if somebody could confirm this.

@eriknelson
Copy link

Confirmed I'm getting it here too, Arch w/ qt5 5.5.0-1 versions. Building master. Detailed error output and packages.

Really excited about this project, would love to help wherever possible.

EDIT: Dug a little more on this tonight - master builds fine on a clean Debian Jessie virt against qt5.3.

@ManuelSchneid3r
Copy link
Member

Sorry guys you have to wait. I'll spend my time to get 0.7 forward (Will come soon). 0.6 will stay broken and not get any fixes.

@eriknelson
Copy link

history.h is missing the QDataStream header. QStringList had included it previously, but this has changed since 5.3.2.

@ManuelSchneid3r
Copy link
Member

That was quick thank you @eriknelson

@flanagan
Copy link

flanagan commented Aug 8, 2015

After pulling the up to date version i got this one instead of the other mistake

[ 2%] Automatic moc for target albert
[ 2%] Built target albert_automoc
[ 5%] Building CXX object CMakeFiles/albert.dir/albert_automoc.cpp.o
In file included from ../../../..//albert/albert_automoc.cpp:2:0:
/home/flanagan/Downloads/albert/albert/moc_engine.cpp:9:65: schwerwiegender Fehler: ../../../../src/engine.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
CMakeFiles/albert.dir/build.make:712: die Regel für Ziel „CMakeFiles/albert.dir/albert_automoc.cpp.o“ scheiterte
make[2]: *** [CMakeFiles/albert.dir/albert_automoc.cpp.o] Fehler 1
CMakeFiles/Makefile2:60: die Regel für Ziel „CMakeFiles/albert.dir/all“ scheiterte
make[1]: *** [CMakeFiles/albert.dir/all] Fehler 2
Makefile:116: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2

But the file exists...

@ManuelSchneid3r
Copy link
Member

Curious. Did you use a8d0102 aka 0.6.2?

@flanagan
Copy link

Well yes i have the right git version :(

@ManuelSchneid3r
Copy link
Member

Have you tried a complete new clone?
If on arch check this:

mkdir avoidconflicts8461436185
cd avoidconflicts8461436185/
curl -O https://raw.githubusercontent.com/ManuelSchneid3r/albert/master/packaging/linux/arch/PKGBUILD
makepkg
sudo pacman -U albert-0.6.2-1-x86_64.pkg.tar.xz #requires pass
cd ..
rm -r avoidconflicts8461436185

There is no reason why this should not work

@flanagan
Copy link

this compiles without any problem :) Thx!!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants