twmn
twmn copied to clipboard
It doesn't compile on Slackware
This is the error I receive when I try to compile:
main.cpp:17:38: error: ‘QMessageLogContext’ does not name a type
void logOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
^
main.cpp: In function ‘int main(int, char**)’:
main.cpp:47:37: error: ‘qInstallMessageHandler’ was not declared in this scope
qInstallMessageHandler(logOutput);
^
make[1]: *** [Makefile:263: main.o] Error 1
make: *** [Makefile:40: sub-twmnd-make_default] Error 2
It doesn't compile in Ubuntu 16.04 either. Same error.
I got same error on Ubuntu 16.04.
Check the banner comment at the top of the Makefile (head Makefile
). If it shows you're using Qt 4.x.x, make sure you have Qt5 installed and you are using qmake-qt5 to generate the Makefile,
In case anyone comes by here while trying to build twmn and runs into the same error (like I did earlier)
export QT_SELECT="qt5"
qmake
cd twmnd/ && qmake && cd ..
make
worked for me on Debian 9
Seems like this could be closed?