twmn icon indicating copy to clipboard operation
twmn copied to clipboard

It doesn't compile on Slackware

Open bogdanr opened this issue 8 years ago • 5 comments

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

bogdanr avatar Feb 15 '17 10:02 bogdanr

It doesn't compile in Ubuntu 16.04 either. Same error.

piknik avatar Sep 15 '17 15:09 piknik

I got same error on Ubuntu 16.04.

shuforov avatar Sep 16 '17 14:09 shuforov

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,

ixjlyons avatar Sep 16 '17 18:09 ixjlyons

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

LeLobster avatar Sep 24 '18 01:09 LeLobster

Seems like this could be closed?

Penguin-Guru avatar Dec 29 '19 08:12 Penguin-Guru