How to remove dependancy to library libQt5Network ?
-
Hello
I wrote a standalone program in C++/Qt5 which does not use the network and in the dependencies of my executable I see (with the ldd command, under Linux) the libQt5Network library.How could I do to stop dragging this library which seems useless for my project, please ?
-
Hi,
Try with:
QT -= networkIf memory serves well, it's part of the default set of modules loaded.
-
Hello
I wrote a standalone program in C++/Qt5 which does not use the network and in the dependencies of my executable I see (with the ldd command, under Linux) the libQt5Network library.How could I do to stop dragging this library which seems useless for my project, please ?
@CutiUser said in How to remove dependancy to library libQt5Network ?:
How could I do to stop dragging this library which seems useless for my project, please ?
Don't link against it. When you use qmake you've
QT += networkin your pro-file. Or maybe you're using a component which has QtNetwork as dependency (like e.g. QWebSockets) -
@CutiUser said in How to remove dependancy to library libQt5Network ?:
How could I do to stop dragging this library which seems useless for my project, please ?
Don't link against it. When you use qmake you've
QT += networkin your pro-file. Or maybe you're using a component which has QtNetwork as dependency (like e.g. QWebSockets)@Christian-Ehrlicher in my .pro file, I use :
QT += widgets \ opengl \ xml \ xmlpatternsAnd no network widget, a priori...
It is possible to find the list of libraries used by the widgets ? -
Hi,
Try with:
QT -= networkIf memory serves well, it's part of the default set of modules loaded.
-
Hi,
Try with:
QT -= networkIf memory serves well, it's part of the default set of modules loaded.