Closed najamelan closed 7 years ago
Hi @najamelan
I guess these errors are due to an incompability issue when trying to compile Qt5-based code using libqt4. I guess updating / installing and using libqt5 will fix your problem! 😃
Ok,
thanks for clarifying that. I didn't realize it was supposed to compile with qt5 since the files have this in their header: Created by: Qt User Interface Compiler version 4.8.7
. In order to have it include qt5 though I had to change the automake.sh
file to have an absolute path to the qt5 qmake binary (which I found by running apt-file list qt5-qmake | grep 'qmake$'
).
Then it still didn't compile, got: QtGui/QAction: No such file or directory
. I solved this by running rm ui_* *.o
as described here.
Now it compiles with just a few warnings about unused parameters.
Since on gnome I can no longer run gui programs at the moment, I further had to do:
adduser <my username> systemd-journal
And to avoid having to log out:
nwgrp systemd-journal
nwgrp <my username> # I didn't check with id -g because I know my primary group is the same as my username
./qjournalctl
few, I suppose I'm lucky to have internet at home...
@najamelan Great to hear it works for you now!
The file header really seems misleading. But removing those would probably not be a permanent solution since I use QtCreator to create the UI and the next compilation they would be added again. I will however, add this information somewhere here as soon as I find time. (See #5)
The "unused params" warning is due to the fact that I use a Qt slot which would provide me with some extra information which I don't need.
Thank you for reporting back! 😄
I would suggest a simple mention in the readme for needing Qt5, and you could even put a link to this issue in case people need more hints.
As for the unused parameter warnings, just omit their names in your method definition as suggested here.
+1 for the hint on omitting the names. I'm going to do this when I find time!
I'm running debian testing with libqt4-dev version 4.8.7+dfsg-11.
There are several compilation errors which I don't find easy to solve and since I havn't done any qt development for years, I'm a bit stuck:
and: