You are not logged in.
Pages: 1
Hello,
I've been trying to compile a QT5 project on my arch but I always get the same error : "fatal error: QTNetwork: No such file or directory"
I even just took the hello example from the wiki : wiki, and just added the include :
#include <QApplication>
#include <QLabel>
#include <QTNetwork> // this line added
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QLabel hello("Hello world!");
hello.show();
return app.exec();
}
and my .pro looks like this :
######################################################################
# Automatically generated by qmake (3.0) Fri Aug 26 22:11:44 2016
######################################################################
QT += \
network \
widgets \
core
TEMPLATE = app
TARGET = hello
INCLUDEPATH += .
# Input
SOURCES += hello.cpp
I don't know if it's the right place to ask, but project works on mac and windows (created with qt IDE and I don't want to install it just to compile)
Cheers,
Last edited by Chef_Keeper (2016-08-27 09:51:30)
Offline
#include <QtNetwork>
It works on Windows probably because of case-insensitive filesystem.
Offline
HOLY COW thank you very much !
Works like a charm now, I'd probably never found it by myself.
How to change topic to resolved ?
Offline
Pages: 1